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

**URL:** <https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988>\
**Category:** Questions & Help\
**Created:** [July 5, 2023, 9:43am UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988 "2023-07-05T09:43:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmeester](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pmeester/32/17275_2.png) [@pmeester](https://community.homey.app/u/pmeester)\
**Post date:** [July 5, 2023, 9:43am UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988/1 "2023-07-05T09:43:55Z")

</div>

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.

 ![flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/c/6c2a6ac1ded0cdb69708efd084456b90dbba2af8.jpeg)

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

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [July 5, 2023, 10:08am UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988/2 "2023-07-05T10:08:01Z")

</div>

> [@pmeester](#):
>
> is the Null value an error from the app?

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](https://openweathermap.org/api)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [July 5, 2023, 10:11am UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988/3 "2023-07-05T10:11:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pmeester](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pmeester/32/17275_2.png) [@pmeester](https://community.homey.app/u/pmeester)\
**Post date:** [July 5, 2023, 1:07pm UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988/4 "2023-07-05T13:07:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pmeester](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pmeester/32/17275_2.png) [@pmeester](https://community.homey.app/u/pmeester)\
**Post date:** [July 5, 2023, 1:08pm UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988/5 "2023-07-05T13:08:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SingKT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/singkt/32/173226_2.png) [@SingKT](https://community.homey.app/u/SingKT)\
**Post date:** [July 5, 2023, 1:14pm UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988/6 "2023-07-05T13:14:41Z")

</div>

Have you done an app restart?

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [July 5, 2023, 1:40pm UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988/7 "2023-07-05T13:40:00Z")

</div>

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](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/8/48e96a9ea2c37a54e3a1e10398b0c752389e6379.png)

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

---

<div class="post-metadata">

**Author:** ![pmeester](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pmeester/32/17275_2.png) [@pmeester](https://community.homey.app/u/pmeester)\
**Post date:** [August 3, 2023, 8:09pm UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988/8 "2023-08-03T20:09:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [November 19, 2024, 10:21am UTC](https://community.homey.app/t/issue-with-openweather-app-it-appears-to-be-returning-a-null-value-for-precipitation/83988/11 "2024-11-19T10:21:53Z")

</div>

Closed in favor of application specific topic

[[App][Pro] OpenWeather](https://community.homey.app/t/61482)
