Browse Source
Ajout du script updateESP.sh pour mettre à jour le module ESPEasy distant Changes to be committed: modified: enphase.py new file: updateESP.shmaster
2 changed files with 16 additions and 1 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash |
||||
# Execute une commande distance sur le module ESP |
||||
# syntaxe : updateESP.sh PARAM VALUE |
||||
# PARAM : 3 -> min_temp ; 4 -> min_prct |
||||
|
||||
IP="192.168.0.115" |
||||
|
||||
[ ! -z "$1" ] || echo "PARAM is empty" |
||||
[ ! -z "$2" ] || echo "VALUE is empty" |
||||
|
||||
if [ ! -z "$1" ] && [ ! -z "$2" ]; then |
||||
curl http://$IP/control?cmd=taskvalueset,3,$1,$2 |
||||
else |
||||
echo "Leaving script :-(" |
||||
fi |
||||
Loading…
Reference in new issue