converting values

Moderator: leecollings

Post Reply
jorro
Posts: 6
Joined: Sunday 27 March 2022 21:03
Target OS: Linux
Domoticz version:
Contact:

converting values

Post by jorro »

Hello everyone, is it possible to convert values in one GET response, there are 6500, you need 100,
there are 3400, you need 50.
http://192.168.0.110:9090/json.htm?type ... 13&kelvin=?

And yes, is it possible to get the status of only one parameter?
http://192.168.0.110:9090/json.htm?type ... tus={value}
Thanks.
Last edited by jorro on Friday 01 April 2022 16:55, edited 1 time in total.
User avatar
waltervl
Posts: 5907
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: converting values

Post by waltervl »

Can you explain what you trying to achieve?
From what application do you want to set the kelvinlevel of a domoticz device? Because in that application you will do the calculation.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
jorro
Posts: 6
Joined: Sunday 27 March 2022 21:03
Target OS: Linux
Domoticz version:
Contact:

Re: converting values

Post by jorro »

Smart Alice and Domoticz
jorro
Posts: 6
Joined: Sunday 27 March 2022 21:03
Target OS: Linux
Domoticz version:
Contact:

Re: converting values

Post by jorro »

I say, Alice, white light,the value 4500 is passed,And you need from 0-100
http://192.168.0.110:9090/json.htm?type ... elvin=4500
jorro
Posts: 6
Joined: Sunday 27 March 2022 21:03
Target OS: Linux
Domoticz version:
Contact:

Re: converting values

Post by jorro »

Hello again
I'll ask in another way, is it possible to carry out mathematical calculations with {value} ?
For example {value*100},{value/100} ?
User avatar
waltervl
Posts: 5907
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: converting values

Post by waltervl »

You need a programming language. Url is not a programming language. So that Alice will have to do the calculation.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
jorro
Posts: 6
Joined: Sunday 27 March 2022 21:03
Target OS: Linux
Domoticz version:
Contact:

Re: converting values

Post by jorro »

Alice does not know how to calculate, she only gives values and accepts, it's a pity that there is no answer to my question.
But thanks anyway.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest