Not sure if all knows the great capability of getting a json output of System, and Sensors. See the output below.
Furthermore, one can getto a specific task number's details as follows:
Code: Select all
http://<ESP-host>/json?tasknr=3
Can we add some more details to task in Sensor, like:
- - task number
- Device (as chosen from Device drop-down)
- the Delay
- is the device enabled or not
Code: Select all
{"System":{
"Build": 20000,
"Unit": 62,
"Uptime": 17,
"Free RAM": 22984
},
"Sensors":[
{
"TaskName": "System",
"Uptime": 10.00
},
{
"TaskName": "System",
"Load": 6.00
},
{
"TaskName": "Water",
"Muni": 0.00,
"TTL": 0.00,
"Time": 0.00
},
{
"TaskName": "Switch",
"Relay1": 0.00
},
{
"TaskName": "Switch",
"Relay2": 0.00
},
{
"TaskName": "Switch",
"Relay3": 0.00
},
{
"TaskName": "Switch",
"Relay4": -0.00
},
{
"TaskName": "Switch",
"Relay5": 0.00
},
{
"TaskName": "",
"": 20.80,
"": 66.00
}
]}