I do not understand how to use scrape sensors.
I would like to recover the value of a temperature sensor.
If I open the url "http://IP:PORT/json.htm?type=devices&rid=18"in chrome, here is the result:
{
“ActTime”: 1515506873,
“ServerTime”: “2018-01-09 15:07:53”,
“Sunrise”: “08:37”,
“Sunset”: “17:11”,
“result”: [
{
“AddjMulti”: 1.0,
“AddjMulti2”: 1.0,
“AddjValue”: 0.0,
“AddjValue2”: 0.0,
“BatteryLevel”: 78,
“CustomImage”: 0,
“Data”: “18.9 C”,
“Description”: “”,
“Favorite”: 1,
“HardwareID”: 6,
“HardwareName”: “Thermostat”,
“HardwareType”: “Netatmo”,
“HardwareTypeVal”: 54,
“HaveTimeout”: false,
“ID”: “12B4”,
“LastUpdate”: “2018-01-09 15:07:23”,
“Name”: “Salon temperature”,
“Notifications”: “false”,
“PlanID”: “2”,
“PlanIDs”: [2],
“Protected”: false,
“ShowNotifications”: true,
“SignalLevel”: 10,
“SubType”: “LaCrosse TX3”,
“Temp”: 18.899999999999999,
“Timers”: “false”,
“Type”: “Temp”,
“TypeImg”: “temperature”,
“Unit”: 180,
“Used”: 1,
“XOffset”: “341”,
“YOffset”: “341”,
“idx”: “18”
}
]
“status”: “OK”,
“title”: “Devices”
}
I would like to recover the value of “Data” so “18.9 C”
Do you have an article or tutorial that explains how it works?
Thank you.