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

Help with Trigger for Ubuntu

Linux
2
3
394
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.
  • D
    Dean McNaughton
    last edited by May 7, 2022, 1:44 PM

    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"}
    
    R 1 Reply Last reply May 7, 2022, 1:48 PM Reply Quote 0
    • R
      Russ @Dean McNaughton
      last edited by Russ May 7, 2022, 1:49 PM May 7, 2022, 1:48 PM

      @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

      D 1 Reply Last reply May 7, 2022, 2:53 PM Reply Quote 0
      • D
        Dean McNaughton @Russ
        last edited by May 7, 2022, 2:53 PM

        @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
        3 out of 3
        • First post
          3/3
          Last post