API request precip_today_metric values jump and different to station daily rainfall

  • 4
  • Problem
  • Updated 4 months ago
Im catching datas from a other waether station fpr comparison via API request. During logging i found strange spikes in the precip_today_metric values. E.g. goes up to 9 mm and then back to 0 then next request 4 mm. When i l.ook at the datas of web page front end the daily rainfall of the weather station ist always zero, also in weather station history table.
Where doe the spikes come from?

Photo of Franz Walzhofer

Franz Walzhofer

  • 1 Post
  • 0 Reply Likes

Posted 4 months ago

  • 4
Photo of Istvan

Istvan

  • 1 Post
  • 0 Reply Likes
Same issue here: webpage returns 5.59mm accumulated precip, while API returns 99mm for the same PWS.



I'm making this request:
http://api.wunderground.com/api/*****/conditions/q/pws:IBUDAPES563.json

{
  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
  "features": {
  "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":"Budafok, Hungary",
		"city":"Budafok",
		"state":"BU",
		"state_name":"Hungary",
		"country":"HU",
		"country_iso3166":"HU",
		"zip":"00000",
		"magic":"162",
		"wmo":"12838",
		"latitude":"47.428936",
		"longitude":"19.022097",
		"elevation":"143.0"
		},
		"observation_location": {
		"full":"Budapest Ferihegy, ",
		"city":"Budapest Ferihegy",
		"state":"",
		"country":"HU",
		"country_iso3166":"HU",
		"latitude":"47.43",
		"longitude":"19.02",
		"elevation":"577 ft"
		},
		"estimated": {
		},
		"station_id":"IBUDAPES563",
		"observation_time":"Last Updated on June 9, 2:39 PM CEST",
		"observation_time_rfc822":"Sat, 09 Jun 2018 14:39:42 +0200",
		"observation_epoch":"1528547982",
		"local_time_rfc822":"Sat, 09 Jun 2018 14:39:52 +0200",
		"local_epoch":"1528547992",
		"local_tz_short":"CEST",
		"local_tz_long":"Europe/Budapest",
		"local_tz_offset":"+0200",
		"weather":"Mostly Cloudy",
		"temperature_string":"72.9 F (22.7 C)",
		"temp_f":72.9,
		"temp_c":22.7,
		"relative_humidity":"76%",
		"wind_string":"From the North at 1.6 MPH Gusting to 2.2 MPH",
		"wind_dir":"North",
		"wind_degrees":0,
		"wind_mph":1.6,
		"wind_gust_mph":"2.2",
		"wind_kph":2.6,
		"wind_gust_kph":"3.5",
		"pressure_mb":"1012",
		"pressure_in":"29.89",
		"pressure_trend":"-",
		"dewpoint_string":"65 F (18 C)",
		"dewpoint_f":65,
		"dewpoint_c":18,
		"heat_index_string":"NA",
		"heat_index_f":"NA",
		"heat_index_c":"NA",
		"windchill_string":"NA",
		"windchill_f":"NA",
		"windchill_c":"NA",
		"feelslike_string":"72.9 F (22.7 C)",
		"feelslike_f":"72.9",
		"feelslike_c":"22.7",
		"visibility_mi":"N/A",
		"visibility_km":"N/A",
		"solarradiation":"165",
		"UV":"2.0","precip_1hr_string":"0.00 in ( 0 mm)",
		"precip_1hr_in":"0.00",
		"precip_1hr_metric":" 0",
		"precip_today_string":"3.91 in (99 mm)",
		"precip_today_in":"3.91",
		"precip_today_metric":"99",
		"icon":"mostlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/mostlycloudy.gif",
		"forecast_url":"http://www.wunderground.com/global/stations/12838.html",
		"history_url":"http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBUDAPES563",
		"ob_url":"http://www.wunderground.com/cgi-bin/findweather/getForecast?query=47.428936,19.022097",
		"nowcast":""