Raspberry Pi OS (64 bit)
-
i can't make it work on the Raspberry Pi OS (64 bit)
i have modified the file /root/.TRIGGERcmdData/commands.json
but is still showing the default commands on the site.[
{"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},
{"trigger":"Clear ram","command":"/home/pi/ram.sh","ground":"background","voice":"Clear ram","allowParams": "false"},
{"trigger":"Computer on","command":"/home/pi/wol.sh","ground":"background","voice":"Computer on","allowParams": "false"},
{"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"}
{"trigger":"Pi temperature","command":"python3 /home/pi/temperature.py","ground":"background","voice":"system temperature","voiceReply":"The pi temperature is {{result}} degrees","allowParams": "false"}
]
and on site it showsGnome Editor
Reboot
yum update
apt updateand i dot kow way evry time i refresh the page on site the token is a new one.
in: Your Computers it shows up like is connected. -
@Călin-Cătălin-Alexandru, please paste the output of this command:
systemctl status triggercmdagentThe problem might be either that you haven't installed the background agent, or you ran the agent as your user instead of as root.
I recommend you try the steps on this page again, and make sure you run this command first: sudo su -
If you're not subscribed, you may need to delete your computer on the website before you re-run these steps because if you ran the agent as your non-root user, it would have created a .TRIGGERcmdData directory in your users's home directory, and created a computer associated with that data folder.
-
root@z3r0:~# systemctl status triggercmdagent
● triggercmdagent.service - TRIGGERcmd Agent
Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-07-28 18:39:58 EEST; 671ms ago
Main PID: 625 (node)
Tasks: 6 (limit: 4539)
CGroup: /system.slice/triggercmdagent.service
└─625 node /usr/share/triggercmdagent/app/src/daemon.js --run /root/.TRIGGERcmdDataJul 28 18:39:58 z3r0.go.ro systemd[1]: Started TRIGGERcmd Agent.
-
-
looks like the problem was the last line in commands.json
i have delete: {"trigger":"Pi temperature","command":"python3 /home/pi/temperature.py","ground":"background","voice":"system temperature","voiceReply":"The pi temperature is {{result}} degrees","allowParams": "false"}
and now it works
-
Awsome, @Călin-Cătălin-Alexandru I'm glad you figured it out.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login