Author Topic: wu-forecast renders error messages on homescreen  (Read 825 times)

0 Members and 1 Guest are viewing this topic.

Offline jachen

  • Member
  • *
  • Posts: 17
    • Neue Wetterstation Widen
wu-forecast renders error messages on homescreen
« 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 ]
 

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2201
  • Space Academy for Educators
    • Robbinsdale Middle School Weather
Re: wu-forecast renders error messages on homescreen
« Reply #1 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.
Vantage Pro Plus 6163
Robbinsdale, MN 55422@ 45 degrees North Latitude.

You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline jachen

  • Member
  • *
  • Posts: 17
    • Neue Wetterstation Widen
Re: wu-forecast renders error messages on homescreen
« Reply #2 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

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6880
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wu-forecast renders error messages on homescreen
« Reply #3 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.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jachen

  • Member
  • *
  • Posts: 17
    • Neue Wetterstation Widen
Re: wu-forecast renders error messages on homescreen
« Reply #4 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

Offline jachen

  • Member
  • *
  • Posts: 17
    • Neue Wetterstation Widen
Re: wu-forecast renders error messages on homescreen
« Reply #5 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 ]

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6880
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wu-forecast renders error messages on homescreen
« Reply #6 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.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jachen

  • Member
  • *
  • Posts: 17
    • Neue Wetterstation Widen
Re: wu-forecast renders error messages on homescreen
« Reply #7 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).

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6880
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wu-forecast renders error messages on homescreen
« Reply #8 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.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jachen

  • Member
  • *
  • Posts: 17
    • Neue Wetterstation Widen
Re: wu-forecast renders error messages on homescreen
« Reply #9 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

Offline Intheswamp

  • Early on one frosty morn'...
  • Forecaster
  • *****
  • Posts: 1394
  • Sure...I know enough to be dangerous, now.
    • Beeweather
Re: wu-forecast renders error messages on homescreen
« Reply #10 on: June 19, 2018, 01:02:12 PM »
Best wishes on conversing with WU!!!!!  :grin:

Davis VP2, v3.12
Cumulus v1.9.4  Build 1079
Today's weather beats no weather at all!
www.beeweather.com
Tried to lift one of vreihen's gold stars but wasn't smart enough to do it....<grin>

Offline jachen

  • Member
  • *
  • Posts: 17
    • Neue Wetterstation Widen
Re: wu-forecast renders error messages on homescreen
« Reply #11 on: June 19, 2018, 01:03:28 PM »
Was this sarcasmus?

Offline Intheswamp

  • Early on one frosty morn'...
  • Forecaster
  • *****
  • Posts: 1394
  • Sure...I know enough to be dangerous, now.
    • Beeweather
Re: wu-forecast renders error messages on homescreen
« Reply #12 on: June 19, 2018, 02:33:35 PM »
Definitely sarcasmus!   ;)

Davis VP2, v3.12
Cumulus v1.9.4  Build 1079
Today's weather beats no weather at all!
www.beeweather.com
Tried to lift one of vreihen's gold stars but wasn't smart enough to do it....<grin>

Offline jachen

  • Member
  • *
  • Posts: 17
    • Neue Wetterstation Widen
Re: wu-forecast renders error messages on homescreen
« Reply #13 on: July 08, 2018, 02:23:55 PM »
WU fixed the issue. Everything fine after a few hours. Keep fingers crossed.


Offline Intheswamp

  • Early on one frosty morn'...
  • Forecaster
  • *****
  • Posts: 1394
  • Sure...I know enough to be dangerous, now.
    • Beeweather
Re: wu-forecast renders error messages on homescreen
« Reply #14 on: July 10, 2018, 12:13:54 PM »
 UU

Davis VP2, v3.12
Cumulus v1.9.4  Build 1079
Today's weather beats no weather at all!
www.beeweather.com
Tried to lift one of vreihen's gold stars but wasn't smart enough to do it....<grin>