TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    My command doesn't trigger from the web, triggers from the app

    General Discussion
    2
    4
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User
      last edited by

      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?

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @A Former User
        last edited by Russ

        @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.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by

          @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.

          RussR 1 Reply Last reply Reply Quote 0
          • RussR
            Russ @A Former User
            last edited by Russ

            @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.

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • First post
              Last post