more G-Labs products

Author Topic: Weather Underground stopped working  (Read 4133 times)

March 14, 2016, 10:06:17 PM
Reply #15

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
A program restart while the Web API is running usually solved the problem

March 15, 2016, 09:11:55 PM
Reply #16

cbb

  • *
  • Information
  • Newbie
  • Posts: 9

March 15, 2016, 10:26:25 PM
Reply #17

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Hi cbb,

I have the same problem, began a few days ago.
Did Weatherunderground change the interface slightly?


WeatherUnderground still work on my side ... So probably no interface change ..
Did you try to get the json like ?
http://api.wunderground.com/api/<your api key>/geolookup/astronomy/lang:<your lang>/q/<your town>.json

March 16, 2016, 06:46:54 PM
Reply #18

cbb

  • *
  • Information
  • Newbie
  • Posts: 9
The response looks ok, this is the section around moon_phase:

   "id":"ITRAISKI21",
      "lat":48.008183,
      "lon":16.251448,
      "distance_km":4,
      "distance_mi":2
      }
      ]
      }
      }
   }
      ,   "moon_phase": {
      "percentIlluminated":"61",
      "ageOfMoon":"8",
      "phaseofMoon":"First Quarter",
      "hemisphere":"North",
      "current_time": {
      "hour":"18",
      "minute":"25"
      },
      "sunrise": {
      "hour":"6",
      "minute":"05"
      },
      "sunset": {
      "hour":"18",
      "minute":"02"
      },
      "moonrise": {
      "hour":"11",
      "minute":"14"
      },
      "moonset": {
      "hour":"1",
      "minute":"42"
      }
   },


There is a tab directly before moon_phase, perhaps this causes the trouble?

HG complains "...'string' does not contain a definition for 'moon_phase'"

March 16, 2016, 10:53:49 PM
Reply #19

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
@ccb what version do you have?
I solve my problem doing a backup then install the latest version and restore, the modules/plugins are updated and now it works, i can't understand why, but i loose the string error...

I do some debug in the previous version and some cities work in hg others don't but using the same request via a browser always works, i give up and install the latest version..

My best option is that the problem is somewhere inside a file that hg or mono use the  get the values, because the simple example of json get isn't working in my previous version...
« Last Edit: March 16, 2016, 10:56:13 PM by codedmind »

March 28, 2016, 09:25:00 AM
Reply #20

cbb

  • *
  • Information
  • Newbie
  • Posts: 9
Sorry for the late reply, was on a business trip.

The version I am using is 1.1.r514.
The strange thing is: it already worked. I also tried different locations but now no request finishes without the moon_phase error.