Re: Weather Underground STOPS API keys
Posted: Sat Apr 06, 2019 9:28 pm
by KevinMCWX
The new WU API forecast will produce forecast data using the new WU API Key....it just won't work with the Meteo Forecast8 block script. So don't waste your time trying the new API key in the Forecast8 block script. For one thing, the new WU forecast API uses a new URL: h ttps://api.weather.com/v3/wx/forecast/daily/5day?format=json&units=%s&language=%s&apiKey=%s&geocode=%s Note that the new URL uses a GeoCode (Lat & Long) instead of city name?
Here's an example of the new WU API Forecast data output for my units (m), language (en), API key, and Geo Code (lat,long).....
{"dayOfWeek":["Saturday","Sunday","Monday","Tuesday","Wednesday","Thursday"],"expirationTimeUtc":[1554586467,1554586467,1554586467,1554586467,1554586467,1554586467],"moonPhase":["Waxing Crescent","Waxing Crescent","Waxing Crescent","Waxing Crescent","Waxing Crescent","Waxing Crescent"],"moonPhaseCode":["WXC","WXC","WXC","WXC","WXC","WXC"],"moonPhaseDay":[1,2,3,4,5,6],"moonriseTimeLocal":["2019-04-06T07:39:19-0700","2019-04-07T08:06:02-0700","2019-04-08T08:36:14-0700","2019-04-09T09:11:05-0700","2019-04-10T09:53:27-0700","2019-04-11T10:44:28-0700"],"moonriseTimeUtc":[1554561559,1554649562,1554737774,1554826265,1554915207,1555004668],"moonsetTimeLocal":["2019-04-06T21:11:36-0700","2019-04-07T22:18:15-0700","2019-04-08T23:24:53-0700","","2019-04-10T00:31:45-0700","2019-04-11T01:34:51-0700"],"moonsetTimeUtc":[1554610296,1554700695,1554791093,null,1554881505,1554971691],"narrative":["Showers possible. Highs 13 to 15C and lows 6 to 8C.","Mainly cloudy and rainy. Highs 13 to 15C and lows 7 to 9C.","Showers possible. Highs 14 to 16C and lows 6 to 8C.","Clouds giving way to sun . Highs 14 to 16C and lows 6 to 8C.","Partly cloudy. Highs 13 to 15C and lows 5 to 7C.","Times of sun and clouds. Highs 14 to 16C and lows 3 to 5C."],"qpf":[12.72,19.4,2.7,0.0,0.4,0.0],"qpfSnow":[0.0,0.0,0.0,0.0,0.0,0.0],"sunriseTimeLocal":["2019-04-06T06:36:03-0700","2019-04-07T06:34:11-0700","2019-04-08T06:32:20-0700","2019-04-09T06:30:29-0700","2019-04-10T06:28:39-0700","2019-04-11T06:26:49-0700"],"sunriseTimeUtc":[1554557763,1554644051,1554730340,1554816629,1554902919,1554989209],"sunsetTimeLocal":["2019-04-06T19:39:13-0700","2019-04-07T19:40:32-0700","2019-04-08T19:41:50-0700","2019-04-09T19:43:09-0700","2019-04-10T19:44:28-0700","2019-04-11T19:45:46-0700"],"sunsetTimeUtc":[1554604753,1554691232,1554777710,1554864189,1554950668,1555037146],"temperatureMax":[14,14,15,15,14,15],"temperatureMin":[7,8,7,7,6,4],"validTimeLocal":["2019-04-06T07:00:00-0700","2019-04-07T07:00:00-0700","2019-04-08T07:00:00-0700","2019-04-09T07:00:00-0700","2019-04-10T07:00:00-0700","2019-04-11T07:00:00-0700"],"validTimeUtc":[1554559200,1554645600,1554732000,1554818400,1554904800,1554991200],"daypart":[{"cloudCover":[68,99,98,98,94,84,71,44,60,52,44,19],"dayOrNight":["D","N","D","N","D","N","D","N","D","N","D","N"],"daypartName":["Today","Tonight","Tomorrow","Tomorrow night","Monday","Monday night","Tuesday","Tuesday night","Wednesday","Wednesday night","Thursday","Thursday night"],"iconCode":[11,12,12,12,11,11,30,29,30,45,30,29],"iconCodeExtend":[1100,1200,1200,1200,1100,1100,9003,2900,3000,7100,3000,2900],"narrative":["Cloudy with occasional rain showers. High 14C. Winds WNW at 15 to 25 km/h. Chance of rain 50%.","Rain. Low 7C. Winds NNE at 10 to 15 km/h. Chance of rain 100%. Rainfall around 12mm.","Rain showers in the morning will evolve into a more steady rain in the afternoon. High 14C. Winds NW at 10 to 15 km/h. Chance of rain 90%. Rainfall near 6mm.","Periods of rain. Low 8C. Winds light and variable. Chance of rain 90%. Rainfall around 12mm.","Cloudy with occasional rain showers. High near 15C. Winds NNW at 10 to 15 km/h. Chance of rain 40%.","Cloudy with showers. Low 7C. Winds WNW at 10 to 15 km/h. Chance of rain 50%.","Cloudy skies early, then partly cloudy in the afternoon. High near 15C. Winds WNW at 25 to 40 km/h. Higher wind gusts possible.","Mostly clear during the evening followed by mostly cloudy skies overnight. Low 7C. Winds WNW at 15 to 30 km/h.","Considerable clouds early. Some decrease in clouds later in the day. High 14C. Winds WNW at 25 to 40 km/h.","Partly cloudy during the evening. A few showers developing later during the night. Low 6C. Winds W at 15 to 25 km/h. Chance of rain 30%.","Partly cloudy skies. High near 15C. Winds NW at 10 to 15 km/h.","Partly cloudy skies. Low 4C. Winds WNW at 10 to 15 km/h."],"precipChance":[50,100,90,90,40,50,20,10,10,30,20,10],"precipType":["rain","rain","rain","rain","rain","rain","rain","rain","rain","rain","rain","precip"],"qpf":[0.72,12.18,7.7,11.7,1.4,1.3,0.0,0.0,0.0,0.4,0.0,0.0],"qpfSnow":[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],"qualifierCode":[null,null,null,null,null,null,"Q1016",null,null,null,null,null],"qualifierPhrase":[null,null,null,null,null,null,"Higher wind gusts possible.",null,null,null,null,null],"relativeHumidity":[57,79,79,86,74,78,63,65,59,72,59,71],"snowRange":["","","","","","","","","","","",""],"temperature":[14,7,14,8,15,7,15,7,14,6,15,4],"temperatureHeatIndex":[14,12,13,12,15,14,14,13,13,12,14,12],"temperatureWindChill":[11,7,8,9,9,6,6,5,5,4,5,3],"thunderCategory":["No thunder","No thunder","No thunder","No thunder","No thunder","No thunder","No thunder","No thunder","No thunder","No thunder","No thunder","No thunder"],"thunderIndex":[0,0,0,0,0,0,0,0,0,0,0,0],"uvDescription":["Moderate","Low","Low","Low","Low","Low","Moderate","Low","Moderate","Low","Moderate","Low"],"uvIndex":[4,0,2,0,2,0,4,0,5,0,5,0],"windDirection":[296,20,326,1,329,287,290,283,290,280,312,302],"windDirectionCardinal":["WNW","NNE","NW","N","NNW","WNW","WNW","WNW","WNW","W","NW","WNW"],"windPhrase":["Winds WNW at 15 to 25 km/h.","Winds NNE at 10 to 15 km/h.","Winds NW at 10 to 15 km/h.","Winds light and variable.","Winds NNW at 10 to 15 km/h.","Winds WNW at 10 to 15 km/h.","Winds WNW at 25 to 40 km/h.","Winds WNW at 15 to 30 km/h.","Winds WNW at 25 to 40 km/h.","Winds W at 15 to 25 km/h.","Winds NW at 10 to 15 km/h.","Winds WNW at 10 to 15 km/h."],"windSpeed":[19,14,12,8,12,12,31,25,28,19,16,12],"wxPhraseLong":["Showers","Rain","Rain","Rain","Showers","Showers","AM Clouds/PM Sun","Partly Cloudy","Partly Cloudy","Showers Late","Partly Cloudy","Partly Cloudy"],"wxPhraseShort":["Showers","Rain","Rain","Rain","Showers","Showers","AM Clouds","P Cloudy","P Cloudy","Shwrs Late","P Cloudy","P Cloudy"]}]}