Can I ask you a question about rules, data from HTTP and calculations?
In
openremote I have some rules with using data and making calculations. Als some rules about retreiving data via an HTTP API request and putting
it in a log. The rules with calculations are working with data from my Velbus system. Now I want to make a new other rule to use data from an API request. But there is a problem
I have trouble with the rule below. Everything works, except for the last two rules.
With this request command :
$.daily.data[0].precipIntensity
I get 0.0686 from this api file:
---- section from JSON api request—
daily
summary
“De hele week lichte regen met temperaturen stijgend tot 11°C op zaterdag.”
icon
“rain”
data
0
time
1549234800
summary
“Zwaar bewolkt gedurende de dag.”
icon
“cloudy”
sunriseTime
1549264639
sunsetTime
1549298135
moonPhase
0.99
precipIntensity
0.0686
You are printing floats using string format. Strange that it even works with tKB* sensors. Anyway, try to use the float format, %f instead of %s and tell how it goes.