help creating hookfile #677
-
Hi and good evening, after creating and executing a very basic webhook {
"id": "fronius1off",
"execute-command": "/home/pi/Desktop/webhooks/fronius1off.sh",
"command-working-directory": "/home/pi/Desktop/webhooks",
}, I would like to create an extended version which exceeds my knowledge so far a bit... I would like to add 2 parameters - a Number 1...4 and a String ON or OFF to the shellscript that gets executed. So webhook http://192.168.1.111:9000/hooks/fronius?1&ON Now I am stuck after hours and hours playing with pass-arguments-to-command and or clauses and "match" but I can't get it to work, I always get: "fronius got matched, but didn't get triggered because the trigger rules were not satisfied" manyTHX for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Use key=value pairs for the parameters: {
"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"
}
]
} |
Beta Was this translation helpful? Give feedback.
Use key=value pairs for the parameters:
http://192.168.1.111:9000/hooks/fronius?node=1&state=ON