cloudy cloudy

Author Topic: WU-History now works with WU/TMC API...  (Read 149 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Global Moderator
  • Posts: 5,918
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
    • Saratoga Weather
WU-History now works with WU/TMC API...
« on: May 23, 2019, 10:09:18 PM »
Whew.. I've written a shim script to replace the now-missing WXDailyHistory.asp page on the WU website with a WXDailyHistory.php script on your website that returns the same formatted CSV file for use with Jim McMurry's (jcweather.us) script set.  Only two files change if you have a working installation:

WU-History-inc.php  - V3.4d - 23-May-2019 and
WXDailyHistory.php  -  V1.00 - 23-May-2019  (added file .. initial release).

The WXDailyHistory.php file uses the WU/TWC API to api.weather.com to retrieve (and cache monthly data), then format to the CSV file expected by WU-History-inc.php.

Released on GitHub at https://github.com/ktrue/WU-History distribution .. please read the README.md for more info.

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline mldenison

  • Posts: 292
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 74.0.3729.169
    • York, Pennsylvania USA Weather
Re: WU-History now works with WU/TMC API...
« Reply #1 on: May 23, 2019, 11:09:27 PM »
Great job, Ken!  It works perfect right out of the gate.

 

cumulus