HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: codedmind on September 06, 2014, 01:53:59 PM

Title: wunderground
Post by: codedmind on September 06, 2014, 01:53:59 PM
After setting the key i get an error from weather underground
2014-09-06T12:52:52.8191340+01:00   HomeAutomation.HomeGenie.Automation   34   Automation Program   Weather Underground ERROR!   Unable to get data from service.
`string' does not contain a definition for `moon_phase'
Title: Re: wunderground
Post by: codedmind on September 08, 2014, 11:17:11 PM
Any help ??
Title: Re: wunderground
Post by: adm533 on September 09, 2014, 04:10:10 AM
Hm, I can't reproduce the issue. Where does the error show up? What does the Weather Underground widget display?
Title: Re: wunderground
Post by: codedmind on September 09, 2014, 10:46:23 AM
Hy there,

The problem is with the wunderground api i supose...  because it return this

}
      ,   "moon_phase": {
      "percentIlluminated":"100",
      "ageOfMoon":"15",
      "phaseofMoon":"Full",
      "hemisphere":"North",
      "current_time": {
      "hour":"22",
      "minute":"23"
      },
      "sunrise": {
      "hour":"7",
      "minute":"09"
      },
      "sunset": {
      "hour":"19",
      "minute":"55"
      }
 
Title: Re: wunderground
Post by: bkenobi on September 09, 2014, 04:58:28 PM
I found that every weather station is not the same with WU.  There are some local stations for me that return a small subset of data and others that return everything.  I had to pick one of the full data set stations to get everything working.
Title: Re: wunderground
Post by: codedmind on September 09, 2014, 10:09:50 PM
Can you test it please?

The url is this http://api.wunderground.com/api/APIKEY/geolookup/astronomy/lang:PT/q/Leiria.json (http://api.wunderground.com/api/APIKEY/geolookup/astronomy/lang:PT/q/Leiria.json)

I think that all values are set... but hg return error
Title: Re: wunderground
Post by: bkenobi on September 10, 2014, 04:58:07 AM
That's not a valid URL.

Code: [Select]
{
  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
  "features": {
  }
,
"error": {
"type": "keynotfound"
,"description": "this key does not exist"
}
}
}

You have to use your own api key in the url.
Title: Re: wunderground
Post by: codedmind on September 10, 2014, 09:06:47 AM
i know :) i erase my key so do not post it... the idea is someone try with their one key...
Title: Re: wunderground
Post by: bkenobi on September 10, 2014, 04:54:02 PM
 8)