Issue with OpenWeather app? It appears to be returning a Null value for Precipitation

I have number variable called g_precipitation_counter. It starts being 0. Every 15 minutes I add the value for Precipitation from the OpenWeather app to it.

However, the value for g_precipitation_counter becomes Null and NaN if I turn it into text.

Is it something I do wrong, or is the Null value an error from the app?

Edit: I since learned that I have to use the double squirly brackets {{}} for calculations. That solved most of the issue.

Is there a way to ensure the Precipitation value has a value, before adding it to the counter?

Thanks

Maybe ask in the Openweather app thread ?
But anyway, for my location, it returns the precipitation values correctly (currently 0 - not null).
Btw, are you on API3 ? I wonder if you are not calling API too often - check out the API limits - Weather API - OpenWeatherMap

Don’t you need the typical {{ … }} around the calculation? Else it could result in a concatenated string and that’s not returnable as float.

3 Likes

It is less than 100 calls per day, so not too many. Thanks for the idea

I’ll try that. Most of the times it already works well though.
Thanks!

Have you done an app restart?

Can you please comment what OWM device you are using?
OneCall Current weather?

Edit: I’m suure OWM app is correct. The rain should have a valid value in every case (at least 0).

And you are not using a standard logic card
grafik

If you have issues using thsi card, please ask the developer of the app providing this card.

It is correct as far as I can see. Very helpful. Thanks