Re: Domoticz et Freebox
Publié : 17 févr. 2016, 16:26
merci de cette réponse, en fait je n 'etais a fond dedans et je ne me souvenais plus exactement ce qu'il fallait redemander... probleme resolu de mon coté
Reprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
parfait pour moifratton a écrit :J'ai une Freebox Crystal (idem Freebox V5) et j'utilise ce script shell :Code : Tout sélectionner
#!/bin/bash DOWNLOAD=`wget -q -O - http://mafreebox.freebox.fr/pub/fbx_info.txt | grep ATM | awk '{printf $3}'` curl -s "http://192.168.1.100:8080/json.htm?type=command¶m=udevice&idx=179&svalue="$DOWNLOAD UPLOAD=`wget -q -O - http://mafreebox.freebox.fr/pub/fbx_info.txt | grep ATM | awk '{printf $5}'` curl -s "http://192.168.1.100:8080/json.htm?type=command¶m=udevice&idx=180&svalue="$UPLOAD
fratton a écrit :J'ai une Freebox Crystal (idem Freebox V5) et j'utilise ce script shell :
un cron l'appel toute les 30mn (suffisant pour moi)Code : Tout sélectionner
#!/bin/bash DOWNLOAD=`wget -q -O - http://mafreebox.freebox.fr/pub/fbx_info.txt | grep ATM | awk '{printf $3}'` curl -s "http://192.168.1.100:8080/json.htm?type=command¶m=udevice&idx=179&svalue="$DOWNLOAD UPLOAD=`wget -q -O - http://mafreebox.freebox.fr/pub/fbx_info.txt | grep ATM | awk '{printf $5}'` curl -s "http://192.168.1.100:8080/json.htm?type=command¶m=udevice&idx=180&svalue="$UPLOAD
J'utilise 2 capteurs virtuel de type Tension ce qui me permet d'avoir une courbe des débits à l'année, bon c'est pas top d'avoir Volt au lieu de kbps, dommage que domoticz n'a pas un compteur tous simple ou l'on pourrait configurer l'unité.
Code : Tout sélectionner
Uptime : 5%20jours%2015%20heures%2054%20mn%2033%20secs
Max Upload xDSL rate: 997%20kb/s
Max Download xDSL rate: 6135%20kb/s
Firmware : 3.3.2
Free space HD : 157909%20MBytes
HTTP/1.1 200 OK
Content-Length: 53
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *
{
"status" : "OK",
"title" : "Update Device"
}
HTTP/1.1 200 OK
Content-Length: 24
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *
{
"status" : "ERR"
}
HTTP/1.1 200 OK
Content-Length: 24
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *
{
"status" : "ERR"
}
HTTP/1.1 200 OK
Content-Length: 24
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *
{
"status" : "ERR"
}
HTTP/1.1 200 OK
Content-Length: 24
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *
{
"status" : "ERR"
}