WXforum.net
Web Weather => Weather Web Site Help => Topic started 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 ]
-
It' not you, it's WU.
The radar has been showing up - down for maintenance again this weekend.
must be playing around again.
-
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
-
Try the latest update to WU-forecast.php -- it addresses the problem of cache files with no forecast info in them.
-
Thanks Ken
Quiet since 36 hours after invoking the update. I wonder which lines in the code cured that.
cheers
jachen
-
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 ]
-
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.
-
Sorry Ken
Profile should be OK now.
http:// or https://meteo.widen-online.ch (ssl:still some mixed contents on the website).
-
Ok, this is a strange one. For the German forecast (lang=de) the WU API is returning incomplete values in the JSON
"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 "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.
-
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
-
Best wishes on conversing with WU!!!!! :grin:
-
Was this sarcasmus?
-
Definitely sarcasmus! ;)
-
WU fixed the issue. Everything fine after a few hours. Keep fingers crossed.
-
UU