Dans mes scripts LUA j'utilise pour mes notifications pushover cette commande:
Code : Tout sélectionner
os.execute('curl -s --data "token=MACLEFTOKEN&user=MONUSER&title=Domoticz+Alerte&priority=2&retry=60&expire=180&message=TEMPERATURE CONGELO TROP HAUTE" https://api.pushover.net/1/messages.json')
J'aimerais pouvoir inclure dans les notifications une variable locale (genre dans l'exemple ci-dessus la température du congélo: tempcongelo)
Quelqu'un saurait-il me dire comment ajouter cette variable dans le texte de ma notification ?
Sachant que j'ai déjà essayé quelques trucs:
Code : Tout sélectionner
os.execute('curl -s --data "token=MACLEFTOKEN&user=MONUSER&title=Domoticz+Alerte&priority=2&retry=60&expire=180&message=TEMPERATURE CONGELO TROP HAUTE ..tempcongelo" https://api.pushover.net/1/messages.json')
Code : Tout sélectionner
os.execute('curl -s --data "token=MACLEFTOKEN&user=MONUSER&title=Domoticz+Alerte&priority=2&retry=60&expire=180&message=TEMPERATURE CONGELO TROP HAUTE `..tempcongelo`" https://api.pushover.net/1/messages.json')
Code : Tout sélectionner
os.execute('curl -s --data "token=MACLEFTOKEN&user=MONUSER&title=Domoticz+Alerte&priority=2&retry=60&expire=180&message=TEMPERATURE CONGELO TROP HAUTE '..tempcongelo'" https://api.pushover.net/1/messages.json')
Si quelqu'un a une idée je suis preneur