Re: MyDomoAtHome - ImperiHome
Publié : 02 avr. 2016, 10:45
prévisions météo, donc pas un device habituel, tu as le /json.htm?type=devices&filter=all&used=true&order=Name ?manuloup a écrit : Et sur la page météo de domoticz :
Reprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
prévisions météo, donc pas un device habituel, tu as le /json.htm?type=devices&filter=all&used=true&order=Name ?manuloup a écrit : Et sur la page météo de domoticz :
Code : Tout sélectionner
RAINVAL=$(curl -s -i -H "Accept: application/json" "https://api.forecast.io/forecast/$API/$LAT,$LON?units=ca&exclude=currently,minutely,hourly,alerts,flags" | grep precipIntensity| cut -d, -f14 |cut -d: -f2 | cut -c 1-3)
#
echo "Precipitation : ${RAINVAL}"
curl --silent -s -i -H "Accept: application/json" "http://192.168.1.5:8080/json.htm?type=command¶m=udevice&idx=130&nvalue=0&svalue=0;${RAINVAL}"
Code : Tout sélectionner
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "0;0.3",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 6,
"HardwareName" : "Virtuel switch",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "140D1",
"LastUpdate" : "2016-04-02 14:00:25",
"Name" : "Précipitations sous 24h",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"Rain" : "0.2",
"RainRate" : "0.0",
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "TFA",
"Timers" : "false",
"Type" : "Rain",
"TypeImg" : "rain",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "130"
},done, version 0.1.1, please do apt-get update && apt-get upgrademanuloup a écrit :Sure, let me know when it is done.
Code : Tout sélectionner
W: Failed to fetch http://www.e-nef.com/domoticz/mdah/Release.gpg Could not connect to www.e-nef.com:80 (80.67.160.90), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.