What timezone do the daily totals reset by?

  • 1
  • Question
  • Updated 4 years ago
I've got an API call to pull daily precipitation totals for given coordinates.

My question is, how might I sync up my API calls when the data resets for the daily precipitation totals.

Right now, I'm just pulling every 6 hours since midnight Central Standard Time.
Photo of Waterfalls.IO

Waterfalls.IO

  • 7 Posts
  • 0 Reply Likes
  • content

Posted 4 years ago

  • 1
Photo of Tim Roche

Tim Roche, Official Rep

  • 328 Posts
  • 35 Reply Likes
I would use the yesterday call for this purpose
Photo of Tim Roche

Tim Roche, Official Rep

  • 328 Posts
  • 35 Reply Likes
Photo of Waterfalls.IO

Waterfalls.IO

  • 7 Posts
  • 0 Reply Likes
While that would work, I already have the data available, so why would I go and pull it all over again?
Photo of Tim Roche

Tim Roche, Official Rep

  • 328 Posts
  • 35 Reply Likes
there's no guarantee you will get the official tally during a day.  Using the yesterday call, you will get official and preliminarily checked values if available.  
Photo of Waterfalls.IO

Waterfalls.IO

  • 7 Posts
  • 0 Reply Likes
I see, but if that's the case, wouldn't that mean that the data Weather Underground has for daily precipitation total for the current forecast be incorrect?

If it's not, what's the harm in pulling it in every 6 hours and just using that data?

I'm not against using the yesterday call, I'm just trying to see the bigger picture here. If I were to use the call, is yesterday precipitation total a guaranteed amount? What about totals that are returned as a T or -9999, what do they mean?

Thanks for the feedback Tim!
Photo of Tim Roche

Tim Roche, Official Rep

  • 328 Posts
  • 35 Reply Likes
Not necessarily:  if the last reported observation of the day was at 11:45 and it rained after that, that would not show up in the daily totals.  This will show up in the yesterday feed after a QC pass happens 
Photo of Waterfalls.IO

Waterfalls.IO

  • 7 Posts
  • 0 Reply Likes
That makes sense.

I'm going to eventually have waterfalls plotted all over the country on a map so I'm trying to minimize the calls I'm making to weather underground for the sake of saving a bit of money. I imagine there could be thousands and if I'm running a call every 6 hours and then another one, that's already 5,000 calls a day, yikes!

I may rethink the way I'm doing the calls so that I can utilize the yesterday totals, because they honestly seem to make a lot more sense.

In any case, what time would I need to run the yesterday API call. Does the data restart at 11:45 Pacific time?

Thanks Tim!

Edit:

Now that I think about it, I can drop the last call at midnight at that point! Duh.
Photo of Waterfalls.IO

Waterfalls.IO

  • 7 Posts
  • 0 Reply Likes
I just realized WU charges a minimum of $300 a month for the yesterday call.

There is no way I'll be using the yesterday call at this time, as I can't guarantee an income of $300 a month with this website. It's honestly not worth it. I can take the hit of the accuracy for now and maybe use yesterday later, that is if my website becomes profitable.

Can you answer the original question? I can use what I have for now and make the upgrade later if things work out.
Photo of Tim Roche

Tim Roche, Official Rep

  • 328 Posts
  • 35 Reply Likes
midnight local time or shortly thereafter