NOAA Weather Plug-in

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
weisswriter
Posts: 14
Joined: Thu Jun 14, 2012 3:17 pm

Re: NOAA Weather Plug-in

Post by weisswriter »

I wish. I'm in the "Knows just enough to be dangerous to himself and others" category. We'd want such a plug-in to work, not to permanently incapacitate any Indigo it touched!!
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plug-in

Post by nsheldon »

Okay, it took a bit of time to get right (being my first ever plugin and all), but check out the NOAA Weather Plus plugin here. Maybe it'll address some of forecast stuff you're looking for.
weisswriter
Posts: 14
Joined: Thu Jun 14, 2012 3:17 pm

Re: NOAA Weather Plug-in

Post by weisswriter »

Yea, NSheldon! I've just downloaded it and will install and play.

THANKS!
weisswriter
Posts: 14
Joined: Thu Jun 14, 2012 3:17 pm

NOAA Weather Plug-in location validation problem

Post by weisswriter »

I'm getting an "error validating fields" reply no matter what goes into the lat/long fields. It came up with numbers in it (and they were correct - I know my lat/long). When I tried to save, it generated the error message. I then hit the "Find my location" button, which produced numbers with 15 or so decimal points of precision. But the dialog rejected that, too.

It says "Hover over the red field labels above to see the error reason," but none of the labels are red.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plug-in location validation problem

Post by nsheldon »

weisswriter wrote:I'm getting an "error validating fields" reply no matter what goes into the lat/long fields. It came up with numbers in it (and they were correct - I know my lat/long). When I tried to save, it generated the error message. I then hit the "Find my location" button, which produced numbers with 15 or so decimal points of precision. But the dialog rejected that, too.

It says "Hover over the red field labels above to see the error reason," but none of the labels are red.
Could you paste in the Indigo log for the time period where you got that error? I did a fair amount of testing to try to avoid errors and haven't encountered that problem (yet).
weisswriter
Posts: 14
Joined: Thu Jun 14, 2012 3:17 pm

Re: NOAA Weather Plug-in

Post by weisswriter »

Here's the relevant part of the log


2012-06-23 16:46:17 Application Installing and enabling plugin "NOAA Weather Plus" v1.0.1
2012-06-23 16:46:17 Application Loading plugin "NOAA Weather Plus 1.0.1"
2012-06-23 16:46:17 Application Starting plugin "NOAA Weather Plus 1.0.1" (pid 72907)
2012-06-23 16:46:17 Application Plugin "NOAA Weather Plus" connected
2012-06-23 16:46:18 Application Plugin "NOAA Weather Plus 1.0.1" started
2012-06-23 16:48:41 Weather Google GetXMLfile: File URL Access Scripting.app wasn’t found. (-43)
2012-06-23 16:49:25 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 16:49:27 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 16:49:43 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 16:50:59 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 16:52:29 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 16:52:32 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 16:52:32 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 16:52:33 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 16:58:41 Weather Google GetXMLfile: File URL Access Scripting.app wasn’t found. (-43)
2012-06-23 17:07:27 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 17:07:28 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 17:08:41 Weather Google GetXMLfile: File URL Access Scripting.app wasn’t found. (-43)
2012-06-23 17:18:41 Weather Google GetXMLfile: File URL Access Scripting.app wasn’t found. (-43)
2012-06-23 17:28:41 Weather Google GetXMLfile: File URL Access Scripting.app wasn’t found. (-43)
2012-06-23 17:38:41 Weather Google GetXMLfile: File URL Access Scripting.app wasn’t found. (-43)
2012-06-23 17:38:53 NOAA Weather Plus Error Error in plugin execution ServerAddedElem:

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 5/IndigoPluginHost.app/Contents/PlugIns/plugin_base.py", line 703, in deviceCreated
File "plugin.py", line 80, in deviceStartComm
File "plugin.py", line 109, in update
<type 'exceptions.KeyError'>: key lat not found in dict

2012-06-23 17:39:48 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 17:40:05 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 17:40:07 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'
weisswriter
Posts: 14
Joined: Thu Jun 14, 2012 3:17 pm

Re: NOAA Weather Plug-in

Post by weisswriter »

I quit and restarted Indigo. Same problem. Log says


Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 17:47:22 Application Reloading plugin "NOAA Weather Plus 1.0.1"
2012-06-23 17:47:22 Application Stopping plugin "NOAA Weather Plus 1.0.1" (pid 72907)
2012-06-23 17:47:22 Application Plugin "NOAA Weather Plus" disconnected
2012-06-23 17:47:22 Application Starting plugin "NOAA Weather Plus 1.0.1" (pid 74927)
2012-06-23 17:47:22 Application Plugin "NOAA Weather Plus" connected
2012-06-23 17:47:22 Application Plugin "NOAA Weather Plus 1.0.1" started
2012-06-23 17:47:22 NOAA Weather Plus Error exception in deviceStartComm(Wx): 'key lat not found in dict'
2012-06-23 17:48:02 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'

2012-06-23 17:48:27 Application Indigo Cocoa client disconnected
2012-06-23 17:48:31 Application Indigo Cocoa client connected
2012-06-23 17:48:41 Weather Google GetXMLfile: File URL Access Scripting.app wasn’t found. (-43)
2012-06-23 17:48:41 NOAA Weather Plus Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 851, in validateDeviceConfigUi
<type 'exceptions.AttributeError'>: 'float' object has no attribute 'encode'
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plug-in

Post by nsheldon »

Thanks for the quick reply. Yep. Looks like a bug. I'll try to get they fixed quick. Odd I hadn't encountered it.
weisswriter
Posts: 14
Joined: Thu Jun 14, 2012 3:17 pm

Re: NOAA Weather Plug-in

Post by weisswriter »

Odd I hadn't encountered it.

I have a long history of creating bugs where no bug has gone before!

For whatever it's worth, I'm running Indigo on a 27 inch iMac, OSX 10.7.4
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plug-in

Post by nsheldon »

Okay, I couldn't reproduce the error, but I found the code that was generating it and made a few changes that will hopefully correct the error. Give this version a try and let me know if it works or not. If it does, I'll update the link in the main NOAA Weather Plus announcement thread.
weisswriter
Posts: 14
Joined: Thu Jun 14, 2012 3:17 pm

Re: NOAA Weather Plug-in

Post by weisswriter »

It works perfectly. Good fix.

Now I have to do some reading and figure out how to incorporate the data I need into an instruction/condition for the irrigation system.

THANKS!
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plug-in

Post by nsheldon »

Awesome! Glad it works.
eme jota ce
Posts: 655
Joined: Thu Jul 09, 2009 1:25 pm
Location: SW Florida

Re: NOAA Weather Plug-in

Post by eme jota ce »

Trying to get data from station ID 8725110, which provides the following weather data types:
Primary Water Level
Backup Water Level
Air Temperature
Water Temperature
Wind
Barometric Pressure

Not able to add this station in the NOAA plugin. Any suggestions?
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: NOAA Weather Plug-in

Post by jay (support) »

The built-in NOAA Weather plugin only supports stations found on this site. The 3rd party NOAA Weather Plus plugin may work for you.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
eme jota ce
Posts: 655
Joined: Thu Jul 09, 2009 1:25 pm
Location: SW Florida

Re: NOAA Weather Plug-in

Post by eme jota ce »

jay (support) wrote:.... The 3rd party NOAA Weather Plus plugin may work for you.
Thanks Jay. I had tried the NOAA Weatherplus plugin before posting. It's useful in a lot of other ways, but seems to provide weather data based solely upon longitude and latitude, not NOAA weather station ID number / code.

EDIT: This station is on the list you provided, NPSF1. On the NOAA site, it shows water temperature. It there a way to get the water temp value into Indigo via the plugin?
Locked

Return to “Extending Indigo with Plugins and Python”