more G-Labs products

Author Topic: wunderground  (Read 2694 times)

September 06, 2014, 01:53:59 PM
Read 2694 times

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
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'

September 08, 2014, 11:17:11 PM
Reply #1

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
Any help ??

September 09, 2014, 04:10:10 AM
Reply #2

adm533

  • *
  • Information
  • Newbie
  • Posts: 4
Hm, I can't reproduce the issue. Where does the error show up? What does the Weather Underground widget display?

September 09, 2014, 10:46:23 AM
Reply #3

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
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"
      }
 

September 09, 2014, 04:58:28 PM
Reply #4

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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.

September 09, 2014, 10:09:50 PM
Reply #5

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
Can you test it please?

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

I think that all values are set... but hg return error

September 10, 2014, 04:58:07 AM
Reply #6

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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.

September 10, 2014, 09:06:47 AM
Reply #7

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
i know :) i erase my key so do not post it... the idea is someone try with their one key...

September 10, 2014, 04:54:02 PM
Reply #8

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525