@MilkShake So IFTTT makes a webrequest that looks like this:
URL: https://MMPUBLICURL/webhook
Method: POST
Content type: application/json
Body: { “sender”: { “name”:“IFTTT” }, “notification”: “OPEN_GATE”}
I thought I could do something like:
{
module: "MMM-NotificationTrigger",
config: {
useWebhook: true,
triggers:[
{
trigger: "PLAY_SOUND",
fires: [
{
fire:"USER_PRESENCE",
payload: function(payload) {
return false
}
},
{
fire:"SHOW_ALERT",
payload: function(payload) {
return {
type: "notification",
title: "Porten",
message: "Der er nogen ved porten!"
}
},
}
],
},
{
trigger: "OPEN_GATE",
fires: [
exec: "home/pi/open_gate.py"
],
},
]
}
},
What is the correct syntax to fire a script?