Indigo Weather Conditions Plugin (for Indigo 5) is released.

Posted on
Fri Jan 20, 2012 10:58 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

BlaineM wrote:
First off, thank you Benjamin for contributing this plugin... I believe its goal is exactly what I'm looking for.

I'm evaluating a variety of different automation platforms for a client's application that requires looking out 72 hours for rain events. Based on the likelyhood of that rain event, I may trigger off some activities. I was attracted to Indigo based purely on the potential to look at weather forecasts and its ability to integrate with not only Insteon, but also 3rd party hardware. I'm a complete newbie to Indigo with less than a day's work under my belt, but am liking what I see so far.

From your previous posts, I can see that you're investigating how to populate forecast data into variables. For now, I have your plugin working successfully for the Weather Underground w/ Forecast service (at least according to the variables list and event log), but am not clear on how to access the forecast data if it's not populated into variables. Can you (or anyone else) point me in the right direction on how to leverage that data?

From what I've tried so far, I believe your plugin is the only one that actually looks at forecasts. If anyone knows otherwise, I'm all ears. I'm open to writing code to get the forecast data if it comes down to that.


Blain,

Thank you for the comments.

The issue here is that I will need to partially rewrite the Weather Conditions plugin to allow the states to be visible. Currently it is written as a deviceless plugin, so there is no devices with a state to update...

I am planning on updating the Weather Condition plugin... But I do not yet have a time frame for this... Since I am working on the New Switchboard plugin, and the updated Thermostat plugin...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Fri Mar 30, 2012 10:02 am
pantalones offline
Posts: 87
Joined: Mar 29, 2012

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Thanks for this plugin.

Is there a way to specify an individual Wunderground weather station code instead of using my zip code? The zipcode lookup chooses one that is further away from me than one I'd like to use.

Posted on
Fri Mar 30, 2012 11:00 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

pantalones wrote:
Thanks for this plugin.

Is there a way to specify an individual Wunderground weather station code instead of using my zip code? The zipcode lookup chooses one that is further away from me than one I'd like to use.


Sure, anything is possible...

As I guess, put in the PWS weather station code, instead of the zip code... I think that might work...

If not, I'll have to take a look to see how I would need to modify the code.

Have you found a list of the individual weather station codes? (I didn't find a obvious list....)

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Wed Nov 28, 2012 11:19 am
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Does anyone know the exhaustive list of possible variable values the Weather Underground can return for "currentConditions"?

Posted on
Thu Apr 25, 2013 8:34 am
stoffergoffer offline
Posts: 37
Joined: Apr 16, 2013

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Any plans to update this for indigo 6. I can't access the web interface "internal server error"..
This seems to be the only opportunity for us europeans.

Posted on
Mon May 06, 2013 6:38 am
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

I think, this plugin needs an update?
(Indigo 6.0.0 b7)
Greetings, John

Starting plugin "Weather Conditions 0.98" (pid 28348)
Started plugin "Weather Conditions 0.98"
Weather Conditions Weather Conditions Plugin Loaded...
Weather Conditions Weather Service Google Weather selected
Weather Conditions Update Frequency - 60
Weather Conditions Location to check - XXXX XX
Weather Conditions The Web page will be Orientated Horizontally
Weather Conditions Debug Debug Mode is On (Only recommended for Testing Purposes)
Weather Conditions Debug Running Concurrent Thread
Weather Conditions Retrieving Weather Condition Information from Google Weather
Weather Conditions Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 251, in runConcurrentThread
File "plugin.py", line 239, in run_weather_update
File "plugin.py", line 177, in fetch_google_weather
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Weather-Conditions.indigoPlugin/Contents/Server Plugin/pywapi.py", line 179, in get_weather_from_google
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 124, in urlopen
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 387, in open
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 498, in http_response
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 425, in error
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 360, in _call_chain
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 506, in http_error_default
<class 'urllib2.HTTPError'>: HTTP Error 403: Forbidden

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

Posted on
Mon May 06, 2013 3:44 pm
ddavis1086 offline
Posts: 6
Joined: Apr 29, 2013

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Hello.

I am currently evaluating Indigo and downloaded ver 6 for testing.
I know your Plugin says (for Indigo 5) but I tried in anyway.

I get the following in the log and it does not run correctly. Is there going to be an update so I can test it with the Ver 6 demo?
Thank you creating this. It looks really useful.


May 6, 2013 4:35:26 PM
WebServer Displaying Weather Forecast & Conditions
WebServer internal server error "http://127.0.0.1:8176/Weather-Conditions/" from 127.0.0.1
WebServer

Request Headers:
X-PURPOSE: preview
HOST: 127.0.0.1:8176
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13
CONNECTION: keep-alive
Remote-Addr: 127.0.0.1
ACCEPT-LANGUAGE: en-us
ACCEPT-ENCODING: gzip, deflate

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/cherrypy/_cprequest.py", line 609, in respond
cherrypy.response.body = self.handler()
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/plugins/Weather-Conditions/reqhandler.py", line 80, in index
data_file = open(static_webpage_root+"pickled_data",'r')
IOError: [Errno 2] No such file or directory: '/library/Application Support/Perceptive Automation/Indigo 5/IndigoWebServer/plugins/Weather-Conditions/pickled_data'

Posted on
Wed May 22, 2013 11:12 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

ddavis1086 wrote:
Hello.

I am currently evaluating Indigo and downloaded ver 6 for testing.
I know your Plugin says (for Indigo 5) but I tried in anyway.

I get the following in the log and it does not run correctly. Is there going to be an update so I can test it with the Ver 6 demo?
Thank you creating this. It looks really useful.


At this point, I am not updating Weather Conditions. It doesn't support State conditions, so you can't write a trigger off of the changes.
But the biggest issue, is that Google shutdown their weather feed. Yes, Weather Underground still works, but at this point the code needs a significant rewrite.

I probably will spend the time to rewrite it, but I can't support the code in the form that it is in for now.

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jun 15, 2013 3:18 pm
bluepine offline
Posts: 25
Joined: Jun 08, 2013

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Hey Ben

Nice work on the plugin. Seems to be working great in Indigo 6.

Posted on
Fri Aug 23, 2013 11:51 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

casagold wrote:
I figured it out. I didn't follow the instructions properly. I copied the IWS folder and all of it's contents to /IndigoWebServer/plugins rather than just the Weather-Conditions folder. Hope I didn't waste too much of your time. Thanks.


Ha. I read this thread and the instructions before installing the plugin and *still* made the exact same mistake.

Excellent plugin Benjamin! Thanks for sharing it.

In trying to fix the above log error though, I'm stuck. The plugin is looking to write to:
~/library/Application Support/Perceptive Automation/Indigo 5/IndigoWebServer/plugins/Weather-Conditions/pickled_data

but I think my path should be:
~/library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/plugins/Weather-Conditions/pickled_data

UPDATE:
From the "you're making it way more complicated than it is" department, it occurred to me that I could simply create the path I needed. Problem solved. Duh.

[facepalm]
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Who is online

Users browsing this forum: No registered users and 1 guest