Author Topic: Record/Normal temps from WU  (Read 1105 times)

0 Members and 1 Guest are viewing this topic.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Record/Normal temps from WU
« on: March 15, 2017, 01:25:38 PM »
One of the things I miss from VWS is that it pulled the record and normal high/low temps.  Has anyone considered adding the new WU API calls to the ajaxdashboard or other areas of the Saragota scripts to get that back?

https://www.wunderground.com/weather/api/d/docs?d=data/almanac
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: Record/Normal temps from WU
« Reply #1 on: March 15, 2017, 01:50:43 PM »
Ken wrote me a script for me to do that from the  WU API. My local airport wasn't available with WD
and the closest one was 50 miles away. It's an easy setup and just need an API key from WU.

The normal high/low and records on my site dashboard all come from WU.
Tony




Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Record/Normal temps from WU
« Reply #2 on: March 15, 2017, 02:23:47 PM »
Looks like you're running the alternate dashboard for WD.  I'm running Cumulus.  Plus, I prefer the smaller standard dashboard.  I'd like to hopefully just add that info to the existing dasboard.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: Record/Normal temps from WU
« Reply #3 on: March 15, 2017, 02:33:47 PM »
WD & Cumulus shouldnt matter. You'd just have to insert these tags which are part of the script into your template that the API spits out into a cache file.
These use WU and doesn't pull them from WD

$normalHigh
$recordHigh
$recordHighYear
$normalLow
$recordLow
$recordLowYear
Tony




Offline hymrog

  • Senior Member
  • **
  • Posts: 52
    • Gahanna Weather
Re: Record/Normal temps from WU
« Reply #4 on: March 15, 2017, 09:58:26 PM »
Hi

I added the normal high/low to my Ajax dashboard under the thermometer and records on the side.  Just click on my signature and it will take you to the page.

Greg



« Last Edit: March 16, 2017, 06:09:04 AM by hymrog »

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Record/Normal temps from WU
« Reply #5 on: March 16, 2017, 09:13:07 AM »
What file did you modify?  Mind posting that file or PM'ing me?
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Record/Normal temps from WU
« Reply #6 on: March 18, 2017, 04:35:30 PM »
I've gotten a bit further along.  But not quite there yet. With hymrog's help, I have a wu-almanac.php file with the WU API key.  It is making a file in the cache folder with the correct data.

What I'm missing now is how to incorporate it.  Ideally, I'd like to just slip another PHP file in-between the ajax-dashboard and the forecast.  Not sure exactly how to do that though.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI