cloudy cloudy

Author Topic: Replace WU API with ???  (Read 700 times)

0 Members and 1 Guest are viewing this topic.

Offline Weather Display

  • Posts: 87,434
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Replace WU API with ???
« on: January 05, 2019, 07:53:05 PM »
I am going to have to change WD too, to move away from using the WU API
for weather data and a 5 day forecast from a station you select
and for the alamanc too (not sure if there is a replacement for that?)

all via the view panel

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Saratoga Weather
Re: Replace WU API with ???
« Reply #1 on: January 05, 2019, 09:39:25 PM »
DarkSky does have an API for 'time machine'.. returns data from a previous time (one day in the past at a time).  Don't know if that's helpful.
Their Daily forecast has only by 'Day'-- no night periods, but does have the expected high/low for the day.  Forecast returned is for 8 days including the current day.  More info at https://darksky.net/dev
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Weather Display

  • Posts: 87,434
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: Replace WU API with ???
« Reply #2 on: January 05, 2019, 09:51:50 PM »
is there any way to replace the WU almanac api data?
(i.e does Dark Sky have that?)

Offline Svenni

  • Posts: 38
  • Moss in Norway
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Refsnesbakken Borettslag
Re: Replace WU API with ???
« Reply #3 on: January 05, 2019, 09:59:07 PM »
Ahh i understand Ken, thx for fast feedback
Svenni


Offline Weather Display

  • Posts: 87,434
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: Replace WU API with ???
« Reply #4 on: January 05, 2019, 10:16:51 PM »
I signed up for Dark Sky, got an api key, and got a forecast api data downloaded OK as a test :)

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Saratoga Weather
Re: Replace WU API with ???
« Reply #5 on: January 05, 2019, 10:25:17 PM »
is there any way to replace the WU almanac api data?
(i.e does Dark Sky have that?)

AFAIK, there's no equivalent to the WU almanac which returned
Quote
Response Fields

airport_code
    Observed location
temp_high.normal.F
    Average high temperature in fahrenheit
temp_high.normal.C
    Average high temperature in celsius
temp_high.record.F
    The highest temperature in fahrenheit measured on this date
temp_high.record.C
    The highest temperature in celsius measured on this date
temp_high.recordyear
    The year the highest temperature was measured on this date
temp_low.normal.F
    Average low temperature in fahrenheit
temp_low.normal.C
    Average low temperature in celsius
temp_low.record.F
    The lowest temperature in fahrenheit measured on this date
temp_low.record.C
    The lowest temperature in celsius measured on this date
temp_low.recordyear
    The year the lowest temperature was measured on this date
for a given query.  DarkSky 'time machine' just returns the actuals on that given date.

I did find a 'Normals' query at aerisweather.com ($$) for the continental US, Alaska and Hawaii only ( https://www.aerisweather.com/support/docs/api/reference/endpoints/normals/ ) but nothing like that with DarkSky.

Ahh i understand Ken, thx for fast feedback
You're welcome!
« Last Edit: January 05, 2019, 10:34:14 PM by saratogaWX »
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Saratoga Weather
Re: Replace WU API with ???
« Reply #6 on: January 05, 2019, 10:40:25 PM »
The "Replacement API for WU Contributors" ( https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit# ) does not have an Almanac query :(
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Weather Display

  • Posts: 87,434
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: Replace WU API with ???
« Reply #7 on: January 05, 2019, 11:26:12 PM »
yeah, I noticed that

I don't think people realize that the WU Almanac data is going to be stopping

Offline Weather Display

  • Posts: 87,434
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: Replace WU API with ???
« Reply #8 on: January 05, 2019, 11:34:55 PM »
getting weather data from the weather company
i.e
https://docs.google.com/document/d/1KGb8bTVYRsNgljnNH67AMhckY8AQT2FVwZ9urj8SWBs/edit
is similar to how it works now for the WU API

problem is, you cant test yet because you cant apply to get an apikey?
(and your existing key does not work)

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Saratoga Weather
Re: Replace WU API with ???
« Reply #9 on: January 06, 2019, 12:00:56 AM »
Correct, they've not issued any keys for the new API yet.  The Almanac data isn't present in any API calls that will be made available to PWS data submitters (according to their absence in the published docs).
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates