NOAA Weather Plus discussions

Posted on
Mon Dec 22, 2014 3:45 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Okay.. First, it's not a problem I can fix. It's one of the XML data files the NOAA Weather Plus plugin obtains from NOAA that's causing the problem. I'm seeing the same warning in my Indigo log. Here's what's happening.

  1. NOAA Weather Plus obtains the current condition and forecast data from NOAA based on the latitude and longitude coordinates in your Weather Locale device settings.
  2. It goes through each of the current condition parameters in the XML output from NOAA one-by-one, adding the values it finds to the device states.
  3. When NOAA Weather Plus encounters a condition that is blank (such as heat index or wind speed, as seen in the above debug log output), it tries to obtain that data from an alternate data source at NOAA. This involves downloading a 2nd XML file containing NOAA's list of every weather station in the US and their corresponding latitude/longitude coordinates, then matching the coordinates of your Weather Locale device with a NOAA weather station. If it finds a nearby weather station, it obtains a 3rd XML file for that specific weather station and attempts to locate the missing weather condition data from that file instead of the 1st XML file.
  4. What's happening is NOAA Weather Plus encounters missing data in the 1st XML file, so it begins the search for the data in the alternate data source. It downloads the 2nd XML file, the one that's supposed to contain all the weather stations and their coordinates, and finds that it's formatted incorrectly and cannot be processed. That's when it shows those warning messages in the log.

So, essentially, we've all got to wait until NOAA fixes the 2nd XML file before we're rid of the warning messages in out Indigo log. It may take a few days, especially given the upcoming holiday break.

Posted on
Mon Dec 22, 2014 12:43 pm
eric offline
Posts: 59
Joined: Dec 22, 2014

Re: NOAA Weather Plus discussions

Hi,

New to this forum and just starting to use this plugin.

So that I could make conditionals based on current conditions (in this case Rain) I have been searching for a comprehensive list of text strings that NOAA uses for its current conditions to no avail. I could not find them anywhere on the forum, wikis etc but I am sure they are in plain sight somewhere and I just missed them!

I finally found them here, for anyone who is looking for a list of all the possibilities:

http://w1.weather.gov/xml/current_obs/weather.php

It looks like they are all in Title Case. I'm not sure if the conditionals in Indigo are case sensitive, but I assume so.

Posted on
Mon Dec 22, 2014 3:50 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Welcome to Indigo home automation. Thanks for sharing the link.

Yes, you're correct. In almost all cases, comparisons in Indigo are case sensitive.

Posted on
Mon Jan 12, 2015 3:40 pm
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: NOAA Weather Plus discussions

nsheldon wrote:
Patch update 1.1.9 released:

Added Water Temperature device states for NOAA weather stations located at sea.
Improved Data interpretation from NOAA weather stations located at sea.


I've lost the water temperature data in the plugin. Input the long / lat from the NOAA page for the station Station NPSF1 - 8725110.

Any suggestions?

Posted on
Mon Jan 12, 2015 4:19 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

It's likely that NOAA's server or the station temporarily stopped providing that data in the XML data feed. This happens often, especially, it seems, over the weekends when they either do system maintenance or stop maintaining the weather station. This is all my own speculation, though, based on observations over the years. Your specific issue may be the result of something different. If you paste in the debug logs into your reply it might be easier to tell from where the problem originates.

Posted on
Tue Jan 13, 2015 6:05 am
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: NOAA Weather Plus discussions

nsheldon wrote:
It's likely that NOAA's server or the station temporarily stopped providing that data in the XML data feed. This happens often, especially, it seems, over the weekends when they either do system maintenance or stop maintaining the weather station. This is all my own speculation, though, based on observations over the years. Your specific issue may be the result of something different. If you paste in the debug logs into your reply it might be easier to tell from where the problem originates.


Thanks for your thoughts and the quick reply.

It's been having this trouble for (probably) two weeks or more. Also, in the Custom States window of the NOAA Weather Plus device, there are many states defined, but nothing appears to include water or water temp.

Here's the debug report, with the log error highlighted in red.

Thanks again for this great plugin and willingness to help.

Starting plugin "NOAA Weather Plus 1.1.16" (pid 98060)
NOAA Weather Plus Debug Initializing Plugin.
Started plugin "NOAA Weather Plus 1.1.16"
NOAA Weather Plus Debug Starting device: NOAA Naples PIer
NOAA Weather Plus Debug Updating weather for device: NOAA Naples PIer
NOAA Weather Plus Debug Device NOAA Naples PIer using URL http://forecast.weather.gov/MapClick.ph ... on=-81.807
NOAA Weather Plus Debug Attempt # 1 at downloading and parsing weather data.
NOAA Weather Plus Debug Device NOAA Naples PIer reading returned weather data.
NOAA Weather Plus Debug Device NOAA Naples PIer parsing weather XML data.
NOAA Weather Plus Debug Device NOAA Naples PIer locating "data" elements in XML.
NOAA Weather Plus Debug Device NOAA Naples PIer looking for observation location coordinate data.
NOAA Naples PIer Warning: Error while attempting to determine source for alternate NOAA data. 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer looking for observation time.
NOAA Weather Plus Debug Exception encountered trying to obtain observation time: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Naples PIer Observation time is unavailable or blank. Obtaining data from alternate source.
NOAA Weather Plus Debug Device NOAA Naples PIer observation time (after formatting): .
NOAA Weather Plus Debug Device NOAA Naples PIer observastion time blank. Setting to .
NOAA Naples PIer Warning: Error obtaining the more weather info URL from the data feed. 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer current condition element found.
NOAA Weather Plus Debug Device NOAA Naples PIer current condition is blank. Seting to .
NOAA Weather Plus Debug Device NOAA Naples PIer current condition is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer current condition icon element found.
NOAA Weather Plus Debug current condition icon could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer current condition icon is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer current temperature (F) element found.
NOAA Weather Plus Debug current temperature (F) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer temperature (F) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer current temperature (C) element found.
NOAA Weather Plus Debug current temperature (C) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer current temperature (C) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer relative humidity element found.
NOAA Weather Plus Debug relative humidity could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer humidity is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer dew point (F) element found.
NOAA Weather Plus Debug dew point (F) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer dew point (F) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer dew point (C) element found.
NOAA Weather Plus Debug dew point (C) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer dew point (C) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer heat index (F) element found.
NOAA Weather Plus Debug heat index (F) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer heat index (F) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer heat index (C) element found.
NOAA Weather Plus Debug heat index (C) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer heat index (C) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer current water temperature (F) element found.
NOAA Weather Plus Debug water temperature (F) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer temperature (F) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer current water temperature (C) element found.
NOAA Weather Plus Debug water temperature (C) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer current temperature (C) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer visibility element found.
NOAA Weather Plus Debug visibility could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer visibility is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer wind direction element found.
NOAA Weather Plus Debug wind direction could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer wind direction is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer wind direction degrees element found.
NOAA Weather Plus Debug wind direction degrees could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer wind direction degrees are unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer wind speed (knots) element found.
NOAA Weather Plus Debug wind speed (knots) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer wind speed (knots) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer wind speed (MPH) element found.
NOAA Weather Plus Debug wind speed (MPH) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer wind speed (MPH) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer gust wind speed (knots) element found.
NOAA Weather Plus Debug gust wind speed (knots) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer gust wind speed (MPH) element found.
NOAA Weather Plus Debug gust wind speed (MPH) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer wind chill (F) element found.
NOAA Weather Plus Debug wind chill (F) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer wind chill (C) element found.
NOAA Weather Plus Debug wind chill (C) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer pressure (inches Hg) element found.
NOAA Weather Plus Debug pressure (inches Hg) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer pressure (inches) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer pressure (millibars) element found.
NOAA Weather Plus Debug pressure (millibars) could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer pressure (millibars) is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer location element found.
NOAA Weather Plus Debug location could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer location is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer latitude element found.
NOAA Weather Plus Debug latitude could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer latitude is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer longitude element found.
NOAA Weather Plus Debug longitude could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Device NOAA Naples PIer longitude is unavailable. Checking alternate data source.
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Device NOAA Naples PIer elevation element found.
NOAA Weather Plus Debug elevation could not be found. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug updateDeviceState called.
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 Unable to obtain forecast time layout data. Error was: 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Getting forecast URL element.
NOAA Naples PIer Warning: Error obtaining the forecast info URL from the data feed. 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug updateDeviceState called.
NOAA Weather Plus Debug Putting the time layout into a multi-dimensional list.
NOAA Weather Plus Debug Getting forecast elements.
NOAA Weather Plus Error exception in deviceStartComm(NOAA Naples PIer): 'NoneType' object has no attribute 'getElementsByTagName'
NOAA Weather Plus Debug Starting runConcurrentThread.

Posted on
Tue Jan 13, 2015 10:52 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Thanks for the detailed debug log. As I feared, NOAA's servers are not providing the correct data. Note the URL in the 6th line from the top of the log you posted. That URL is supposed to obtain the XML data used by the NOAA Weather Plus plugin to populate all the device states. But if you try to go to that URL, you get a "page cannot be found" error. So something has changed with their system, at least for that location. When viewing the same page using my (on land) latitude and longitude coordinates, the XML is provided right away instead of the "not found" page. I've sent an email to the "Contact Us" address on NOAA's forecast.weather.gov web page reporting the broken URL. Hopefully they'll be able to track down the issue and resolve it, but I wouldn't hold my breath waiting for them. :-) I'll let you know if/when I receive a reply from them.

Posted on
Tue Jan 13, 2015 11:16 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: NOAA Weather Plus discussions

Nathan,
I have a similar in dallas with local NOAA station.
http://forecast.weather.gov/MapClick.ph ... on=-96.791

NOAA Weather Plus Error Unknown error getting weather for coordinates 32.865, -96.791: <urlopen error timed out>
NOAA Weather Plus Error Unknown error getting weather for coordinates 32.865, -96.791: <urlopen error timed out>
NOAA Weather Plus Error Unknown error getting weather for coordinates 32.865, -96.791: <urlopen error timed out>

but I get something back:

<dwml xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:noNamespaceSchemaLocation="http://graphical.weather.gov/xml/DWMLgen/schema/DWML.xsd">
<head>
<product concise-name="dwmlByDay" operational-mode="developmental" srsName="WGS 1984">
<creation-date refresh-frequency="PT1H">2015-01-13T02:55:20-06:00</creation-date>
<category>current observations and forecast</category>
</product>
<source>
<production-center>Dallas/Fort Worth, TX</production-center>
<credit>http://www.srh.noaa.gov/fwd</credit>
<more-information>http://www.nws.noaa.gov/forecasts/xml/</more-information>
</source>
</head>
<data type="forecast">
<location>
<location-key>point1</location-key>
<description>University Park, TX</description>
<point latitude="32.87" longitude="-96.78"/>
<city state="TX">University Park</city>
<height datum="mean sea level">607</height>
</location>
<moreWeatherInformation applicable-location="point1">
http://forecast.weather.gov/MapClick.ph ... lon=-96.78
</moreWeatherInformation>
<time-layout time-coordinate="local" summarization="12hourly">
<layout-key>k-p12h-n13-1</layout-key>
<start-valid-time period-name="This Afternoon">2015-01-13T12:00:00-06:00</start-valid-time>
<start-valid-time period-name="Tonight">2015-01-13T18:00:00-06:00</start-valid-time>
<start-valid-time period-name="Wednesday">2015-01-14T06:00:00-06:00</start-valid-time>
<start-valid-time period-name="Wednesday Night">2015-01-14T18:00:00-06:00</start-valid-time>
<start-valid-time period-name="Thursday">2015-01-15T06:00:00-06:00</start-valid-time>
<start-valid-time period-name="Thursday Night">2015-01-15T18:00:00-06:00</start-valid-time>
<start-valid-time period-name="Friday">2015-01-16T06:00:00-06:00</start-valid-time>
<start-valid-time period-name="Friday Night">2015-01-16T18:00:00-06:00</start-valid-time>
<start-valid-time period-name="Saturday">2015-01-17T06:00:00-06:00</start-valid-time>
<start-valid-time period-name="Saturday Night">2015-01-17T18:00:00-06:00</start-valid-time>
<start-valid-time period-name="Sunday">2015-01-18T06:00:00-06:00</start-valid-time>
<start-valid-time period-name="Sunday Night">2015-01-18T18:00:00-06:00</start-valid-time>
<start-valid-time period-name="M.L.King Day">2015-01-19T06:00:00-06:00</start-valid-time>
</time-layout>
....


thanks

Karl

Posted on
Tue Jan 13, 2015 11:22 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Hi Karl.

Looks like the problem you're seeing is different than what's happening to em jota ce. The URL for your XML file seems to be working just fine. The "urlopen error timed out" error is something I see every once in a while as well. I believe it's related to some known issues with the urlopen method in Python 2.5 itself and not the web site or the plugin. Because plugins have to use Python 2.5 and cannot use newer versions, I don't currently see any workaround for this other than reloading the plugin (which has worked for me in the past, at least for a while).

Posted on
Tue Jan 13, 2015 11:36 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: NOAA Weather Plus discussions

that message started about started about a month ago. its is every 15 minutes = looks like every time,

I am now on yosemite.. any chance to add that code i.e. = 2 versions switching depending on python version?

Karl

Posted on
Tue Jan 13, 2015 12:29 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Hi Karl.

Yes, 15 minutes is the refresh frequency of the NOAA Weather Plus plugin, so if you're seeing that every 15 minutes, it's every time the plugin attempts to refresh the data. If you could give me the debug logs that appear just before that error appears, that might be helpful, though I can't guarantee I'll be able to fix it.

As for switching to a newer version of Python, it's not dependent on the OS. Indigo itself requires Python 2.5 and was not designed to work with Python versions newer than that. There's a few good reasons for that (namely backward compatibility with older Mac OS X versions and easier plugin code compatibility requirements since each version of Python removes or replaces features from previous versions, thus making some version 2.5 code incompatible with 2.6 or newer code). So unfortunately, I can't use a different version of Python. It may be possible to use a different URL retrieval method other than the built-in one, but that would likely require a significant code overhaul for which I'm not sure I have the time. In any case, let's look at the debug logs and see what we can find.

Posted on
Tue Jan 13, 2015 3:41 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: NOAA Weather Plus discussions

There are no entries from noaa besides these.

When running in Yosemite it is using Python 2.6.


Sent from my iPhone using Tapatalk



[EDIT]
in open shell in indigo:

>>> import sys
>>> sys.version_info
(2, 6, 9, 'final', 0)
>>>

Posted on
Tue Jan 13, 2015 4:13 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Right you are. I stand corrected.

However, as I'm using Yosemite myself (10.10.1) and am not seeing this error more than once every few weeks, I suspect there might be more to your encounter of the error than a Python bug. I'd like to see debug logs leading up to that error from your system if possible. Again, I can't guarantee I'll be able to fix it as in the past it's been an exceptionally illusive bug which I cannot seem to intentionally reproduce, but seeing the logs might help.

Posted on
Tue Jan 13, 2015 4:18 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: NOAA Weather Plus discussions

is the repairman thing, when he is in the house the error does not occur.. will enable debug and wait for error

Posted on
Tue Jan 13, 2015 7:15 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: NOAA Weather Plus discussions

Getting the following error... is there a way to hard code the alternative location in? I fear I may be too remote for it to find anything :/

Code: Select all
  NOAA Weather Plus Error         HTTP error getting weather information from alternate NOAA source: HTTP Error 404: Not Found

Who is online

Users browsing this forum: No registered users and 2 guests