Re: custom page
Publié : 22 août 2015, 10:58
Si je saisi cela dans un navigateur, je tombe sur une popup qui me demande mon mdp.
Reprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
si je souhaite afficher 43.00% dans frontpage, je regarde quelle value contient cette info, en l’occurrence c'est 'Data' (comme souvent){
"ActTime" : 1440485907,
"ServerTime" : "Aug 25 2015 08:58:27",
"Sunrise" : "07:16",
"Sunset" : "21:01",
"result" : [
{
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "43.00%",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 8,
"HardwareName" : "virtuel",
"HaveTimeout" : false,
"ID" : "00082257",
"Image" : "Computer",
"LastUpdate" : "2015-08-25 08:58:15",
"Name" : "Unknown",
"Notifications" : "false",
"PlanID" : "0",
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 12,
"SubType" : "Percentage",
"Timers" : "false",
"Type" : "General",
"TypeImg" : "hardware",
"Unit" : 1,
"Used" : 0,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "258"
}
],
"status" : "OK",
"title" : "Devices"
}
Code : Tout sélectionner
['258','Data','cell12','air quality'], {
"ActTime" : 1440486651,
"ServerTime" : "Aug 25 2015 09:10:51",
"Sunrise" : "07:16",
"Sunset" : "21:01",
"result" : [
{
"BatteryLevel" : 255,
"Counter" : "27403.598",
"CounterDeliv" : "0.000",
"CounterDelivToday" : "0.000 kWh",
"CounterToday" : "4.528 kWh",
"CustomImage" : 0,
"Data" : "17554334;9849264;0;0;617;0",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 20,
"HardwareName" : "teleinfo",
"HaveTimeout" : false,
"ID" : "1",
"LastUpdate" : "2015-08-25 09:10:49",
"Name" : "conso totale",
"Notifications" : "false",
"PlanID" : "0",
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 12,
"SubType" : "Energy",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "P1 Smart Meter",
"TypeImg" : "counter",
"Unit" : 1,
"Usage" : "617 Watt",
"UsageDeliv" : "0 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "112"
}
],
"status" : "OK",
"title" : "Devices"
}
Code : Tout sélectionner
['112','Usage','cell2_15','EDF instant'], // consommation instantanée (affiche 617 watt)
['112','Counter','cell2_20','EDF total'], // consommation totale (affiche 27403.598)
['112','CounterToday','cell2_10','EDF today'], // consommation du jour (affiche 4.528 kWh)
Code : Tout sélectionner
"HumidityStatus" : "Comfortable",Code : Tout sélectionner
"Temp"Code : Tout sélectionner
http://ip:port/cgi-bin/CGIProxy.fcgi?cmd=setSubStreamFormat&format=1&usr=admin&pwd= Code : Tout sélectionner
<CGI_Result>
<result>0</result>
</CGI_Result>Code : Tout sélectionner
http://ip:port/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin&pwd=xxx