# Quick REST API Question - precip\_accum\_last\_24hr

**URL:** <https://community.tempest.earth/t/quick-rest-api-question-precip-accum-last-24hr/3419>\
**Category:** Developers\
**Created:** [April 22, 2019, 6:41pm UTC](https://community.tempest.earth/t/quick-rest-api-question-precip-accum-last-24hr/3419 "2019-04-22T18:41:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay.m.basen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jay.m.basen](https://community.tempest.earth/u/jay.m.basen)\
**Post date:** [April 22, 2019, 6:41pm UTC](https://community.tempest.earth/t/quick-rest-api-question-precip-accum-last-24hr/3419/1 "2019-04-22T18:41:43Z")

</div>

Quick question about the REST API field - precip\_accum\_last\_24hr. Is the rain value in this field a rolling value that shows the precipitation for the last 24 hours from the time that the field is read or is does it contain the rain accumulated during the previous calendar day.

Thanks in advance for the help

---

<div class="post-metadata">

**Author:** ![sunny](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/sunny/32/16368_2.png) [@sunny](https://community.tempest.earth/u/sunny)\
**Post date:** [April 22, 2019, 8:13pm UTC](https://community.tempest.earth/t/quick-rest-api-question-precip-accum-last-24hr/3419/2 "2019-04-22T20:13:57Z")

</div>

> [@jay.m.basen](#):
>
> precip\_accum\_last\_24hr

there is  
“precip\_accum\_last\_1hr”: 0.0,  
“precip\_accum\_last\_24hr”: 0.0,  
“precip\_accum\_local\_day”: 0.0,  
“precip\_accum\_local\_yesterday”: 0.0,

so the last two are related to the calender day. It wouldn’t make a lot of sense if last\_24 hour would return the same value, so it is save to assume it returns what the name implies… rain during the last 24 hours. You could easily find out by requesting the value immediately before and after midnight.

---

<div class="post-metadata">

**Author:** ![jay.m.basen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jay.m.basen](https://community.tempest.earth/u/jay.m.basen)\
**Post date:** [April 22, 2019, 8:49pm UTC](https://community.tempest.earth/t/quick-rest-api-question-precip-accum-last-24hr/3419/3 "2019-04-22T20:49:15Z")

</div>

Thanks. When I looked at the REST API I didn’t see  
precip\_accum\_local\_day”: 0.0,  
“precip\_accum\_local\_yesterday”: 0.0

I only saw the 1hr and 24hr values. I agree it makes sense that the 2 return different values.

Thanks for pointing this out.

---

<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:** [April 22, 2019, 10:31pm UTC](https://community.tempest.earth/t/quick-rest-api-question-precip-accum-last-24hr/3419/4 "2019-04-22T22:31:50Z")

</div>

Post the exact REST call to the API. There is more than one and we need to see what you are requesting.

---

<div class="post-metadata">

**Author:** ![jay.m.basen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jay.m.basen](https://community.tempest.earth/u/jay.m.basen)\
**Post date:** [April 23, 2019, 1:03am UTC](https://community.tempest.earth/t/quick-rest-api-question-precip-accum-last-24hr/3419/5 "2019-04-23T01:03:41Z")

</div>

Thanks @GaryFunk. However, I now have this covered. No more effort is required. I do appreciate your following up to make sure.
