My command doesn't trigger from the web, triggers from the app
-
Hi, I created command to turn off displays, I would like to trigger it by Google Assistant. It works when I test it from the app (the displays turn off). But when I try it from the web interface or Google Assistant, nothing happens. But the log says "Command ran". Can you help?
-
@david-vávra, does it work to trigger Calculator and Notepad from the web?
If even those don't run, you could try closing and re-opening the TRIGGERcmd agent.
Also it's a foreground command right? Not background.
-
@Russ It was background, it started to work when I changed it to foreground. I suggest you remove this foreground/background or rename it. It's confusing, I thought that command should be background if I have background service installed.
-
@david-vávra, it seems that command was actually running, but in the context of your TRIGGERcmd background service, and in that context it couldn't turn off your displays.
The background service is meant to run things that need to be able to run while you're not logged on, like a reboot command or something. It has limited value on Windows, so I set the default to foreground. I think background commands are more useful on a Linux box because they run as root.
Anyway, in my next version I'll try to make it clearer what that background/foreground field means.