# UDP API reports null for daily rain

**URL:** <https://community.tempest.earth/t/udp-api-reports-null-for-daily-rain/3250>\
**Category:** Developers\
**Created:** [March 4, 2019, 7:05pm UTC](https://community.tempest.earth/t/udp-api-reports-null-for-daily-rain/3250 "2019-03-04T19:05:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@joel](https://community.tempest.earth/u/joel)\
**Post date:** [March 4, 2019, 7:05pm UTC](https://community.tempest.earth/t/udp-api-reports-null-for-daily-rain/3250/1 "2019-03-04T19:05:40Z")

</div>

Hi,

I use the latest UDP API spec, but Local Day Rain Accumulation from the Sky observations is always null, even though it is correctly reported within your app.

/ Joel

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [March 4, 2019, 7:12pm UTC](https://community.tempest.earth/t/udp-api-reports-null-for-daily-rain/3250/2 "2019-03-04T19:12:26Z")

</div>

That is correct. That index is added by the WeatherFlow servers and not by the Hub.

---

<div class="post-metadata">

**Author:** ![joel](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@joel](https://community.tempest.earth/u/joel)\
**Post date:** [March 4, 2019, 8:27pm UTC](https://community.tempest.earth/t/udp-api-reports-null-for-daily-rain/3250/3 "2019-03-04T20:27:52Z")

</div>

But why is it specified as part of the UDP observation message for the Sky device, if always sent as null?

| Index | Field | Units |
| --- | --- | --- |
| 0 | Time Epoch | Seconds |
| 1 | Illuminance | Lux |
| 2 | UV | Index |
| 3 | Rain Accumulated | mm |
| 4 | Wind Lull (minimum 3 second sample) | m/s |
| 5 | Wind Avg (average over report interval) | m/s |
| 6 | Wind Gust (maximum 3 second sample) | m/s |
| 7 | Wind Direction | Degrees |
| 8 | Battery | Volts |
| 9 | Report Interval | Minutes |
| 10 | Solar Radiation | W/m^2 |
| **11** | **Local Day Rain Accumulation** | **mm** |
| 12 | Precipitation Type | 0 = none, 1 = rain, 2 = hail |
| 13 | Wind Sample Interval | seconds |

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [March 4, 2019, 9:06pm UTC](https://community.tempest.earth/t/udp-api-reports-null-for-daily-rain/3250/4 "2019-03-04T21:06:48Z")

</div>

To keep the index fields the same across all methods.

This way the parsing code for REST, websocket and UDP can all use the same code.

In other words, it’s a place holder and will be null in UDP.

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [March 4, 2019, 10:46pm UTC](https://community.tempest.earth/t/udp-api-reports-null-for-daily-rain/3250/5 "2019-03-04T22:46:40Z")

</div>

Here is the original discussion.

> [@UDP Accumulated Rain Field 11 = Null?](https://community.tempest.earth/t/udp-accumulated-rain-field-11-null/342):
>
> I’ve been struggling to get Weather-Display (WD) to reliably capture rain readings from SKY. The hub is reporting directly to Weather Underground in parallel with being accessed via UDP by WD . Wind, Temp, Pressure, all look fine. Only the rain readings appear off and what the hub uploads to WU is different that what is being read over UDP by WD. I’ve been working Brian over at Weather Display and he is throwing his hands up and pointed finger back at the hub. Does anyone know why field…
