Wrong data received "UV=-1" when on site is 8

  • 1
  • Problem
  • Updated 2 years ago
On website the UV data is correct but using the API I receive a very strange value "-1" which means nothing....

Why the API sends something different and specially why -1 which make no sense...

Here is response using Apigee console:



HTTP/1.1 200 OKX-CreationTime:0.189Access-Control-Allow-Origin:*Date:Sat, 16 Jul 2016 18:43:57 GMTContent-Length:2555Expires:Sat, 16 Jul 2016 18:43:57 GMTLast-Modified:Sat, 16 Jul 2016 18:43:57 GMTSet-Cookie:DT=1468694637:46917:365-dell-c5; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.comSet-Cookie:Prefs=FAVS:1|WXSN:1|PWSOBS:1|WPHO:1|PHOT:1|RADC:0|RADALL:0|HIST0:NULL|GIFT:1|PHOTOTHUMBS:50|; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.comAccess-Control-Allow-Credentials:trueConnection:keep-aliveContent-Type:application/json; charset=UTF-8Server:Apache/2.2.15 (CentOS)Pragma:no-cacheCache-Control:max-age=0, no-cache
{<br>  "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": "Vitoria-Gasteiz, Spain",
      "city": "Vitoria-Gasteiz",
      "state": "",
      "state_name": "Spain",
      "country": "SP",
      "country_iso3166": "ES",
      "zip": "00000",
      "magic": "22",
      "wmo": "08080",
      "latitude": "42.840000",
      "longitude": "-2.670000",
      "elevation": "524.00000000"
    },
    "observation_location": {
      "full": "Vitoria,&nbsp;",
      "city": "Vitoria",
      "state": "",
      "country": "SP",
      "country_iso3166": "ES",
      "latitude": "42.88283539",
      "longitude": "-2.72446895",
      "elevation": "1673 ft"
    },
    "estimated": {},
    "station_id": "LEVT",
    "observation_time": "Last Updated on July 16, 8:30 PM CEST",
    "observation_time_rfc822": "Sat, 16 Jul 2016 20:30:00 +0200",
    "observation_epoch": "1468693800",
    "local_time_rfc822": "Sat, 16 Jul 2016 20:43:57 +0200",
    "local_epoch": "1468694637",
    "local_tz_short": "CEST",
    "local_tz_long": "Europe/Madrid",
    "local_tz_offset": "+0200",
    "weather": "Clear",
    "temperature_string": "75 F (24 C)",
    "temp_f": 75,
    "temp_c": 24,
    "relative_humidity": "50%",
    "wind_string": "From the North at 12 MPH",
    "wind_dir": "North",
    "wind_degrees": 10,
    "wind_mph": 12,
    "wind_gust_mph": 0,
    "wind_kph": 18,
    "wind_gust_kph": 0,
    "pressure_mb": "1021",
    "pressure_in": "30.15",
    "pressure_trend": "+",
    "dewpoint_string": "55 F (13 C)",
    "dewpoint_f": 55,
    "dewpoint_c": 13,
    "heat_index_string": "NA",
    "heat_index_f": "NA",
    "heat_index_c": "NA",
    "windchill_string": "NA",
    "windchill_f": "NA",
    "windchill_c": "NA",
    "feelslike_string": "75 F (24 C)",
    "feelslike_f": "75",
    "feelslike_c": "24",
    "visibility_mi": "N/A",
    "visibility_km": "N/A",
    "solarradiation": "--",
    "UV": "-1",
    "precip_1hr_string": "-9999.00 in (-9999.00 mm)",
    "precip_1hr_in": "-9999.00",
    "precip_1hr_metric": "--",
    "precip_today_string": "0.00 in (0.0 mm)",
    "precip_today_in": "0.00",
    "precip_today_metric": "0.0",
    "icon": "clear",
    "icon_url": "http://icons.wxug.com/i/c/k/clear.gif",
    "forecast_url": "http://www.wunderground.com/global/stations/08080.html",
    "history_url": "http://www.wunderground.com/history/airport/LEVT/2016/7/16/DailyHistory.html",
    "ob_url": "http://www.wunderground.com/cgi-bin/findweather/getForecast?query=42.88283539,-2.72446895",
    "nowcast": ""
  }
}
Photo of Igor Rodriguez

Igor Rodriguez

  • 1 Post
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of tmaster

tmaster

  • 8 Posts
  • 2 Reply Likes
Yea I am unable to post the data it converts it to a --- sometimes corrupting the data for today. So I stop postingthat data.