<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[I can&#x27;t create triggers on the raspberry pi]]></title><description><![CDATA[<p dir="auto">Re: <a href="/forum/topic/12/raspberry-pi-setup">Raspberry Pi setup</a></p>
<p dir="auto">When editing the /root/.TRIGGERcmdData/commands.json file<br />
The Site does not display the new triggers. After executing the command /usr/share/triggercmdagent/app/src/installdaemon.sh the system shows the output:</p>
<p dir="auto">root @ SPI-00: ~ / .TRIGGERcmdData # /usr/share/triggercmdagent/app/src/installdaemon.sh<br />
Daemon install: true<br />
No token exists. Login to request one.<br />
● triggercmdagent.service - TRIGGERcmd Agent<br />
Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; vendor preset: enabled)<br />
Active: active (running) since Sat 2020-08-22 23:22:17 -03; 7s ago<br />
Main PID: 8900 (node)<br />
Tasks: 7 (limit: 2065)<br />
CGroup: /system.slice/triggercmdagent.service<br />
└─8900 node /usr/share/triggercmdagent/app/src/daemon.js --run /root/.TRIGGERcmdData</p>
<p dir="auto">Aug 22 23:22:17 SPI-00 systemd [1]: Started TRIGGERcmd Agent.</p>
<p dir="auto">I edited the commands.json file but the only trigger presented on the site is the Gnome editor. Even after I removed it from the file.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/850/i-can-t-create-triggers-on-the-raspberry-pi</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 20:47:33 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/850.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Aug 2020 02:26:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Fri, 06 May 2022 12:41:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/14401">@dean-mcnaughton</a>, nice.  Good job getting it working.</p>
]]></description><link>https://www.triggercmd.com/forum/post/5817</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5817</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 06 May 2022 12:41:38 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Thu, 05 May 2022 11:31:05 GMT]]></title><description><![CDATA[<p dir="auto">I've got this working now.</p>
<p dir="auto">Instead of installing using the instructions at <a href="https://www.triggercmd.com/forum/topic/12/raspberry-pi-setup">"Raspberry Pi Setup"</a>, I went to the <a href="https://www.triggercmd.com/user/computer/create" rel="nofollow ugc">"Instructions"</a> page and downloaded the deb file and token there.  The deb installed the agent to <strong>/usr/share/triggercmdagent</strong> and the <strong>.TRIGGERcmdData</strong> folder was placed in <strong>/home/pi</strong>.  Now I can add/edit the commands.json file inside the <strong>.TRIGGERcmdData</strong> folder and everything works as it should.</p>
]]></description><link>https://www.triggercmd.com/forum/post/5812</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5812</guid><dc:creator><![CDATA[Dean McNaughton]]></dc:creator><pubDate>Thu, 05 May 2022 11:31:05 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Wed, 04 May 2022 16:05:25 GMT]]></title><description><![CDATA[<p dir="auto">After a brief foray with Ubuntu, I'm back to Raspberry Pi OS.</p>
<p dir="auto">Attempted a Raspberry Pi OS installation loaded with triggercmd, using the method described here: <a href="https://www.triggercmd.com/forum/topic/606/windows-script-to-prep-sd-card-for-raspberry-pi-with-triggercmd-agent">Windows script to prep SD card for Raspberry Pi with TRIGGERcmd agent</a>.  But it didn't get past the boot screen.</p>
<p dir="auto">So, reinstalled triggercmdagent from scratch using original instructions here: <a href="https://www.triggercmd.com/forum/topic/12/raspberry-pi-setup">Raspberry Pi setup</a>.</p>
<p dir="auto">Followed those instructions verbatim and triggers still aren't working.  In fact, the calculator trigger doesn't work anymore.</p>
<p dir="auto">I'm stumped.</p>
]]></description><link>https://www.triggercmd.com/forum/post/5809</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5809</guid><dc:creator><![CDATA[Dean McNaughton]]></dc:creator><pubDate>Wed, 04 May 2022 16:05:25 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Tue, 03 May 2022 13:05:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a><br />
I'm going a different route... replacing Raspian with Ubuntu.  There are other programs that may work better with that OS as well.</p>
]]></description><link>https://www.triggercmd.com/forum/post/5805</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5805</guid><dc:creator><![CDATA[Dean McNaughton]]></dc:creator><pubDate>Tue, 03 May 2022 13:05:52 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Mon, 02 May 2022 23:21:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a></p>
<p dir="auto">Thank you for the recommendations!  Still no success. <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=6sa9akdcpc2" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto"><strong>1. Regarding the full path:</strong></p>
<p dir="auto">Should have mentioned I did try the full path and it did not work. It was structured as follows:</p>
<pre><code>{"trigger":"chromium","command":"/usr/share/applications/chromium-browser.desktop","ground":"foreground","voice":"chromium","allowParams": "false"}
</code></pre>
<p dir="auto"><strong>2. Regarding the url link:</strong><br />
I also tried your suggestion to use the xdg-open command with the url.  It did not work.</p>
<p dir="auto"><strong>3. Regarding X-windows</strong><br />
I am curious about the X-windows advice; I have no experience with X-windows, but did read over your original <a href="https://www.triggercmd.com/forum/topic/12/raspberry-pi-setup">"Raspberry Pi Setup"</a> post and noticed you discussed it there, then read a little more on it, but still really don't understand what it is.  I use <em>PuTTy</em> to ssh and <em>VNC Viewer</em> to view.  My ignorance on X-windows could be the root of the problem.  Not sure.</p>
<p dir="auto"><strong>4. Regarding xhost +</strong></p>
<p dir="auto">Continuing from #3 (above), I thought... "Maybe X-windows is running and I don't even know it.  So, I'll just try the <strong>xhost +</strong> commands."  Those results are as follows:</p>
<p dir="auto"><strong>4a. Entering xhost from PuTTy:</strong><br />
When entering <strong>xhost +</strong> as user in PuTTy this is the response:</p>
<pre><code>pi@raspberrypi:~ $ xhost +
xhost:  unable to open display ""
</code></pre>
<p dir="auto"><strong>4a. Entering xhost from Terminal on RPi:</strong><br />
When entering <strong>xhost +</strong> as user in terminal on the RPi, this is the response:</p>
<pre><code>pi@raspberrypi:~ $ xhost +
access control disabled, clients can connect from any host
</code></pre>
<p dir="auto">I really do appreciate the help you've given, and any other quick thoughts you might have. Also don't want to waste too much of your time, so please don't feel too compelled to solve my problems.  They are... my problems. <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6sa9akdcpc2" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://www.triggercmd.com/forum/post/5801</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5801</guid><dc:creator><![CDATA[Dean McNaughton]]></dc:creator><pubDate>Mon, 02 May 2022 23:21:54 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Mon, 02 May 2022 22:26:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/14401">@dean-mcnaughton</a>, I think you're running into the problems we worked through in <a href="https://www.triggercmd.com/forum/topic/12/raspberry-pi-setup/24">this post</a>.</p>
<p dir="auto">You might need to specify the full path to the command.</p>
<p dir="auto">If the agent is running as root in background mode, you'll need to make your commands have ground = background.</p>
<p dir="auto">Also your Xwindows is running as your user (pi by default), so you'll want to run this command as your user to allow root to display Xwindows apps in your user's Xwindows:</p>
<pre><code>xhost +
</code></pre>
<p dir="auto">Also, your command should run a script that includes this before the app runs.  This will tell it to display the app on in user's Xwindows:</p>
<pre><code>export DISPLAY=:0.0
</code></pre>
<p dir="auto">Or, if your agent is running in forground mode as your user (probably pi), could you try something like this to open Chromium?</p>
<pre><code>{"trigger":"myTriggerName","command":"xdg-open https://google.com","ground":"foreground","voice":"myTriggerName","allowParams":"false"}
</code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/5800</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5800</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Mon, 02 May 2022 22:26:21 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Mon, 02 May 2022 21:26:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/14401">@dean-mcnaughton</a></p>
<p dir="auto">To summarize, with the following commands.json file:</p>
<p dir="auto">[<br />
{"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},<br />
{"trigger":"Gnome Editor","command":"gedit","ground":"foreground","voice":"edit","allowParams": "false"},<br />
{"trigger":"yum update","command":"yum -y update","ground":"background","voice":"yum update","allowParams": "false"},<br />
{"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"},<br />
{"trigger":"calculator","command":"galculator","ground":"foreground","voice":"calculator","allowParams": "false"},<br />
{"trigger":"chromium","command":"chromium-browser","ground":"foreground","voice":"chromium","allowParams": "false"}<br />
]</p>
<p dir="auto">Calculator works<br />
Gnome does not work<br />
Chromium does not work</p>
]]></description><link>https://www.triggercmd.com/forum/post/5799</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5799</guid><dc:creator><![CDATA[Dean McNaughton]]></dc:creator><pubDate>Mon, 02 May 2022 21:26:21 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Mon, 02 May 2022 21:25:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/14401">@dean-mcnaughton</a></p>
<p dir="auto">Weird.  I made some edits (can't retrace my steps) and the calculator started working.  Now having the same problem trying to make another foreground command using "chromium-browser" as the command.</p>
<p dir="auto">So, to summarize, with the following commads.json file:</p>
<p dir="auto">[<br />
{"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},<br />
{"trigger":"Gnome Editor","command":"gedit","ground":"foreground","voice":"edit","allowParams": "false"},<br />
{"trigger":"yum update","command":"yum -y update","ground":"background","voice":"yum update","allowParams": "false"},<br />
{"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"},<br />
{"trigger":"calculator","command":"galculator","ground":"foreground","voice":"calculator","allowParams": "false"},<br />
{"trigger":"chromium","command":"chromium-browser","ground":"foreground","voice":"chromium","allowParams": "false"}<br />
]</p>
<p dir="auto">Calculator: works<br />
Gnome: does not work<br />
Chromium: does not work</p>
]]></description><link>https://www.triggercmd.com/forum/post/5798</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5798</guid><dc:creator><![CDATA[Dean McNaughton]]></dc:creator><pubDate>Mon, 02 May 2022 21:25:24 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Mon, 02 May 2022 15:32:33 GMT]]></title><description><![CDATA[<p dir="auto">Love the app.  Great work you're doing!  Works like a charm on my mac and PC.</p>
<p dir="auto">Having problems getting commands to run in the foreground on RPi4.  Wondering if you can spot a quick reason.</p>
<p dir="auto">I've installed the triggercmdagent as root.  It's in my list of computers.  Triggers get sent and I can see they are "ran" with a triggercmdagent instance open in PuTTy.</p>
<p dir="auto">The specific command I'm trying to run is one I added to the /root/.TRIGGERCmdData/commands-.json file, as follows:</p>
<p dir="auto">{"trigger":"calculator","command":"galculator","ground":"foreground","voice":"calculator","allowParams": "false"}</p>
<p dir="auto">With this command, I'd expect to see the calculator open in the foreground, but nothing visible happens on the screen, despite triggercmdagent indicating it ran via PuTTy.</p>
]]></description><link>https://www.triggercmd.com/forum/post/5797</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5797</guid><dc:creator><![CDATA[Dean McNaughton]]></dc:creator><pubDate>Mon, 02 May 2022 15:32:33 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Sun, 23 Aug 2020 21:40:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> Thanks for the tip!<br />
I removed the triggerCMD and performed a new installation using the root user.<br />
Initially, he had problems when I made changes to the <strong>commands.json</strong> file using nano.<br />
Using the ne everything went well.</p>
]]></description><link>https://www.triggercmd.com/forum/post/2732</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2732</guid><dc:creator><![CDATA[Celso Santos]]></dc:creator><pubDate>Sun, 23 Aug 2020 21:40:55 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t create triggers on the raspberry pi on Sun, 23 Aug 2020 13:01:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/4397">@Celso-Santos</a>, in your output I see, "No token exists. Login to request one."</p>
<p dir="auto">I think you probably entered your token while logged in as your pi (not root) user.</p>
<p dir="auto">The instructions <a href="https://www.triggercmd.com/forum/topic/12/raspberry-pi-setup">here</a> start with the <strong>sudo su -</strong> command to switch to root.</p>
<p dir="auto">You'll probably need to delete your computer in your account (because it's associated with your pi user), and run triggercmdagent while logged in as root so you can re-enter a token and re-create the computer in your account.</p>
]]></description><link>https://www.triggercmd.com/forum/post/2731</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2731</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sun, 23 Aug 2020 13:01:22 GMT</pubDate></item></channel></rss>