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

    Help with Trigger for Ubuntu

    Linux
    2
    3
    374
    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.
    • Dean McNaughtonD
      Dean McNaughton
      last edited by

      I'm trying to run a file titled, "Alarm_Arm.html" inside my "Downloads" folder. Nothing is happening. I can confirm the triggercmd agent is open and running, and able to run other triggers/commands. So, I really do believe the problem must be in the structure of this line of code. Any suggestions what may be wrong?

      {"trigger":"Arm","command":"/home/dmcnaugh/Downloads/Alarm_Arm.html","ground":"foreground","voice":"Arm_the_alarm","allowParams": "false"}
      
      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @Dean McNaughton
        last edited by Russ

        @dean-mcnaughton, I haven't tested this yet, but maybe one of these would work:

        chromium-browser /home/dmcnaugh/Downloads/Alarm_Arm.html
        google-chrome /home/dmcnaugh/Downloads/Alarm_Arm.html
        xdg-open /home/dmcnaugh/Downloads/Alarm_Arm.html
        

        Basically, your command is trying to execute the html file which isn't possible. You need to run something that is executable, like a browser.

        Russell VanderMey

        Dean McNaughtonD 1 Reply Last reply Reply Quote 0
        • Dean McNaughtonD
          Dean McNaughton @Russ
          last edited by

          @russ

          I'm using chrome and it worked with the following:

          google-chrome /home/dmcnaugh/Downloads/Alarm_Arm.html
          

          Thank you, Russ!

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