- #1 601
Pour avoir essayé openhab, je préfère fhem....
Et maintenant je m essaie à home-assistant qui semble très prometteurs
Et maintenant je m essaie à home-assistant qui semble très prometteurs
root@raspberrypi:/var/www/html# cd /home/pi/raspVMC/
root@raspberrypi:/home/pi/raspVMC# ./server.py &
[1] 1682
root@raspberrypi:/home/pi/raspVMC# ./client1.py
connecting to 127.0.0.1 port 10000
requesting data
Average command timing 0.252749872208 total time 2.52749872208 for 10 commands
{
"config": {
"actif": {
"P10": "actif",
"P11": "actif",
"P12": "actif",
"P13": "actif",
"P14": "actif",
"P15": "actif",
"P16": "actif",
"P17": "actif",
"P18": "actif",
"P19": "actif",
"P90": "actif",
"P91": "actif",
"P92": "actif",
"P93": "actif",
"P94": "actif",
"P95": "actif",
"P96": "actif"
},
"bypass": "present",
"confofond": "absent",
"enthalpie": "absent",
"prechauffage": "present",
"taille": "undef",
"type": "undef",
"ventilateurs": {
"admission": {
"absent": 15,
"actuel": 50,
"vitesse1": 35,
"vitesse2": 50,
"vitesse3": 70
},
"extraction": {
"absent": 15,
"actuel": 50,
"vitesse1": 35,
"vitesse2": 50,
"vitesse3": 70
},
"extractionetat": 1,
"vitesse": 3
}
},
"data": {
"bypass": {
"correction": 0,
"facteur": 0,
"mode": "hiver",
"periode": 0
},
"erreurs": {
"1": "00",
"2": "00",
"3": "00",
"4": "00",
"5": "00",
"6": "00",
"7": "00",
"8": "00",
"9": "00",
"10": "00",
"11": "00",
"12": "00",
"13": "00",
"14": "00",
"15": "00",
"16": "00",
"17": "00"
},
"temperature": {
"Tairneuf": 10.0,
"Tconfort": 21.0,
"Textrait": 11.0,
"Trepris": 23.0,
"Tsoufflage": 18.5,
"capteur": {
"TEnthalpie": "absent",
"Tairneuf": "present",
"Tappoint": 25.0,
"Tapppoint": "absent",
"Tenthaplie": 25.0,
"Textrait": "present",
"Thotte": 25.0,
"Trepris": "present",
"Tsoufflage": "present"
}
},
"usage": {
"absent": 0,
"antigel": 1,
"bypass": 10816,
"filtres": 687,
"prechauffe": 0,
"vitesse1": 2570,
"vitesse2": 26458,
"vitesse3": 329
},
"ventilateurs": {
"extraitpourcent": 50,
"extraitrpm": 1616,
"soufflagepourcent": 50,
"soufflagerpm": 1627
}
},
"device": {
"firmware": "3.60",
"name": "WHR 950 "
}
}
closing socket
root@raspberrypi:/home/pi/raspVMC#
root@raspberrypi:/var/www# ls
html jsoneditor json-tree VMC1.html VMC2.html VMC3.html
root@raspberrypi:/var/www#
root@raspberrypi:/var/www# python
Python 2.7.13 (default, Sep 26 2018, 18:42:22)
[GCC 6.3.0 20170516] on linux2
pi@raspberrypi:/usr/lib/cgi-bin $ ls
jsoneditor json-tree meteo.cgi VMCbinjson.cgi VMCresetfilter.cgi VMCsetspeed.cgi VMCsetTConf.cgi
pi@raspberrypi:/usr/lib/cgi-bin $
root@raspberrypi:/home/pi# sudo a2enmod cgi
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Module cgi already enabled
Internal Server Error
je pense que dans la conf d'apache je dois définir un server name. je vais regarder
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.