Thanks a lot, it seems to work!
Posts made by Oliver Oßwald
-
RE: Raspberry Pi set commands
Hey,
I tried it out, but it doesn't help.Here are the commands I run:
dpkg -i triggercmdagent_1.0.1_all.deb sudo su triggercmdagent nano /root/.TRIGGERcmdData/commands.json _____ [ {"trigger":"neustarten","command":"sudo shutdown -r","ground":"background","voice":"Raspi neustarten","allowParams": "false"}, {"trigger":"herunterfahren","command":"sudo shutdown -h now", "ground":"background","voice":"Raspi herunterfahren","allowParams":"false"}, {"trigger":"neustarten2","command":"sudo shutdown -r","ground":"foreground","voice":"Raspi neustarten","allowParams": "false"}, {"trigger":"herunterfahren2","command":"sudo shutdown -h now", "ground":"foreground","voice":"Raspi herunterfahren","allowParams":"false"} ] _____ /usr/share/triggercmdagent/app/src/installdaemon.sh
And here is the output:
root@raspi:/home/pi# /usr/share/triggercmdagent/app/src/installdaemon.sh Daemon install: true Logging in with saved token. Checking if the ********** computer exists. This computer exists in your account. * triggercmdagent.service - TRIGGERcmd Agent Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2020-05-25 15:47:58 CEST; 52min ago Main PID: 2491 (node) Tasks: 11 (limit: 4915) Memory: 22.6M CGroup: /system.slice/triggercmdagent.service `-2491 node /usr/share/triggercmdagent/app/src/daemon.js --run /root/.TRIGGERcmdData Mai 25 16:02:22 raspi env[2491]: at tryOnTimeout (timers.js:300:5) Mai 25 16:02:22 raspi env[2491]: at listOnTimeout (timers.js:263:5) Mai 25 16:02:22 raspi env[2491]: at Timer.processTimers (timers.js:223:10) Mai 25 16:02:22 raspi env[2491]: Restoring the last known good file Mai 25 16:02:22 raspi env[2491]: Restore backup completed. Mai 25 16:02:23 raspi env[2491]: Write backup completed. Mai 25 16:02:24 raspi env[2491]: Initiated command removals Mai 25 16:02:24 raspi env[2491]: Initiated command adds Mai 25 16:02:24 raspi env[2491]: Failed while trying add a trigger. Mai 25 16:02:24 raspi env[2491]: Failed while trying add a trigger.
-
RE: Raspberry Pi set commands
Thanks for your reply.
I run also the installdaemon script, but it didn't help.
Here is my commands.json:[ {"trigger":"neustarten","command":"sudo shutdown -r","ground":"background","voice":"Raspi startet neu","allowParams": "false"}, {"trigger":"herunterfahren","command":"sudo shutdown -h now", "ground":"background","voice":"Raspi fährt herunter","allowParams":"false"} {"trigger":"neustarten","command":"sudo shutdown -r","ground":"foreground","voice":"Raspi startet neu","allowParams": "false"}, {"trigger":"herunterfahren","command":"sudo shutdown -h now", "ground":"foreground","voice":"Raspi fährt herunter","allowParams":"false"} ]
The foreground commands are only for testing
-
Raspberry Pi set commands
Hi,
I successfully installed triggercmd on my Raspberry Pi 4.
I also changed/added a command under ~/.TRIGGERcmdData/commands.json, but under the Trigger Section on the Website, there ist still only the "Gnome Editor" command (which I deleted).
What's wrong?
Thanks for your help.