Author Topic: Wunderground Weather Plugin  (Read 41003 times)

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Wunderground Weather Plugin
« on: September 25, 2012, 11:16:28 am »
I just published the Wunderground Weather Plugin, which is version 1.52 of the Weather Plugin by @guessed. As the title says, this version of the plugin uses the Weather Underground API, which requires registering to get a key.

Original discussion here: http://forum.micasaverde.com/index.php/topic,1435.msg83997.html#msg83997
« Last Edit: September 26, 2012, 10:18:50 am by mcvflorin »

Offline teonebello

  • Sr. Member
  • ****
  • Posts: 405
  • Karma: +0/-0
  • Macs, Home Automation, Bikers
Re: Wunderground Weather Plugin
« Reply #1 on: September 25, 2012, 12:04:19 pm »
very nice plug but not working for me.

Added the key, added the 5 seconds polling and the location with the alis LSZA (Lugano, Switzerland).

Where am I wrong?

https://api.com/16a3f0a2c3ebe3cf/conditions/forecast/q/lsza.xml return nothing

Thank you
Matteo

Offline Jukka

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-0
Re: Wunderground Weather Plugin
« Reply #2 on: September 25, 2012, 12:21:04 pm »
I have added plugin manually some time ago (uploaded files to Vera and created the weather device). Plugin is working well (thank you guessed).

But can I make this manually created device to be visible on Vera page APPS/My apps? I don’t want to delete it and reload it from market place (device IDs changes and I don’t want that)

Offline guessed

  • Master Member
  • *******
  • Posts: 5294
  • Karma: +90/-22
  • Release compat is not a bolted-on afterthought
Re: Wunderground Weather Plugin
« Reply #3 on: September 25, 2012, 01:08:05 pm »
Matteo,
For testing purposes, the call would look like:
    http://api.wunderground.com/api/YourKeyHere/conditions/forecast/q/lsza.xml

I just tried it, and it's returning the correct feed data.  In your case, you'd need to use your [real] key, since the one listed below isn't real and also you'd need to Set a Location override of "lsza" in the Control panel for the Plugin.


PS: Avoid publishing your real key, since any usages of it apply against your account.  Also avoid calling it frequently, unless you're using the paid service, as there are limits when your account will get cutoff (I've done it by accident during testing)

very nice plug but not working for me.

Added the key, added the 5 seconds polling and the location with the alis LSZA (Lugano, Switzerland).

Where am I wrong?

https://api.com/16a3f0a2c3ebe3cf/conditions/forecast/q/lsza.xml return nothing

Thank you
Matteo

Offline frichter09

  • Sr. Member
  • ****
  • Posts: 397
  • Karma: +0/-1
Re: Wunderground Weather Plugin
« Reply #4 on: September 25, 2012, 03:13:41 pm »
very nice plug but not working for me.

Added the key, added the 5 seconds polling and the location with the alis LSZA (Lugano, Switzerland).

Where am I wrong?

https://api.com/16a3f0a2c3ebe3cf/conditions/forecast/q/lsza.xml return nothing

Thank you
Matteo

Matteo did you get this to work?
I have the same issue.
Obtained a key, changed polling interval to 5 minutes and set location.... no dice....
I am sure I set everything up correctly...
Anyone else having issues?
Flo

EDIT: Pasting everything in the browser using my API key works without any issues.
Anybody able to help?
« Last Edit: September 25, 2012, 03:17:16 pm by frichter09 »
Vera Lite (1), Kwikset Locks (2), 2Gig-CT30 Thermostat (1), D-Link IP Cam (1), Evolve DM-15 (1), Evolve LRM-15(AS) (4), Evolve LFM-20 (1), Evolve LSM-15 (1), Everspring Sensor (1), Intermatic HA02C (6), Intermatic HA03C (4), Wayne-Dalton HA-03WD (2), MCV Smart Switch (1)

Offline frichter09

  • Sr. Member
  • ****
  • Posts: 397
  • Karma: +0/-1
Re: Wunderground Weather Plugin
« Reply #5 on: September 25, 2012, 03:34:23 pm »
Nevermind, I got it.
I originally installed it over the older weather version which did not work.
So I deleted the old weather app and THEN installed weather underground and voila.... it started bugging me for the key.  8)

Works like a charm now!

Thanks everyone :)
Flo
Vera Lite (1), Kwikset Locks (2), 2Gig-CT30 Thermostat (1), D-Link IP Cam (1), Evolve DM-15 (1), Evolve LRM-15(AS) (4), Evolve LFM-20 (1), Evolve LSM-15 (1), Everspring Sensor (1), Intermatic HA02C (6), Intermatic HA03C (4), Wayne-Dalton HA-03WD (2), MCV Smart Switch (1)

Offline capjay

  • Hero Member
  • *****
  • Posts: 675
  • Karma: +9/-3
Re: Wunderground Weather Plugin
« Reply #6 on: September 25, 2012, 05:24:47 pm »
I think you have to delete it and install the one in the Apps section...

I have added plugin manually some time ago (uploaded files to Vera and created the weather device). Plugin is working well (thank you guessed).

But can I make this manually created device to be visible on Vera page APPS/My apps? I don’t want to delete it and reload it from market place (device IDs changes and I don’t want that)

Offline gbeeton

  • Sr. Newbie
  • *
  • Posts: 33
  • Karma: +1/-0
Re: Wunderground Weather Plugin
« Reply #7 on: September 25, 2012, 07:31:01 pm »
I assume you need an upgraded (i.e. paid) membership to Weather Underground in order to get the key?

Offline frichter09

  • Sr. Member
  • ****
  • Posts: 397
  • Karma: +0/-1
Re: Wunderground Weather Plugin
« Reply #8 on: September 25, 2012, 07:42:50 pm »
So, I have the set the polling interval to 300 (s) and 600 (s).
Still, according to the log Vera polls every 60 seconds.

Anyone else seeing this??
Vera Lite (1), Kwikset Locks (2), 2Gig-CT30 Thermostat (1), D-Link IP Cam (1), Evolve DM-15 (1), Evolve LRM-15(AS) (4), Evolve LFM-20 (1), Evolve LSM-15 (1), Everspring Sensor (1), Intermatic HA02C (6), Intermatic HA03C (4), Wayne-Dalton HA-03WD (2), MCV Smart Switch (1)

Offline guessed

  • Master Member
  • *******
  • Posts: 5294
  • Karma: +90/-22
  • Release compat is not a bolted-on afterthought
Re: Wunderground Weather Plugin
« Reply #9 on: September 25, 2012, 09:59:09 pm »
If the override is set, then you should see something like the attached image in the UI (90 second override example)

Additionally, the log output should be something like:

Code: [Select]
50 09/25/12 18:47:54.104 luup_log:109: WUIWeather: Requested [-10.728072,179.472656], got [-10.728072,179.472656]], it's currently 62.4 and Clear (clear).  Humidity is 74%.  Low is -50 High is 425.  Condition is Clear, Wind Condition is Calm, Direction is NNE, Speed is 320.0 <0x2c859680>
50 09/25/12 18:49:23.754 luup_log:109: WUIWeather: Requested [-10.728072,179.472656], got [-10.728072,179.472656]], it's currently 62.3 and Clear (clear).  Humidity is 74%.  Low is -50 High is 425.  Condition is Clear, Wind Condition is Calm, Direction is NNE, Speed is 320.0 <0x2c859680>
50 09/25/12 18:50:53.873 luup_log:109: WUIWeather: Requested [-10.728072,179.472656], got [-10.728072,179.472656]], it's currently 62.2 and Clear (clear).  Humidity is 74%.  Low is -50 High is 425.  Condition is Clear, Wind Condition is Calm, Direction is NNE, Speed is 320.0 <0x2c859680>
50 09/25/12 18:52:24.063 luup_log:109: WUIWeather: Requested [-10.728072,179.472656], got [-10.728072,179.472656]], it's currently 62.2 and Clear (clear).  Humidity is 74%.  Low is -50 High is 425.  Condition is Clear, Wind Condition is Calm, Direction is NNE, Speed is 320.0 <0x2c859680>

If you previously had GoogleWeather, it's possible that it's still running in the system and would need to be removed.  It'll have log lines that start with "GoogleWeather: "

When Vera restarts the log lines will occur more frequently.

Offline xben007

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +1/-0
Re: Wunderground Weather Plugin
« Reply #10 on: September 26, 2012, 06:06:24 am »
I had Weather plugin installed and working (from Google) before, then it stopped working and I decided to wait for the new WU Weather Plugin.

The original plugin was installed through automatic installation. I just changed the location in the advanced tab.
Today when I checked, Weather Plugin had been automatically updated to WU Weather Plugin. I registered with WU and got an API key. I tried setting up the plugin with no success.

I uninstalled/installed it again, set the API key and a location. Everything worked fine (just had to change location once to get temp sensors working).

So I think I can confirm that people with trouble setting up WU Weather Plugin should uninstall the plugin then install it again.
Keep up the good work !
Cheers

Offline capjay

  • Hero Member
  • *****
  • Posts: 675
  • Karma: +9/-3
Re: Wunderground Weather Plugin
« Reply #11 on: September 26, 2012, 07:47:01 am »
I assume you need an upgraded (i.e. paid) membership to Weather Underground in order to get the key?

you just need to create a free account and agree to their usage terms to get the API key.. http://www.wunderground.com/weather/api

Offline eddiegonzales

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
Re: Wunderground Weather Plugin
« Reply #12 on: September 26, 2012, 08:26:51 am »

I also had to uninstall the old Google plugin, and install the new one before i get prompted to insert the key. Before that the plugin didn't work until i reinstalled.

Thanks for the great work!

/Eddie

Offline eddiegonzales

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
Re: Wunderground Weather Plugin
« Reply #13 on: September 26, 2012, 09:28:21 am »
Hi

Isn't it possible to split "World Weather" into 3 devices? I can't add it to SQ Remote HD probably because of multiple values.

What about barometric pressure?

Regards Eddie
« Last Edit: September 26, 2012, 09:31:09 am by eddiegonzales »

Offline RichD73

  • Jr. Member
  • **
  • Posts: 60
  • Karma: +0/-0
Re: Wunderground Weather Plugin
« Reply #14 on: September 26, 2012, 09:41:20 am »
Quote
If the override is set, then you should see something like the attached image in the UI (90 second override example)

Additionally, the log output should be something like:

Code: [Select]

50   09/25/12 18:47:54.104   luup_log:109: WUIWeather: Requested [-10.728072,179.472656], got [-10.728072,179.472656]], it's currently 62.4 and Clear (clear).  Humidity is 74%.  Low is -50 High is 425.  Condition is Clear, Wind Condition is Calm, Direction is NNE, Speed is 320.0 <0x2c859680>
50   09/25/12 18:49:23.754   luup_log:109: WUIWeather: Requested [-10.728072,179.472656], got [-10.728072,179.472656]], it's currently 62.3 and Clear (clear).  Humidity is 74%.  Low is -50 High is 425.  Condition is Clear, Wind Condition is Calm, Direction is NNE, Speed is 320.0 <0x2c859680>
50   09/25/12 18:50:53.873   luup_log:109: WUIWeather: Requested [-10.728072,179.472656], got [-10.728072,179.472656]], it's currently 62.2 and Clear (clear).  Humidity is 74%.  Low is -50 High is 425.  Condition is Clear, Wind Condition is Calm, Direction is NNE, Speed is 320.0 <0x2c859680>
50   09/25/12 18:52:24.063   luup_log:109: WUIWeather: Requested [-10.728072,179.472656], got [-10.728072,179.472656]], it's currently 62.2 and Clear (clear).  Humidity is 74%.  Low is -50 High is 425.  Condition is Clear, Wind Condition is Calm, Direction is NNE, Speed is 320.0 <0x2c859680>


If you previously had GoogleWeather, it's possible that it's still running in the system and would need to be removed.  It'll have log lines that start with "GoogleWeather: "


I have installed the plugin and it seems to be running fine for me (thanks guessed).. I wonder though, what is the default polling interval? I assume it is set safely below the threshold that would require a paid account from the Wunderground service (up to 500 calls per day)?

Also, where do I look to see the log entries?

Thanks,
Rich