No-GUI TRIGGERcmd agent that works on 32bit Windows
-
C:\Program Files\TriggerCMD>node C:\Program Files\TriggerCMD\agent --console
module.js:538
throw err;
^Error: Cannot find module 'C:\Program'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3 -
@xander, awesome!!
I see the problem. This command is failing because there's a space between Program and Files.
node C:\Program Files\TriggerCMD\agent --console
Please change the command in triggercmdagent.bat to this:
node "%~dp0agent" --console
Or just re-download the zip file. I updated it to add those quotes.
The quotes should allow you to put this in a folder that has spaces in the name.
Thanks for discovering this, and for your patience.
-
Workin' ... almost.
Token entered, it now shows up on my list here on your site. Entered a new command in the commands.json but, even after allowing some time for that list to sync up, it's not showing. FWIW, the default list had three commands built into it (reboot, calc, notepad) and only two show up server-side (calc, notepad).
https://i.gyazo.com/0a9e27487781c04fe5ab2d2949f4f164.png
Even with that, Alexa "can't find trigger command Notepad on the stick" She said she was triggering Calculator...but it never opened (and shows "0 runs" on the server). Update: eventually got Alexa to say she was running it but, like Calc, nothing did. -
@xander, good progress.
The reason only Calculator and Notepad show up is you're only running a foreground agent. The background agent won't work in your case because you're using the basic 32bit Windows agent. The foreground agent reads foreground commands from commands.json, and the background agent reads the background commands.
Are you able to run the commands from the green Trigger buttons on the website?
Do you get any output in your cmd window when you trigger a command from the website?
-
@Russ
I'm posting here because I followed the previos posts instruction to installa the agent on a Win 7 32bit PC.Yesterday I did the same on my PC (Win 7 64) to test the remote controls through Alexa on my phone (waiting for the delivery of an Echo 4 ge speaker) and everything works.
Now I'm setting up an agent on my wife's music PC so she can control Foobar remotely with Google assistant.
On the site I can see the computer and the triggers (Calc and notepad) but clicking on the green button I can only see the site going into another page for a second and then coming back to the list, but on the PC and in in a vmd window nothing happens.What should I check?
Thank you.
-
Please confirm your wife's computer is 32bit so you're running the agent in a cmd window? Will you please send me a screenshot?
If you see the computer in your wife's TRIGGERcmd account, then it must have talked to TRIGGERcmd at some point and logged in with her token.
The screenshot might show me whether it's connected to the server.
Also, please show me the version of node js you're using by typing this command:
node --version
-
@Russ
Hi Russ,
thank you for the propmp reply.
The js version is v8.9.1
I re-ran the .bat and it asked for the token again.
Now the site sees my triggers and updates them straight away.
After a few minutes, the Google Home app is not getting the updates anymore : any hint?
Thanks. -
@prik-m
I tried log out of the site to login with a diffrent google user but it automatically login with the previous one without giving me the possibility to change: can I do something about it?Thx.
-
I can't make this trigger to work on the Win 32 pc. I copied the config lines from the commands.json file I created with the GUI on a win 64 pc:
, { "trigger": "FB desk stop", "command": "C:\\Users\\fabio\\Desktop\\foobar162\\foobar2000.exe /stop", "offCommand": "", "ground": "foreground", "voice": "music desk stop", "voiceReply": "got it", "allowParams": "false" }
Even if I trigger it with the online green button it does nothing and I can't see anything happening in an open cmd window: any clue? Or at least how can I troubleshoot this problem?
Thanks.
-
@prik-m said in No-GUI TRIGGERcmd agent that works on 32bit Windows:
C:\Users\fabio\Desktop\foobar162\foobar2000.exe /stop
On the Win 32 pc, does this command work?
C:\Users\fabio\Desktop\foobar162\foobar2000.exe /stop
Also, you mentioned "an open cmd window." Is that the cmd window where you're running the node agent.js --console command?
Or are you expecting TRIGGERcmd to type a command in a cmd window you opened? I doesn't do that.
Can you send me a screenshot?
-
@prik-m said in No-GUI TRIGGERcmd agent that works on 32bit Windows:
@prik-m
I tried log out of the site to login with a diffrent google user but it automatically login with the previous one without giving me the possibility to change: can I do something about it?Thx.
If you use Chrome, you could use a different profile logged in as the other user.
https://support.google.com/chrome/answer/2364824?hl=en&co=GENIE.Platform%3DDesktop