getting single json value from device

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
Gravityz
Posts: 652
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Netherlands
Contact:

getting single json value from device

Post by Gravityz »

when i use a single http json command i get the complete json string from a watermeter device
is there a way with one command where i get one value(eg counter)

this is what i have been using but it gives me everything

Code: Select all

http://192.168.1.50:8084/json.htm?type=command&param=getdevices&rid=344
User avatar
jvdz
Posts: 2441
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: getting single json value from device

Post by jvdz »

Gravityz wrote: Wednesday 19 November 2025 13:52 is there a way with one command where i get one value(eg counter)
What type of command are you looking for? In LUA/dzvents or do you mean a URL for a webbrowser?
Gravityz
Posts: 652
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: getting single json value from device

Post by Gravityz »

url from a browser
Gravityz
Posts: 652
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: getting single json value from device

Post by Gravityz »

never mind.
i solved my problem with mqtt

thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest