Skip to content

help creating hookfile #677

Answered by moorereason
kraweuschuasta asked this question in Q&A
Discussion options

You must be logged in to vote

Use key=value pairs for the parameters: http://192.168.1.111:9000/hooks/fronius?node=1&state=ON

  {
    "id": "fronius",
    "execute-command": "/home/pi/Desktop/webhooks/fronius.sh",
    "command-working-directory": "/home/pi/Desktop/webhooks",
    "pass-arguments-to-command": [
      {
        "source": "url",
        "name": "node"
      },
      {
        "source": "url",
        "name": "state"
      }
    ]
  }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kraweuschuasta
Comment options

Answer selected by moorereason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants