WXforum.net

Web Weather => Weather Web Site Help => Topic started by: jachen on June 16, 2018, 03:09:53 PM

Title: wu-forecast renders error messages on homescreen
Post by: jachen on June 16, 2018, 03:09:53 PM
Hi
How can I get rid of the problem to be forced to manually go to wu-forecast and click force updates?

Cheers
jachen

 [ You are not allowed to view attachments ]
 
Title: Re: wu-forecast renders error messages on homescreen
Post by: chief-david on June 16, 2018, 03:33:21 PM
It' not you, it's WU.

The radar has been showing up - down for maintenance again this weekend.

must be playing around again.
Title: Re: wu-forecast renders error messages on homescreen
Post by: jachen on June 16, 2018, 04:08:13 PM
Thank you very much for taking care.

But this situation now lasts for weeks already. I am thinking of hiding the function link occasonally if this behaviour continues.

Bye
Title: Re: wu-forecast renders error messages on homescreen
Post by: saratogaWX on June 16, 2018, 06:27:54 PM
Try the latest update to WU-forecast.php -- it addresses the problem of cache files with no forecast info in them.
Title: Re: wu-forecast renders error messages on homescreen
Post by: jachen on June 18, 2018, 05:19:50 PM
Thanks Ken

Quiet since 36 hours after invoking the update. I wonder which lines in the code cured that.

cheers
jachen
Title: Re: wu-forecast renders error messages on homescreen
Post by: jachen on June 18, 2018, 05:33:53 PM
Hi

Just after last comment I see such a message on homepage top (see image) [ You are not allowed to view attachments ]  [ You are not allowed to view attachments ]
Title: Re: wu-forecast renders error messages on homescreen
Post by: saratogaWX on June 18, 2018, 09:20:17 PM
Jachen, pictures do provide documentation of what you are seeing.  To diagnose further requires an URL to the site having the problem.  Your profile site link comes up with a mostly blank page.
Title: Re: wu-forecast renders error messages on homescreen
Post by: jachen on June 19, 2018, 01:45:45 AM
Sorry Ken

Profile should be OK now.

http:// or https://meteo.widen-online.ch (ssl:still some mixed contents on the website).
Title: Re: wu-forecast renders error messages on homescreen
Post by: saratogaWX on June 19, 2018, 10:32:24 AM
Ok, this is a strange one.  For the German forecast (lang=de) the WU API is returning incomplete values in the JSON
Code: [Select]
"forecast":{
"txt_forecast": {
"date":"",
"forecastday": [
{
"period":0,
"icon":"rain",
"icon_url":"http://icons.wxug.com/i/c/k/rain.gif",
"title":"",
"fcttext":"",
"fcttext_metric":"",
"pop":"90"
}
,
{
"period":1,
"icon":"nt_",
"icon_url":"http://icons.wxug.com/i/c/k/nt_.gif",
"title":"",
"fcttext":"",
"fcttext_metric":"",
"pop":"0"
}
,
{
"period":2,
"icon":"rain",
"icon_url":"http://icons.wxug.com/i/c/k/rain.gif",
"title":"",
"fcttext":"",
"fcttext_metric":"",
"pop":"100"
}
,
{
"period":3,
"icon":"nt_",
"icon_url":"http://icons.wxug.com/i/c/k/nt_.gif",
"title":"",
"fcttext":"",
"fcttext_metric":"",
"pop":"0"
}
,
{
"period":4,
"icon":"chancerain",
"icon_url":"http://icons.wxug.com/i/c/k/chancerain.gif",
"title":"",
"fcttext":"",
"fcttext_metric":"",
"pop":"80"
}
,
and odd names for some icons 'nt_' with no forecast text.   The lang=en version returns
Code: [Select]
"forecast":{
"txt_forecast": {
"date":"3:58 PM CEST",
"forecastday": [
{
"period":0,
"icon":"clear",
"icon_url":"http://icons.wxug.com/i/c/k/clear.gif",
"title":"Tuesday",
"fcttext":"Clear. Lows overnight in the upper 50s.",
"fcttext_metric":"Clear. Low 14C.",
"pop":"10"
}
,
{
"period":1,
"icon":"nt_clear",
"icon_url":"http://icons.wxug.com/i/c/k/nt_clear.gif",
"title":"Tuesday Night",
"fcttext":"Clear skies. Low 57F. Winds NE at 5 to 10 mph.",
"fcttext_metric":"Clear skies. Low 14C. Winds NE at 10 to 15 km/h.",
"pop":"10"
}
,
{
"period":2,
"icon":"clear",
"icon_url":"http://icons.wxug.com/i/c/k/clear.gif",
"title":"Wednesday",
"fcttext":"Sunny skies. Warm. High 82F. Winds light and variable.",
"fcttext_metric":"Sunny. Warm. High 28C. Winds light and variable.",
"pop":"10"
}
,
{
"period":3,
"icon":"nt_clear",
"icon_url":"http://icons.wxug.com/i/c/k/nt_clear.gif",
"title":"Wednesday Night",
"fcttext":"A mostly clear sky. Low 59F. Winds light and variable.",
"fcttext_metric":"Clear. Low near 15C. Winds light and variable.",
"pop":"10"
}
,
{
"period":4,
"icon":"partlycloudy",
"icon_url":"http://icons.wxug.com/i/c/k/partlycloudy.gif",
"title":"Thursday",
"fcttext":"Sunshine and clouds mixed. A stray shower or thunderstorm is possible. High 79F. Winds W at 5 to 10 mph.",
"fcttext_metric":"Partly cloudy early followed by increasing clouds with showers developing later in the day. High 26C. Winds W at 10 to 15 km/h. Chance of rain 40%.",
"pop":"20"
}
,
{
"period":5,
"icon":"nt_cloudy",
"icon_url":"http://icons.wxug.com/i/c/k/nt_cloudy.gif",
"title":"Thursday Night",
"fcttext":"Cloudy skies. Low 49F. Winds N at 5 to 10 mph.",
"fcttext_metric":"Rain showers early with overcast skies late. Low around 10C. Winds N at 10 to 15 km/h. Chance of rain 40%.",
"pop":"20"
}
,


So this looks like it is a WU API issue (not something I can easily fix).  Their API is not returning the requested data fully. 
I'd suggest you send them a note asking them to fix the API for lang=de results.
Title: Re: wu-forecast renders error messages on homescreen
Post by: jachen on June 19, 2018, 12:51:11 PM
Thank you Ken

I will try to manage the forecast to stay english undependently from language selected.
Additionally I will report the api problem to WU and see if there will be a fix on that.

Always appreciate you assistance Ken.
Have a good time.

jachen
Title: Re: wu-forecast renders error messages on homescreen
Post by: Intheswamp on June 19, 2018, 01:02:12 PM
Best wishes on conversing with WU!!!!!  :grin:
Title: Re: wu-forecast renders error messages on homescreen
Post by: jachen on June 19, 2018, 01:03:28 PM
Was this sarcasmus?
Title: Re: wu-forecast renders error messages on homescreen
Post by: Intheswamp on June 19, 2018, 02:33:35 PM
Definitely sarcasmus!   ;)
Title: Re: wu-forecast renders error messages on homescreen
Post by: jachen on July 08, 2018, 02:23:55 PM
WU fixed the issue. Everything fine after a few hours. Keep fingers crossed.

Title: Re: wu-forecast renders error messages on homescreen
Post by: Intheswamp on July 10, 2018, 12:13:54 PM
 UU