NOAA Weather Plus discussions

Plug-ins, scripts, and other software to improve your home automation experience.
CraigM
Posts: 677
Joined: Sun Oct 28, 2007 7:01 pm

Re: NOAA Weather Plus discussions

Post by CraigM »

nsheldon wrote:Could you turn on debugging and reload the plugin then copy and paste the log into a post? I need to know what URL the plugin is using to get the data.

Code: Select all

NOAA Weather Plus               Debug logging enabled
  Reloading plugin "NOAA Weather Plus 1.1.1"
  Stopping plugin "NOAA Weather Plus 1.1.1" (pid 14746)
  NOAA Weather Plus Debug         Stopping device: Weather [NOAA Plus]
  Plugin "NOAA Weather Plus" disconnected
  Starting plugin "NOAA Weather Plus 1.1.1" (pid 18146)
  Plugin "NOAA Weather Plus" connected
  NOAA Weather Plus Debug         Initializing Plugin.
  Plugin "NOAA Weather Plus 1.1.1" started
  NOAA Weather Plus Debug         Starting device: Weather [NOAA Plus]
  NOAA Weather Plus Debug         Updating weather for device: Weather [NOAA Plus]
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] using URL http://forecast.weather.gov/MapClick.php?FcstType=dwml&lat=33.6267&lon=-116.1594
  NOAA Weather Plus Debug         Attempt # 1 at downloading and parsing weather data.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] reading returned weather data.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] parsing weather XML data.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] locating "data" elements in XML.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] found forecast data.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] found current observation data.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] looking for observation location coordinate data.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] found latitude 33.62667, longitude -116.15944.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] looking for observation time.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] observation time listed is "2012-08-30T13:52:00."
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] observation time (after formatting): 2012-08-30 13:52:00.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] current condition element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] current condition found is .
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] current condition is blank. Seting to .
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] current condition is unavailable. Checking alternate data source.
  NOAA Weather Plus Debug         getAlternateData called. Looking for a station at coordinates 33.63, -116.16.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] downloading weather station list from http://w1.weather.gov/xml/current_obs/index.xml
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] reading returned weather station list file.
  NOAA Weather Plus Debug         Closing station list file.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] parsing weather station list XML data.
  NOAA Weather Plus Debug         Searching for stations with the same latitude and longitude.
  NOAA Weather Plus Debug         getAlternateData: Data returned: {}
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] current condition icon element found.
  NOAA Weather Plus Debug         current condition icon URL: http://forecast.weather.gov/images/wtf/medium/sct.png
  NOAA Weather Plus Debug         current condition icon now: sct.png
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] current temperature (F) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] current temperature (C) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] relative humidity element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] dew point (F) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] dew point (C) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] heat index (F) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] heat index (C) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] visibility element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] wind direction element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] wind direction degrees element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] wind speed (knots) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] wind speed (MPH) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] gust wind speed (knots) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] gust wind speed (MPH) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] wind chill (F) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] wind chill (C) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] pressure (inches Hg) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] pressure (millibars) element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] location element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] latitude element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] longitude element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] elevation element found.
  NOAA Weather Plus Debug         Current condition processing complete.
  NOAA Weather Plus Debug         Beginning forecast data processing.
  NOAA Weather Plus Debug         Getting forecast time layout data.
  NOAA Weather Plus Debug         Getting forecast URL element.
  NOAA Weather Plus Debug         Putting the time layout into a multi-dimensional list.
  NOAA Weather Plus Debug         Getting forecast elements.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] forecast location element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] forecast latitude element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] forecast longitude element found.
  NOAA Weather Plus Debug         Device Weather [NOAA Plus] forecast elevation element found.
  NOAA Weather Plus Debug         Getting probability of precipitation data.
  NOAA Weather Plus Debug         Getting time layout for PoP data.
  NOAA Weather Plus Debug         Time layout is "k-p12h-n15-1".
  NOAA Weather Plus Debug         Found matching layout in time layout list.
  NOAA Weather Plus Debug         Looping through each PoP element.
  NOAA Weather Plus Debug         Getting forecast condition elements.
  NOAA Weather Plus Debug         Getting forecast condition icon elements.
  NOAA Weather Plus Debug         Getting worded forecast elements.
  NOAA Weather Plus Debug         Getting the time layout for weather conditions.
  NOAA Weather Plus Debug         Found matching layout in time layout list.
  NOAA Weather Plus Debug         Looping through each forecast condition time element.
  NOAA Weather Plus Debug         Looking through forecast period name elements for the current period.
  NOAA Weather Plus Debug         Looping through each forecast condition element.
  NOAA Weather Plus Debug         Looping through each forecast condition icon element.
  NOAA Weather Plus Debug         Looping through each worded forecast element.
  NOAA Weather Plus Debug         Getting forecasted hazardouns weather advisory elements.
  NOAA Weather Plus Debug         Getting the time layout for hazardous weather advisory elements.
  NOAA Weather Plus Debug         Looking through time layout for weather advisory layouts.
  NOAA Weather Plus Debug         Found matching layout in time layout list for 1st weather advisory.
  NOAA Weather Plus Debug         Found matching layout in time layout list for 2nd weather advisory.
  NOAA Weather Plus Debug         Found matching layout in time layout list for 3rd weather advisory.
  NOAA Weather Plus Debug         Looping through each hazard (weather advisory) element.
  NOAA Weather Plus Debug         Weather advisory 1: Severe Thunderstorm Warning
  NOAA Weather Plus Debug         Start time: 2012-08-30 16:00:00, End time: 2012-09-06 18:00:00
  NOAA Weather Plus Debug         Weather advisory 2: Flash Flood Warning
  NOAA Weather Plus Debug         Start time: 2012-08-30 16:00:00, End time: 2012-09-06 18:00:00
  NOAA Weather Plus Debug         Weather advisory 3: Flash Flood Watch
  NOAA Weather Plus Debug         Start time: 2012-08-30 16:00:00, End time: 2012-09-06 18:00:00
  NOAA Weather Plus Debug         Weather advisory 4: Hazardous Weather Outlook
  NOAA Weather Plus Debug         Start time: 2012-08-30 16:00:00, End time: 2012-09-06 18:00:00
  NOAA Weather Plus Error         exception in deviceStartComm(Weather [NOAA Plus]): 'key weatherAdvisory4Text not found in dict'
  NOAA Weather Plus Debug         Starting concurrent tread
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plus discussions

Post by nsheldon »

Cool! Thanks. Yep. Looks like a bug in how the plugin gathers hazardous weather advisories. I'll work on fixing that. Shouldn't take too long.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plus discussions

Post by nsheldon »

Okay. Try this version (1.1.2) out. The problem was the code wasn't properly checking for cases where there might be more than 3 hazardous weather advisories (the most currently supported by the plugin's device states) and was trying to insert data into a 4th weatherAdvisory device state (that doesn't exist).
CraigM
Posts: 677
Joined: Sun Oct 28, 2007 7:01 pm

Re: NOAA Weather Plus discussions

Post by CraigM »

Here's another:

Code: Select all

Sep 2, 2012 2:11:00 PM
 Weather [NOAA Plus]             Warning: Error while attempting to determine source for alternate NOAA data. 'NoneType' object has no attribute 'getElementsByTagName'
  NOAA Weather Plus Error         Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 169, in runConcurrentThread
  File "plugin.py", line 381, in update
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'getElementsByTagName'

  NOAA Weather Plus Error         plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plus discussions

Post by nsheldon »

Yep. Actually saw that one in my own logs last night. I'll post a fix soon.
CraigM
Posts: 677
Joined: Sun Oct 28, 2007 7:01 pm

Re: NOAA Weather Plus discussions

Post by CraigM »

Another:

Code: Select all

Weather [NOAA Plus]             Warning: Error while attempting to determine source for alternate NOAA data. 'NoneType' object has no attribute 'getElementsByTagName'
  NOAA Weather Plus Error         exception in deviceStartComm(Weather [NOAA Plus]): 'NoneType' object has no attribute 'getElementsByTagName'
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plus discussions

Post by nsheldon »

Hi Craig.

Thanks for all the feedback. That second error is almost certainly caused by the same bug as in the first error.

I've posted version 1.1.3 which should fix both. Try that one out.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plus discussions

Post by nsheldon »

Patch update 1.1.4 released:

Download version 1.1.4 here

Changes Since Version 1.1.3

Fixed bug that caused the observation time from the primary data source to always appear to be blank.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plus discussions

Post by nsheldon »

Just to keep those watching this thread informed, a little over a week ago, I was informed by the NOAA Information Technology Officer I've been communicating with (and confirmed for myself) that the data feed used by NOAA Weather Plus now contains the current condition information like it did before their system overhaul. I've confirmed that it does indeed contain that information for my location and for one or two of the locations you folks have reported to have blank data. Some locations will still not have current condition data because NOAA does not collect it at some locations, but all the locations that used to have current condition information but stopped reporting it over a month ago should now be showing that information now.
CraigM
Posts: 677
Joined: Sun Oct 28, 2007 7:01 pm

Re: NOAA Weather Plus discussions

Post by CraigM »

Just got this

Code: Select all

Sep 17, 2012 9:12:44 PM
  Weather [NOAA Plus]             Warning: Error while attempting to determine source for alternate NOAA data. 'NoneType' object has no attribute 'getElementsByTagName'
  Weather [NOAA Plus]             Observation time is unavailable or blank. Obtaining data from alternate source.
  NOAA Weather Plus Error         Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 178, in runConcurrentThread
  File "plugin.py", line 426, in update
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'getElementsByTagName'

  NOAA Weather Plus Error         plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plus discussions

Post by nsheldon »

Patch update 1.1.5 released:

Download here.

Changes Since Version 1.1.4

Fixed a bug that caused an error if the moreWeatherInformation data did not exist in the data feed.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plus discussions

Post by nsheldon »

Patch update 1.1.6 released:

Download here.

Changes Since Version 1.1.5

Fixed a bug that would cause the runConcurrentThread to exit unexpectedly if the URL for the data was unreachable.
User avatar
davvi
Posts: 110
Joined: Tue Sep 27, 2011 8:06 pm
Location: Austin, TX
Contact:

Re: NOAA Weather Plus discussions

Post by davvi »

Since updating to 1.1.8, I get this error every a few times a day:

NOAA Weather Plus Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 190, in runConcurrentThread
File "plugin.py", line 1232, in update
File "plugin.py", line 1648, in updateDeviceState
<type 'exceptions.KeyError'>: 'key probOfPrecipTonight not found in dict'

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



After enabling debugging and reloading, I got this message:

NOAA Weather Plus Error exception in deviceStartComm(Weather Plus): 'key probOfPrecipTonight not found in dict'

I don't have any triggers monitoring probOfPrecipTonight to insert into variables. Any ideas on how to fix it?
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: NOAA Weather Plus discussions

Post by nsheldon »

Hi davvi.

That is very odd. That line of code in the plugin.py file is checking the contents of the "probOfPrecipTonight" state in your Weather Plus device. That state should already exist. What version of NOAA Weather Plus did you have installed prior to upgrading to 1.1.8?

To fix it, you might try re-defining the Weather Plus device in Indigo. Double-click on the Weather Plus device, then click on "Edit Device Settings...". Change one of the coordinates just a little (e.g. my Latitude is 36.836 and I changed it to 36.835 to test this). Click the Save button. NOAA Weather Plus will verify the coordinates entered, then update the device properties. Close the device settings window. If that doesn't fix it, you might need to delete the Weather Plus device altogether and create a new Weather Plus device. The reason I say that is because the error you're getting indicates that the "probOfPrecipTonight" state doesn't exist in your Weather Plus device, but the "probOfPrecipTonight" state has existed in all NOAA Weather Plus devices created since version 1.1.0. If your device was created with an earlier version, you may have to delete it and create a new one. Let me know if either of those two solutions work or not.
User avatar
davvi
Posts: 110
Joined: Tue Sep 27, 2011 8:06 pm
Location: Austin, TX
Contact:

Re: NOAA Weather Plus discussions

Post by davvi »

Thank you for looking into it. I removed the plugin then reinstalled it, and haven't gotten an error since.
Post Reply

Return to “Nathan Sheldon Software”