arithmetic operatins with json.

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Pchatill
Posts: 17
Joined: Wednesday 16 September 2015 5:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3774
Contact:

arithmetic operatins with json.

Post by Pchatill »

Hi.
Is that possible to multiply by 2 (for example) the value that I want to send with json?
For example, something like that:
/json.htm?type=command&param=udevice&idx=IDX&nvalue=0&svalue=TEMP*2
I tried differents syntaxes but no succes.
Any idea?
Thanks
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: arithmetic operatins with json.

Post by jvdz »

No, you need to do that in the script that sends the JSON api call.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest