"MUCH WARMER than today" (etc.) values?

  • 1
  • Question
  • Updated 3 years ago
Hi.  Is this string, usually found on the WU forecast pages, available through the API?  

For example, in the evening it says "Tomorrow is forecast to be XXXXXX than today" and in the morning it says "Today is forecast to be XXXXXX than yesterday".

Do we have to develop our own logic for this string?

Thanks!
Photo of Jorj

Jorj

  • 2 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Eric N Gross

Eric N Gross

  • 1 Post
  • 1 Reply Like
I know that 8 degrees F warmer gets counted as "much warmer".  Other than that....
Photo of Tim Roche

Tim Roche, Official Rep

  • 297 Posts
  • 24 Reply Likes
This is not available through the API, here's the logic

between -2 and 2 degrees difference "Same"
3 to 7 degrees above warmer
more than 7 much warmer

Mirrored on the cooler side
Photo of Jorj

Jorj

  • 2 Posts
  • 0 Reply Likes
Would we read all the "hourly_forecast" hourly temperatures and choose the Max?

For the comparison, would we re-read the history object...hourly or a daily Max?

How about a "tonight" comparison?  Would that be the "minimum"?  The plot thickens because a "night" crosses a midnight boundary...probably some trickiness.

Thanks!
Photo of Tim Roche

Tim Roche, Official Rep

  • 297 Posts
  • 24 Reply Likes
Both cooler and warmer use the high for the day.  This value is in the API response, you don't need to walk the hours.
much cooler means the high tomorrow will be cooler

There is a yesterday feature you can use to get yesterday's info