Page 1 of 1

How to do this?

Posted: Sunday 08 January 2017 10:24
by edwin1234
I can do a call to my hs server like:

http://192.168.1.123/jsonapi.asp?action ... ice&id=$31
Then i get:
{"id": "$31", "name": "CV-ketel", "room": "Zolder", "floor": "", "dimmable": onwaar, "status": 2, "value": 68, "since": "8-1-2017 10:20:40", "type": "Plugwise: CV-ketel", "status_support": onwaar, "misc": "65536"}

How do i get for example the "value" 68 (wich is watt)
In domoticz?
Thanks

Re: How to do this?

Posted: Sunday 08 January 2017 12:35
by Egregius
Shell script executed by cron and jq to parse the json?

Re: How to do this?

Posted: Sunday 08 January 2017 13:06
by G3rard
You can use the HTTP/HTTPS Poller in the Domoticz hardware section. See the following url.
http://www.domoticz.com/forum/viewtopic ... 6&p=112529

There are some example LUA files which you can use in the scripts/lua_parsers directory.
In your case you can use the example_json.lua.

It's a great function and you can all control it from Domoticz, also the interval.
Recently some extra features have been added.
http://www.domoticz.com/forum/viewtopic ... 2&p=112629

Re: How to do this?

Posted: Sunday 08 January 2017 13:46
by edwin1234
Thanks for your answers.
Is it also possible with node red?
And if so can you give an example of a node red flow?

Thanks