<ESP-host>/json - a great tool. Can we add to it?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

<ESP-host>/json - a great tool. Can we add to it?

#1 Post by JR01 » 17 Apr 2017, 19:00

Hi,

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
QUESTION:
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
The output of /json :

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
}
]}
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

Post Reply

Who is online

Users browsing this forum: No registered users and 94 guests