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

    How do I create a trigger

    Raspberry Pi
    2
    2
    81
    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.
    • M
      mega_big
      last edited by

      I´m new in the linux console, and I dont now how to config a new trigger, I have already installed and connected to an account

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @mega_big
        last edited by Russ

        @mega_big, on a Raspberry Pi, assuming you installed the agent using these instructions, your commands are in this file:

        /root/.TRIGGERcmdData/commands.json
        

        You'll see the default commands in there.

        You can run these commands to edit it:

        sudo su -
        cd /root/.TRIGGERcmdData
        nano commands.json
        

        While the agent is running, it will detect changes in that commands.json file and create/remove triggers for those commands in your TRIGGERcmd account. If you mess up the json at all (an extra comma even), the agent will restore the last backup it took. You'll see that in your debug.log.

        If you don't want to deal with editing text, you could create a command on your Windows PC using the "GUI Command Editor" then copy/paste the json text of that command from the "Text Command Editor" into your commands.json file.

        Russell VanderMey

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