Weather API Yesterday not working ?

  • 1
  • Problem
  • Updated 3 years ago
Hi,

it seems Yesterday API is not working.

On the WU website I can find data:


but API ressponse is empty.

API Request

https://api.wunderground.com/api/14cd099d84ae0366/yesterday/conditions/q/45.32531,8.84186.json?callb...

API Response (missing data)

jQuery211020815766649320722_1442156786194(
{
  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
  "features": {
  "yesterday": 1
  ,
  "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":"Vigevano, Italy",
		"city":"Vigevano",
		"state":"",
		"state_name":"Italy",
		"country":"IY",
		"country_iso3166":"IT",
		"zip":"00000",
		"magic":"101",
		"wmo":"16064",
		"latitude":"45.320000",
		"longitude":"8.840000",
		"elevation":"103.00000000"
		},
		"observation_location": {
		"full":"Meteo Vigevano Radar, Vigevano, LOMBARDIA",
		"city":"Meteo Vigevano Radar, Vigevano",
		"state":"LOMBARDIA",
		"country":"ITALY",
		"country_iso3166":"IT",
		"latitude":"45.325306",
		"longitude":"8.841859",
		"elevation":"364 ft"
		},
		"estimated": {
		},
		"station_id":"ILOMBARD218",
		"observation_time":"Last Updated on September 13, 9:40 PM CEST",
		"observation_time_rfc822":"Sun, 13 Sep 2015 21:40:01 +0200",
		"observation_epoch":"1442173201",
		"local_time_rfc822":"Sun, 13 Sep 2015 21:40:48 +0200",
		"local_epoch":"1442173248",
		"local_tz_short":"CEST",
		"local_tz_long":"Europe/Rome",
		"local_tz_offset":"+0200",
		"weather":"Mostly Cloudy",
		"temperature_string":"64.4 F (18.0 C)",
		"temp_f":64.4,
		"temp_c":18.0,
		"relative_humidity":"80%",
		"wind_string":"From the ENE at 3.0 MPH Gusting to 4.0 MPH",
		"wind_dir":"ENE",
		"wind_degrees":60,
		"wind_mph":3.0,
		"wind_gust_mph":"4.0",
		"wind_kph":4.8,
		"wind_gust_kph":"6.4",
		"pressure_mb":"1015",
		"pressure_in":"29.98",
		"pressure_trend":"+",
		"dewpoint_string":"58 F (14 C)",
		"dewpoint_f":58,
		"dewpoint_c":14,
		"heat_index_string":"NA",
		"heat_index_f":"NA",
		"heat_index_c":"NA",
		"windchill_string":"NA",
		"windchill_f":"NA",
		"windchill_c":"NA",
		"feelslike_string":"64.4 F (18.0 C)",
		"feelslike_f":"64.4",
		"feelslike_c":"18.0",
		"visibility_mi":"6.2",
		"visibility_km":"10.0",
		"solarradiation":"--",
		"UV":"0","precip_1hr_string":"0.00 in ( 0 mm)",
		"precip_1hr_in":"0.00",
		"precip_1hr_metric":" 0",
		"precip_today_string":"0.40 in (10 mm)",
		"precip_today_in":"0.40",
		"precip_today_metric":"10",
		"icon":"mostlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/nt_mostlycloudy.gif",
		"forecast_url":"http://www.wunderground.com/global/stations/16064.html",
		"history_url":"http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ILOMBARD218",
		"ob_url":"http://www.wunderground.com/cgi-bin/findweather/getForecast?query=45.325306,8.841859",
		"nowcast":""
	}
		,
	"history": {
		"date": {
		"pretty": "January 1, 1970",
		"year": "1970",
		"mon": "01",
		"mday": "01",
		"hour": "00",
		"min": "59",
		"tzname": "Europe/Rome"
		},
		"utcdate": {
		"pretty": "December 31, 1969",
		"year": "1969",
		"mon": "12",
		"mday": "31",
		"hour": "23",
		"min": "59",
		"tzname": "UTC"
		},
		"observations": [
		],
		"dailysummary": [
		{ "date": {
		"pretty": "12:59 AM CET on January 01, 1970",
		"year": "1970",
		"mon": "01",
		"mday": "01",
		"hour": "00",
		"min": "59",
		"tzname": "Europe/Rome"
		},
		"fog":"0","rain":"0","snow":"0","snowfallm":"", "snowfalli":"","monthtodatesnowfallm":"", "monthtodatesnowfalli":"","since1julsnowfallm":"", "since1julsnowfalli":"","snowdepthm":"", "snowdepthi":"","hail":"0","thunder":"0","tornado":"0","meantempm":"", "meantempi":"","meandewptm":"", "meandewpti":"","meanpressurem":"", "meanpressurei":"","meanwindspdm":"", "meanwindspdi":"","meanwdire":"Variable","meanwdird":"-1","meanvism":"", "meanvisi":"","humidity":"","maxtempm":"", "maxtempi":"","mintempm":"", "mintempi":"","maxhumidity":"","minhumidity":"","maxdewptm":"", "maxdewpti":"","mindewptm":"", "mindewpti":"","maxpressurem":"", "maxpressurei":"","minpressurem":"", "minpressurei":"","maxwspdm":"", "maxwspdi":"","minwspdm":"", "minwspdi":"","maxvism":"", "maxvisi":"","minvism":"", "minvisi":"","gdegreedays":"","heatingdegreedays":"","coolingdegreedays":"","precipm":"0.0", "precipi":"0.00","precipsource":"3Or6HourObs","heatingdegreedaysnormal":"","monthtodateheatingdegreedays":"","monthtodateheatingdegreedaysnormal":"","since1sepheatingdegreedays":"","since1sepheatingdegreedaysnormal":"","since1julheatingdegreedays":"","since1julheatingdegreedaysnormal":"","coolingdegreedaysnormal":"","monthtodatecoolingdegreedays":"","monthtodatecoolingdegreedaysnormal":"","since1sepcoolingdegreedays":"","since1sepcoolingdegreedaysnormal":"","since1jancoolingdegreedays":"","since1jancoolingdegreedaysnormal":"" }
		]
	}
}
);
Photo of Emiliano Maina

Emiliano Maina

  • 4 Posts
  • 0 Reply Likes
  • anxious

Posted 3 years ago

  • 1
Photo of Tim Roche

Tim Roche, Official Rep

  • 317 Posts
  • 28 Reply Likes
Hello,

Please specify which information you feel is missing? Not all fields are available for all stations
Photo of Emiliano Maina

Emiliano Maina

  • 4 Posts
  • 0 Reply Likes
I was feeling that the actual data of the day before was missing. As example the date was missing:

"history": {
		"date": {
		"pretty": "January 1, 1970",
		"year": "1970",
		"mon": "01",
		"mday": "01",
		"hour": "00",
		"min": "59",
		"tzname": "Europe/Rome"
		},

This even on WU website data were actually available.

In other words:
- WU website => OK
- WU API yesterday => NO DATA

Making the same query now the result is totally different providing expected data:


jQuery211020815766649320722_1442156786194(
{
  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
  "features": {
  "yesterday": 1
  ,
  "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":"Vigevano, Italy",
		"city":"Vigevano",
		"state":"",
		"state_name":"Italy",
		"country":"IY",
		"country_iso3166":"IT",
		"zip":"00000",
		"magic":"101",
		"wmo":"16064",
		"latitude":"45.320000",
		"longitude":"8.840000",
		"elevation":"103.00000000"
		},
		"observation_location": {
		"full":"Meteo Vigevano Radar, Vigevano, LOMBARDIA",
		"city":"Meteo Vigevano Radar, Vigevano",
		"state":"LOMBARDIA",
		"country":"ITALY",
		"country_iso3166":"IT",
		"latitude":"45.325306",
		"longitude":"8.841859",
		"elevation":"364 ft"
		},
		"estimated": {
		},
		"station_id":"ILOMBARD218",
		"observation_time":"Last Updated on September 15, 6:19 PM CEST",
		"observation_time_rfc822":"Tue, 15 Sep 2015 18:19:57 +0200",
		"observation_epoch":"1442333997",
		"local_time_rfc822":"Tue, 15 Sep 2015 18:24:37 +0200",
		"local_epoch":"1442334277",
		"local_tz_short":"CEST",
		"local_tz_long":"Europe/Rome",
		"local_tz_offset":"+0200",
		"weather":"Partly Cloudy",
		"temperature_string":"71.8 F (22.1 C)",
		"temp_f":71.8,
		"temp_c":22.1,
		"relative_humidity":"59%",
		"wind_string":"From the SSW at 3.0 MPH Gusting to 6.0 MPH",
		"wind_dir":"SSW",
		"wind_degrees":210,
		"wind_mph":3.0,
		"wind_gust_mph":"6.0",
		"wind_kph":4.8,
		"wind_gust_kph":"9.7",
		"pressure_mb":"1010",
		"pressure_in":"29.83",
		"pressure_trend":"0",
		"dewpoint_string":"57 F (14 C)",
		"dewpoint_f":57,
		"dewpoint_c":14,
		"heat_index_string":"NA",
		"heat_index_f":"NA",
		"heat_index_c":"NA",
		"windchill_string":"NA",
		"windchill_f":"NA",
		"windchill_c":"NA",
		"feelslike_string":"71.8 F (22.1 C)",
		"feelslike_f":"71.8",
		"feelslike_c":"22.1",
		"visibility_mi":"N/A",
		"visibility_km":"N/A",
		"solarradiation":"--",
		"UV":"1","precip_1hr_string":"0.00 in ( 0 mm)",
		"precip_1hr_in":"0.00",
		"precip_1hr_metric":" 0",
		"precip_today_string":"0.00 in (0 mm)",
		"precip_today_in":"0.00",
		"precip_today_metric":"0",
		"icon":"partlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/partlycloudy.gif",
		"forecast_url":"http://www.wunderground.com/global/stations/16064.html",
		"history_url":"http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ILOMBARD218",
		"ob_url":"http://www.wunderground.com/cgi-bin/findweather/getForecast?query=45.325306,8.841859",
		"nowcast":""
	}
		,
	"history": {
		"date": {
		"pretty": "September 14, 2015",
		"year": "2015",
		"mon": "09",
		"mday": "14",
		"hour": "01",
		"min": "20",
		"tzname": "Europe/Rome"
		},
		"utcdate": {
		"pretty": "September 13, 2015",
		"year": "2015",
		"mon": "09",
		"mday": "13",
		"hour": "23",
		"min": "20",
		"tzname": "UTC"
		},

.....
Photo of Tim Roche

Tim Roche, Official Rep

  • 317 Posts
  • 28 Reply Likes
Please let us know if you see the issue again.

Please provide the exact API call you made, the time you made it (with timezone)
and the full JSON response that you receive.

thanks
Photo of Emiliano Maina

Emiliano Maina

  • 4 Posts
  • 0 Reply Likes
Everything was already in the originale post