[Tuto] Notification Push Windows Phone

Vous avez créé un script LUA dont vous êtes fier, un .sh génial, un programme Python hors du commun, un Tuto, c'est ici que vous pouvez les partager.
jackslayter
Messages : 1040
Inscription : 30 sept. 2014, 14:40
Localisation : Isère (38)

[Tuto] Notification Push Windows Phone

Message 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
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
jackslayter
Messages : 1040
Inscription : 30 sept. 2014, 14:40
Localisation : Isère (38)

Re: Notification Push Windows Phone

Message 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')
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Répondre