Please cancel my subscription and remove the PayPal charge.
tks
Please cancel my subscription and remove the PayPal charge.
tks
@Russ i got it now. tks a lot!
in fact, I need start triggercmdagent on startup. thats the point of this thread, cause I thought that the wrong background installation did not start the trigger correctly.
@Russ tks for your attention.
One Question: /root/.TRIGGERcmdData/computerid.cfg doesn't exists.
root@NOTEBOOK:~/.TRIGGERcmdData# cat commands.json
[
{"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},
{"trigger":"Gnome Editor","command":"gedit","ground":"foreground","voice":"edit","allowParams": "false"},
{"trigger":"yum update","command":"yum -y update","ground":"background","voice":"yum update","allowParams": "false"},
{"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"}
]
root@NOTEBOOK:~/.TRIGGERcmdData# cat debug.log
No token exists. Login to request one.
Quitting
root@NOTEBOOK:~/.TRIGGERcmdData# ls -al
total 24
drwxr-xr-x 2 root root 4096 mai 20 12:52 .
drwx------ 20 root root 4096 mai 27 14:03 ..
-rw-r--r-- 1 root root 461 mai 15 09:53 commands.json
-rw-r--r-- 1 root root 49 mai 26 10:38 debug.log
-rw-r--r-- 1 root root 516 mai 15 09:53 sendresult.sh
-rw-r--r-- 1 root root 228 jun 2 14:02 triggercmdagent.service
But exists in this folder ~/.TRIGGERcmdData/computerid.cfg.
[
{
"trigger": "open-youtube",
"command": "google-chrome https://www.youtube.com;",
"ground": "background",
"voice": "abrir youtube",
"voiceReply": "open youtube",
"allowParams": "false"
},
.
.
.
does any thing wrong with my instalattion?
after install background service and close triggercmd agent, my alexia commands dont work.
look my agent status:
fred@NOTEBOOK:~$systemctl status triggercmdagent.service
ā triggercmdagent.service - TRIGGERcmd Agent
Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Tue 2020-06-02 14:02:24 -03; 14min ago
Process: 29520 ExecStart=/usr/bin/env node /usr/lib/triggercmdagent/resources/app/src/daemon.js --run /root/.TRIGGERcmdData (code=exited, status=0/SUCCESS)
Main PID: 29520 (code=exited, status=0/SUCCESS)
CPU: 282ms
Just woks with open agent or run this command:
fred@NOTEBOOK:~$node /usr/lib/triggercmdagent/resources/app/src/daemon.js --run /home/fred/.TRIGGERcmdData
Running Linux daemon to run background tasks.
Run installdaemon.sh to install the triggercmdagent daemon so it runs during boot
Tokenfile: /home/fred/.TRIGGERcmdData/token.tkn
ComputerIDfile: /home/fred/.TRIGGERcmdData/computerid.cfg
Logging in with saved token to run background tasks.
Write backup completed.
|> Now connected to https://www.triggercmd.com.
\___/ For help, see: http://bit.ly/2q0QDpf
(using sails.io.js node SDK @v1.2.1)
Connected at: Tue Apr 23 2019 18:29:36 GMT+0000 (UTC)
Initiated command adds
Initiated command removals
{ message: 'Subscribed to 5ace777f053a4600193464d1!' }
{ message: 'Subscribed to 5ace777f053a4600193464d1!' }
{ trigger: 'open-youtube', id: '5ace9eb5a2b3bd0019322655' }
Running trigger: open-youtube Command: google-chrome https://www.youtube.com;
Reported: Command Ran