increment counter using JSON

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
franzelare
Posts: 141
Joined: Thursday 19 February 2015 21:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

increment counter using JSON

Post by franzelare »

I want to update a customer counter through JSON without first requesting the current value, just send a +1 to the counter

I know how to do this with LUA to read the value and add 1 than send the counter back, but want to simplify this for some slow IOT sensors

anyone knows if this can be done through JSON?
SweetPants

Re: increment counter using JSON

Post by SweetPants »

This increments a generic counter with 1

http://localhost:8080/json.htm?type=com ... 0&svalue=1
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest