Author Topic: The forecast stopped working ??  (Read 757 times)

0 Members and 1 Guest are viewing this topic.

Offline Guillermo Villan

  • Ing. Eléctrical
  • Senior Member
  • **
  • Posts: 53
    • WXElortondo - Estación Meteorológica Automática de Elortondo
The forecast stopped working ??
« on: November 07, 2017, 02:19:03 PM »
Yesterday the forecast provided by weatherunderground stopped working.
Does anyone know what is going on.

www.wxelortondo.com.ar

http://www.wunderground.com/global/stations/87468.html
VENADO TUERTO  not found!!
regards
« Last Edit: November 07, 2017, 02:36:44 PM by Guillermo Villan »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9278
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: The WU-forecast stopped working ??
« Reply #1 on: November 07, 2017, 03:21:51 PM »
There's a problem with the WU API JSON returning incomplete data for one field 'fcttext_metric' which is 'null'.

It should be the Metric version of the text forecast like:
Code: [Select]
"forecast":{
"txt_forecast": {
"date":"5:52 AM CET",
"forecastday": [
{
"period":0,
"icon":"chancerain",
"icon_url":"http://icons.wxug.com/i/c/k/chancerain.gif",
"title":"Wednesday",
"fcttext":"Mainly cloudy and windy with occasional light rain...mainly in the morning. High 46F. Winds W at 25 to 35 mph. Chance of rain 40%. Winds could occasionally gust over 40 mph.",
"fcttext_metric":"Mostly cloudy and windy. Periods of light rain this morning. High 8C. Winds W at 30 to 50 km/h. Chance of rain 40%. Winds could occasionally gust over 65 km/h.",
"pop":"40"
}
but instead, it has
Code: [Select]
"forecast":{
"txt_forecast": {
"date":"5:52 AM CET",
"forecastday": [
{
"period":0,
"icon":"chancerain",
"icon_url":"http://icons.wxug.com/i/c/k/chancerain.gif",
"title":"Wednesday",
"fcttext":"Mainly cloudy and windy with occasional light rain...mainly in the morning. High 46F. Winds W at 25 to 35 mph. Chance of rain 40%. Winds could occasionally gust over 40 mph.",
"fcttext_metric":"",
"pop":"40"
}
and that stops the current WU-forecast from processing a forecast if metric units are used.

I can do a quick-fix that just substitutes the Imperial for the missing Metric forecast, but that can lead to other confusion.

Parsing/fixing the text temperatures / windspeeds in the imperial forecast to metric is a much larger task and may break with non-English forecasts.

I think they have to fix the API (which is not providing data according to their docs).  Grrrr.

I see on the WU API community forum that this problem is 'known' but unresolved as yet.  Note that this impacts all metric UOM forecast users.
« Last Edit: November 07, 2017, 03:29:50 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Guillermo Villan

  • Ing. Eléctrical
  • Senior Member
  • **
  • Posts: 53
    • WXElortondo - Estación Meteorológica Automática de Elortondo
Re: The forecast stopped working ??
« Reply #2 on: November 08, 2017, 07:30:13 AM »
It started working again. Thanks for the information about the problem.
regards

www.wxelortondo.com.ar