# Get "is raining" info from API?

**URL:** <https://community.tempest.earth/t/get-is-raining-info-from-api/22855>\
**Category:** Developers\
**Created:** [November 6, 2023, 12:32pm UTC](https://community.tempest.earth/t/get-is-raining-info-from-api/22855 "2023-11-06T12:32:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matias](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/matias/32/16083_2.png) [@matias](https://community.tempest.earth/u/matias)\
**Post date:** [November 6, 2023, 12:32pm UTC](https://community.tempest.earth/t/get-is-raining-info-from-api/22855/1 "2023-11-06T12:32:45Z")

</div>

Is it possible to get the value via the API? I need to trigger some things if its raining or not.

---

<div class="post-metadata">

**Author:** ![mabeatty1978](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/mabeatty1978/32/15139_2.png) [@mabeatty1978](https://community.tempest.earth/u/mabeatty1978)\
**Post date:** [November 6, 2023, 2:50pm UTC](https://community.tempest.earth/t/get-is-raining-info-from-api/22855/2 "2023-11-06T14:50:53Z")

</div>

There is no “is raining” method. However, the UDP messages broadcast from your hub reports “type”:“evt\_precip” which fires when the sensor first detects rain. Once you get one of those, you can look at “type”:“obs\_st” “obs”:[12] to see how much rain has fallen in the past minute. If \> 0, it’s still raining.

The websocket can do the same if you prefer that route.
