Page 1 of 1

converting values

Posted: Friday 01 April 2022 16:38
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.

Re: converting values

Posted: Friday 01 April 2022 16:53
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.

Re: converting values

Posted: Friday 01 April 2022 16:57
by jorro
Smart Alice and Domoticz

Re: converting values

Posted: Friday 01 April 2022 17:03
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

Re: converting values

Posted: Sunday 03 April 2022 15:39
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} ?

Re: converting values

Posted: Sunday 03 April 2022 18:27
by waltervl
You need a programming language. Url is not a programming language. So that Alice will have to do the calculation.

Re: converting values

Posted: Sunday 03 April 2022 19:05
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.