No "Conditions" information for Kelowna, BC, Canada.

  • 1
  • Problem
  • Updated 5 years ago
Hello! I've been using this api for the last year or so to stop my sprinklers from watering during rainy weather. It has been flawless for a very long time, but recently...

Kelowna, BC, Canada has had no conditions information since Fri, 25 Apr 2014 at around "01:17:01 -0700"

http://api.wunderground.com/api/${api... brings back very scant information:
{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/a...",
"features": {
"conditions": 1
}
, "results": [
{
"name": "Kelowna",
"city": "Kelowna",
"state": "BC",
"country": "CA",
"country_iso3166":"CA",
"country_name":"Canada",
"zmw": "00000.1.71203",
"l": "/q/zmw:00000.1.71203"
}
,
{
"name": "Kelowna",
"city": "Kelowna",
"state": "BC",
"country": "CA",
"country_iso3166":"CA",
"country_name":"Canada",
"zmw": "00000.3.WCYLW",
"l": "/q/zmw:00000.3.WCYLW"
}
]
}
}

let's see if you can fix this before i fix my broken php script which figures it's 0C. and has decided to fry my lawn. hahah :(
Photo of microbrain

microbrain

  • 2 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of microbrain

microbrain

  • 2 Posts
  • 0 Reply Likes
I get it. You have two readings,

One from /q/zmw:00000.1.71203 which appears to be the University.
And one from /q/zmw:00000.3.WCYLW which would probably be the Air port.
(they are right across from each-other by the way).

Querying either one individually works.

http://api.wunderground.com/api/.../c...
http://api.wunderground.com/api/.../c...

But I'm curious, is that intended behavior from the API? Before it was ok just querying the city. If other people/programs query the location like stated in the API docs and you get a new data source, their programs may break!

It might be more graceful to average the temps for the city's data sources and use that as default output, and perhaps give the list of refined areas as an array in json/xml to allow the user to choose a closer/localized location if they require it to be more refined.

Sorry to bug! Thanks!