API with avg/record high & low for today at my location?

weather
temperature

#1

I have a really cool idea in my head, but I first need access to four dataPoints:

  • the average high & low for today’s date
  • the historical (record) high & low, for today’s date

Does anyone know a free/public API that has this data available for my (US) location?


In the past, I might have used:

  • $weather.almanac.almanac.temp_high.normal.F
  • $weather.almanac.almanac.temp_high.record.F
  • $weather.almanac.almanac.temp_low.normal.F
  • $weather.almanac.almanac.temp_low.record.F

but WUnderground pulled the plug on us…


#2

ask:)))) :joy::joy::joy::rofl::rofl::joy::joy::joy:


#3

*shakes the ball again*

How about now? LOL


#4

Anyone…??


#5

The best I could find is the NWS report:
https://w2.weather.gov/climate/index.php?wfo=rah

Daily climate report looks like this:

...THE RALEIGH-DURHAM INTL AIRPORT NC CLIMATE SUMMARY FOR DECEMBER 15 2019...

CLIMATE NORMAL PERIOD 1981 TO 2010
CLIMATE RECORD PERIOD 1887 TO 2019


WEATHER ITEM   OBSERVED TIME   RECORD YEAR NORMAL DEPARTURE LAST
                VALUE   (LST)  VALUE       VALUE  FROM      YEAR
                                                  NORMAL
..................................................................
TEMPERATURE (F)
 YESTERDAY
  MAXIMUM         61    302 PM  75    1971  53      8       49
  MINIMUM         35    735 AM   8    1958  33      2       42
  AVERAGE         48                        43      5       46

PRECIPITATION (IN)
  YESTERDAY        0.00          1.75 1901   0.10  -0.10     0.23
  MONTH TO DATE    2.53                      1.49   1.04     3.73
  SINCE DEC 1      2.53                      1.49   1.04     3.73
  SINCE JAN 1     42.18                     41.76   0.42    57.79

Now that you know the name of the NWS product, it’s easily to Google. Discussion here:

Ontology to get the links for your location of interest, such as HRAH for Raleigh-Durham:
https://api.weather.gov/products/types/cli

And the output from the API for Raleigh-Durham:
https://api.weather.gov/products/52c24568-50e2-4602-b6fb-bc5062cd29b5

That ain’t very pretty JSON, though. Downright nasty to parse it, but I think it’s at least fixed width. Good luck!


#6

Thanks @milhouse for the information… That data would work perfectly… but unfortunately, the nearest NWS station to me is 55 miles away, with very different weather patterns…


#7

Well, I’d suggest you pick up and move 55 miles, but that’s probably unlikely. :smiley:


#8

Man, this stinks… I have such an awesome idea in the works, but my creative juices are in limbo until I can find access to free historical weather data…