Page 1 sur 1

[Tuto] Notification Push Windows Phone

Publié : 17 nov. 2014, 10:19
par jackslayter
comme vous l'avez constaté il n’existe pas de notification pour WP, seulement iOS et android.
voici un script pour combler se manque

notification.sh

Code : Tout sélectionner

#!/bin/bash
curl -F "AuthorizationToken=MA_CLE_API" \
	-F "Body=$*" \
	https://pushalot.com/api/sendmessage
un petit chmod

ensuite dans domoticz dans le device choisi mettre

Code : Tout sélectionner

script:///home/pi/domoticz/notification.sh mon texte a envoyer
dans On ou Off

Re: Notification Push Windows Phone

Publié : 07 déc. 2014, 15:11
par jackslayter
commande pour inserer dan un script lua

Code : Tout sélectionner

os.execute ('curl -F "AuthorizationToken=MA_CLE_API" -F "Body=mon texte" https://pushalot.com/api/sendmessage')