Forecast Block - WU Forecast currently not available.

Post Reply
Kristi
Observer
Observer
Posts: 15
Joined: Sun Oct 01, 2017 4:41 pm
Location: Gent,Belgium
Station model: Davis Vantage Pro 2
Software: WU
Contact:

Forecast Block - WU Forecast currently not available.

Post by Kristi » Thu Nov 09, 2017 12:49 pm

Hi guys,

I've been trying to install the forecast block on my website with the Weather Underground forecast.

As requested in the configuration settings I subscribed for my API on the WU website, not once but three times, trying all the different free plans that they offer. After doing that I also configured the city to Tirana.

All I get to see is this:

Image

I tried only leaving Weather Underground as an option and everything I can think of. Only once did I manage, by installing and re-installing the block, to get a broken forecast block. By broken I mean that the forecast icons weren't showing up, and the forecast instead of Tirana,Albania was showing the temperatures for the upcoming day for Tirane,Lebanon. Here I thought that maybe the name similarity is creating the problem, but I was wrong. I tried all cities I could think of, and never got a forecast to show up again.

The API keys I've used are the following:

-fe2b345ba12362c9
-f09043a0ac0fcb3e
-a3cd572b7a6643a8

Anyone else had a similar problem?

Kristi
Observer
Observer
Posts: 15
Joined: Sun Oct 01, 2017 4:41 pm
Location: Gent,Belgium
Station model: Davis Vantage Pro 2
Software: WU
Contact:

Re: Forecast Block - WU Forecast currently not available.

Post by Kristi » Thu Nov 09, 2017 1:06 pm

So, I was experimenting a little bit more with the API key and after checking the documentation on the WU site I saw that the request http://api.wunderground.com/api/f09043a ... irana.json was delievering this result:
{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"conditions": 1
}
, "results": [
{
"name": "Tirana",
"city": "Tirana",
"state": "11",
"country": "AB",
"country_iso3166":"AL",
"country_name":"Albania",
"zmw": "00000.1.13601",
"l": "/q/zmw:00000.1.13601"
}
,
{
"name": "Tirana",
"city": "Tirana",
"state": "NW",
"country": "PK",
"country_iso3166":"PK",
"country_name":"Pakistan",
"zmw": "00000.888.41535",
"l": "/q/zmw:00000.888.41535"
}
]
}
}
So it had to be a name problem after all. I tried changing the "Tirana" name to the more specific "Tiranë" and I got this response (weird since I had tried other cities as well) :
{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"conditions": 1
}
}
, "current_observation": {
"image": {
"url":"http://icons.wxug.com/graphics/wu2/logo_130x80.png",
"title":"Weather Underground",
"link":"http://www.wunderground.com"
},
"display_location": {
"full":"Tiranë, Albania",
"city":"Tiranë",
"state":"11",
"state_name":"Albania",
"country":"AB",
"country_iso3166":"AL",
"zip":"00000",
"magic":"1",
"wmo":"13615",
"latitude":"41.38000107",
"longitude":"19.76000023",
"elevation":"53.9"
},
"observation_location": {
"full":"Tiranë - Tirana e Re, Tirana, ",
"city":"Tiranë - Tirana e Re, Tirana",
"state":"",
"country":"AB",
"country_iso3166":"AL",
"latitude":"41.315819",
"longitude":"19.815325",
"elevation":"0 ft"
},
"estimated": {
},
"station_id":"ITIRANA5",
"observation_time":"Last Updated on November 9, 1:31 PM CET",
"observation_time_rfc822":"Thu, 09 Nov 2017 13:31:31 +0100",
"observation_epoch":"1510230691",
"local_time_rfc822":"Thu, 09 Nov 2017 14:01:53 +0100",
"local_epoch":"1510232513",
"local_tz_short":"CET",
"local_tz_long":"Europe/Tirane",
"local_tz_offset":"+0100",
"weather":"Clear",
"temperature_string":"62.1 F (16.7 C)",
"temp_f":62.1,
"temp_c":16.7,
"relative_humidity":"69%",
"wind_string":"Calm",
"wind_dir":"North",
"wind_degrees":-9999,
"wind_mph":0.0,
"wind_gust_mph":"4.0",
"wind_kph":0,
"wind_gust_kph":"6.4",
"pressure_mb":"1021",
"pressure_in":"30.15",
"pressure_trend":"0",
"dewpoint_string":"52 F (11 C)",
"dewpoint_f":52,
"dewpoint_c":11,
"heat_index_string":"NA",
"heat_index_f":"NA",
"heat_index_c":"NA",
"windchill_string":"NA",
"windchill_f":"NA",
"windchill_c":"NA",
"feelslike_string":"62.1 F (16.7 C)",
"feelslike_f":"62.1",
"feelslike_c":"16.7",
"visibility_mi":"6.2",
"visibility_km":"10.0",
"solarradiation":"--",
"UV":"2","precip_1hr_string":"-999.00 in ( 0 mm)",
"precip_1hr_in":"-999.00",
"precip_1hr_metric":" 0",
"precip_today_string":"0.37 in (9 mm)",
"precip_today_in":"0.37",
"precip_today_metric":"9",
"icon":"clear",
"icon_url":"http://icons.wxug.com/i/c/k/clear.gif",
"forecast_url":"http://www.wunderground.com/global/stations/13615.html",
"history_url":"http://www.wunderground.com/weatherstat ... D=ITIRANA5",
"ob_url":"http://www.wunderground.com/cgi-bin/fin ... ,19.815325",
"nowcast":""
}
}
However the block is still not displaying the forecast icons.

Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Forecast Block - WU Forecast currently not available.

Post by Jachym » Thu Nov 09, 2017 2:11 pm

Most likely because the original data is still cached, you need to delete cache folder

Kristi
Observer
Observer
Posts: 15
Joined: Sun Oct 01, 2017 4:41 pm
Location: Gent,Belgium
Station model: Davis Vantage Pro 2
Software: WU
Contact:

Re: Forecast Block - WU Forecast currently not available.

Post by Kristi » Thu Nov 09, 2017 2:31 pm

After deleting the cache folder I first got this:

Image

and afterwards this again:

Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Forecast Block - WU Forecast currently not available.

Post by Jachym » Thu Nov 09, 2017 2:39 pm

Make sure the icons directory is there and has all the images, in case you performed auto install and did not apply the bug fix package it would not work correctly.

Kristi
Observer
Observer
Posts: 15
Joined: Sun Oct 01, 2017 4:41 pm
Location: Gent,Belgium
Station model: Davis Vantage Pro 2
Software: WU
Contact:

Re: Forecast Block - WU Forecast currently not available.

Post by Kristi » Thu Nov 09, 2017 2:57 pm

I had downloaded the block from the control panel earlier, and apparently the only folder that was showing up in the forecast directory was iconsWxSim.

I downloaded the block manually and added the two missing folders to my website and the problem is fixed! Thank you Jachym :D

Image

Post Reply