Weather API Yesterday not providing data ?

  • 1
  • Problem
  • Updated 3 years ago
Hi,

I am using WU APIs in a smart sprinkler.

The issue is that the API is not providing any data as expected.

Data are available on WU website (see screenshot below):



Request

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

Response (without yesterday 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":"" }
		]
	}
}
);

Any solution available for this issue ?
Photo of Emiliano Maina

Emiliano Maina

  • 4 Posts
  • 0 Reply Likes
  • frustrated

Posted 3 years ago

  • 1

Be the first to post a reply!