Page 1 of 56

Weather Underground Plugin

PostPosted: Thu Mar 20, 2014 6:59 pm
by DaveL17
Download it here: [Download]

Overview:
The Weather Underground plugin scrapes key weather data from a JSON feed provided by Weather Underground. It allows the user to be able to create devices that represent individual locations for which weather data is presented. The weather data is presented by setting up devices (the data are stored in device state values.) Each location is represented by an individual device.

Re: Weather Underground Plugin

PostPosted: Thu Mar 20, 2014 8:46 pm
by matt (support)
Hi Dave,

Great contribution -- thanks for sharing it! I've added it to our list of weather related plugins.

Re: Weather Underground Plugin

PostPosted: Thu Mar 20, 2014 9:19 pm
by Korey
matt (support) wrote:
Hi Dave,

Great contribution -- thanks for sharing it! I've added it to our list of weather related plugins.



Not seeing the download link for the plugin.. I could be blind thou.. :?

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 3:15 am
by DaveL17
Korey wrote:
Not seeing the download link for the plugin.. I could be blind thou.. :?

It's available now from the User Contribution Library:

http://www.perceptiveautomation.com/fil ... ds=weather

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 6:15 am
by jalves
Wondering what level of developer I need to select in order to use this plug-in. Stratus, Cumulus, or Anvil?

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 6:23 am
by DaveL17
jalves wrote:
Wondering what level of developer I need to select in order to use this plug-in. Stratus, Cumulus, or Anvil?

I use the most basic level (Stratus, Developer, No History). It's free, and provides up to 10 calls per minute and up to 500 calls per day (per API Key).

Dave

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 11:20 am
by colinpartridge
Thought I'd try this plugin with a local pws and I'm getting the following error..
Code: Select all
Wunderground Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Wunderground Debug              runConcurrentThread initiated.
  Wunderground                    Wunderground: pws:IGREATER22
  Wunderground Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 342, in runConcurrentThread
  File "plugin.py", line 74, in convStr
<type 'exceptions.ValueError'>: invalid literal for float(): NA

  Wunderground Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


It works fine if I use Canada/Toronto for example so I know my developer key is OK.

any ideas

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 11:46 am
by jalves
DaveL17 wrote:
jalves wrote:
Wondering what level of developer I need to select in order to use this plug-in. Stratus, Cumulus, or Anvil?

I use the most basic level (Stratus, Developer, No History). It's free, and provides up to 10 calls per minute and up to 500 calls per day (per API Key).

Dave


Thanks! Found out that I could select the Anvil plan with History at the Developer level for no cost so I did that. Got to allow for future expansion!

Jeff

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 1:51 pm
by jalves
So just trying this out but not seeing where I enter my API key. There doesn't seem to be an option for that when I select Plugin or when I create a device.

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 1:54 pm
by DaveL17
colinpartridge wrote:
Thought I'd try this plugin with a local pws and I'm getting the following error..
Code: Select all
Wunderground Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Wunderground Debug              runConcurrentThread initiated.
  Wunderground                    Wunderground: pws:IGREATER22
  Wunderground Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 342, in runConcurrentThread
  File "plugin.py", line 74, in convStr
<type 'exceptions.ValueError'>: invalid literal for float(): NA

  Wunderground Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


It works fine if I use Canada/Toronto for example so I know my developer key is OK.

any ideas


The plugin is trying to convert something into a floating value and is really unhappy about it. Seriously though, what's happening is that Weather Underground is probably returning a string for a variable where a numeric is usually provided. It can be easily fixed, but I'm not in a place to be able to make a revised version of the plugin available until later today.

If you're seeing the error repeat in your log over and over again, I'd suggest disabling the plugin for the time being as it's possibly going to be reaching out to Weather Underground site every time Indigo reloads it.

[EDIT] Nevermind on the location info; I see now that it's in the log data you posted.

Sorry for the troubles,
Dave

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 1:57 pm
by DaveL17
jalves wrote:
So just trying this out but not seeing where I enter my API key. There doesn't seem to be an option for that when I select Plugin or when I create a device.


The API key is entered through the plugin configuration menu. In Indigo, go to plugins, Wunderground and select Configure... From there you can enter the key and the frequency that you want to update the data.

On each device is where you enter the location you'd like to monitor.

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 2:35 pm
by jalves
The API key is entered through the plugin configuration menu. In Indigo, go to plugins, Wunderground and select Configure... From there you can enter the key and the frequency that you want to update the data.

On each device is where you enter the location you'd like to monitor.


Don't know how I missed this in the first place. Thanks!

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 2:43 pm
by DaveL17
jalves wrote:
The API key is entered through the plugin configuration menu. In Indigo, go to plugins, Wunderground and select Configure... From there you can enter the key and the frequency that you want to update the data.

On each device is where you enter the location you'd like to monitor.


Don't know how I missed this in the first place. Thanks!


No problem whatsoever. Thanks for checking it out!

Dave

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 3:02 pm
by colinpartridge
DaveL17 wrote:

The plugin is trying to convert something into a floating value and is really unhappy about it. Seriously though, what's happening is that Weather Underground is probably returning a string for a variable where a numeric is usually provided. It can be easily fixed, but I'm not in a place to be able to make a revised version of the plugin available until later today.

If you're seeing the error repeat in your log over and over again, I'd suggest disabling the plugin for the time being as it's possibly going to be reaching out to Weather Underground site every time Indigo reloads it.

[EDIT] Nevermind on the location info; I see now that it's in the log data you posted.

Sorry for the troubles,
Dave

No need to apologise, wouldn't have surprised me if I had got the location information wrong..

Colin

Re: Weather Underground Plugin

PostPosted: Fri Mar 21, 2014 3:44 pm
by DaveL17
colinpartridge wrote:
No need to apologise, wouldn't have surprised me if I had got the location information wrong..

Colin

You are too kind.

I have revised the code, and need to run a test against the WU server. Will ask Jay and Matt to make the new version available later tonight.

Dave