Page 2 of 6

Re: Weather.com Plug-in

Posted: Fri Oct 14, 2011 6:06 pm
by Richard Naninck
it would also give you rss and other media like photo's, movies, trailers etc

Re: Weather.com Plug-in

Posted: Sat Oct 22, 2011 6:49 am
by Richard Naninck
By looking at this text, an API should become available so maybe you can get your data through this API.

http://www.domoticaforum.eu/viewtopic.php?f=10&t=6810

Re: Weather.com Plug-in

Posted: Sat Oct 22, 2011 8:27 am
by Steve Horn
The API? $182/month for a single city, based on a typical (somewhat conservative) set of data desired. :(

Re: Weather.com Plug-in

Posted: Sat Oct 22, 2011 11:01 am
by Richard Naninck
Wow didn't know it was that expensive. Then disregard all after good morning :oops:

Re: Weather.com Plug-in

Posted: Sat Oct 22, 2011 1:06 pm
by Steve Horn
Yup, hence my desire to get the Osler web browser functionality working.

Re: Weather.com Plug-in

Posted: Sun Oct 23, 2011 7:48 am
by markd
Isn't the NOAA feed available in XML? I took a quick look at it- it seems to be free. Not sure how friendly it is though. I did find this website too-

http://phpstarter.net/2008/12/5-sources ... your-site/

and this page there-

http://phpstarter.net/2009/02/parse-wea ... fd-in-php/

Anybody ever do SOAP in HB or vbscripts??

Re: Weather.com Plug-in

Posted: Sun Oct 23, 2011 10:36 am
by Steve Horn
Certainly promising, more elegant than grabbing and throwing up a web page in a browser panel (my Plan B). And free.

edit: Monday 10/24: After looking over a lot of the info at http://graphical.weather.gov/xml, it looks like one could avoid using (i.e. learning, in my case) SOAP by "just" passing the desired parms as part of the URL string. For current conditions, it would seem to be a simple mod to the existing weather vbscript to parse the now different XML tags. For forecast data, it may be a bigger deal depending upon how much data you want returned. But in its simplest form, asking for the "Glance" view instead of the time-series data might be the way to go. Still more to study on though, but I think this is the solution to soon-to-disappear WTC data.

Re: Weather.com Plug-in

Posted: Fri Nov 04, 2011 9:54 pm
by edgar
Hi All,

Not sure if i am missing something but Osler's Yahoo script still seems to be working for me for weather.
here it is:

http://www.cebotics.com/forums/viewtopi ... 1&t=856299

Another alternative that works is using the housebot xAP plugin along with xAP Weather.

The National Weather Service has lots of Weather information as well....not sure about worldwide coverage but great for US

Various NOAA text weather from here:
http://weather.noaa.gov/pub/data/forecasts

and experimental mp3s for your region from here (great for playing back)

http://www.erh.noaa.gov/lwx/podcasts/

v/r

Kevin



I also download images from various sources on a timer to get the doppler

Re: Weather.com Plug-in

Posted: Fri Nov 04, 2011 11:55 pm
by Steve Horn
The Weather.com XML feed stopped this afternoon. I have not tried the Osler/Yahoo source, but have collected some raw XML from NOAA for my Lat/Long. Have not written vbscript to parse it yet tho. Was waiting for weather.com to drop... and it did.

Re: Weather.com Plug-in

Posted: Sat Nov 05, 2011 8:46 pm
by markd
I'll parse if you toss me your XML fetch. . .

Re: Weather.com Plug-in

Posted: Sat Nov 05, 2011 10:03 pm
by Steve Horn
markd wrote:I'll parse if you toss me your XML fetch. . .
I can read the XML - I know what it saying. But the NOAA forecast XML is not as straightforward as the weather.com was. The time series min/max temp values "move" based on time of day and I need to figure out the best way to deal with that. Here's an example. http://forecast.weather.gov/MapClick.ph ... tType=dwml Look at the 'layout keys' for the 7 day periods: 'k-p24h-n7-1' and 'k-p24h-n7-1'. Depending on time of day (forecast is updated several times per day), one or the other of those is anywhere from 6 to 8 points, resulting in the min and max daily temps "moving". That is, you can't always go to k-p24h-n7-1 and get the max day temps for example. But I'm early into this and maybe there's an easier way... I was waiting for weather.com to drop before I spent much time on replacing it.

Re: Weather.com Plug-in

Posted: Sat Nov 05, 2011 11:22 pm
by markd
I hear you- I was waiting too. At least the radar pics are still working!

I haven't looked too much at that format- I was thinking maybe this one-

http://graphical.weather.gov/xml/SOAP_s ... mit=Submit

which is simpler, but I was just starting to see how the nodes were going to work- hadn't really looked at the data to understand it. Maybe tomorrow.

Re: Weather.com Plug-in

Posted: Sun Nov 06, 2011 10:42 am
by Osler
This is really annoying. Now I see why my weather has not updated since 11/04/2011.

Last time I looked at NOAA it was a pain in the butt. The XML was constantly changing making it difficult to code something that would not break under certain conditions.

Yahoo would be a better alternative. The only problem, as I recall, was that they don't give as many days in the forecast as weather.com.

I think I have Allan's code for his plug-in somewhere around here (it is also online someplace, too). I think I can rewrite it for yahoo using the same properties and such to minimize theme disruption.

I have been on a coding strike as part of the "Occupy My Couch" movement...I guess the strike is now over.

Osler

Re: Weather.com Plug-in

Posted: Sun Nov 06, 2011 11:25 am
by Steve Horn
The NOAA XML (i.e. "DWML"), at least the link I've been "working" with, should be adaptable, but I've haven't thrown any significant effort into it yet. One time series is always 'today' (or some portion of it) + n days (up to 13). So you can always read the first 7 to 10 days or so and use that data (day label ("Monday"), forecast (rain, sunny, etc., images, actual text))for 'today' on to whatever. The problem I was dealing (or not dealing) with was with the min/max temp series (plural). On the text piece ("Sunny, with a high near 67. East wind between 5 and 10 mph."), I just for fun, plugged one into the HB text-to-speech device and it worked like a champ. Cool, but totally frivolous.

Re: Weather.com Plug-in

Posted: Sun Nov 06, 2011 10:07 pm
by Osler
Ok, this is the XML I have found on the NOAA site that appears to be most workable:

Code: Select all

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
- <dwml version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.nws.noaa.gov/mdl/survey/pgb_survey/dev/DWMLgen/schema/DWML.xsd">
- <head>
- <product concise-name="dwmlByDay" operational-mode="developmental" srsName="WGS 1984">
  <creation-date refresh-frequency="PT1H">2011-11-06T15:43:01-06:00</creation-date> 
  </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>
- <location>
  <location-key>point1</location-key> 
  <description>Flower Mound TX, TX</description> 
  <point latitude="33.02" longitude="-97.1" /> 
  <city state="TX">Flower Mound TX</city> 
  <height datum="mean sea level">600</height> 
  </location>
  <moreWeatherInformation applicable-location="point1">http://forecast.weather.gov/MapClick.php?lat=33.02&lon=-97.1</moreWeatherInformation> 
- <time-layout time-coordinate="local" summarization="12hourly">
  <layout-key>k-p6h-n1-1</layout-key> 
  <start-valid-time>2011-11-06T21:19:00-06:00</start-valid-time> 
  <end-valid-time>2011-11-07T12:00:00-06:00</end-valid-time> 
  </time-layout>
- <time-layout time-coordinate="local" summarization="12hourly">
  <layout-key>k-p6h-n1-2</layout-key> 
  <start-valid-time>2011-11-07T01:55:00-06:00</start-valid-time> 
  <end-valid-time>2011-11-07T04:00:00-06:00</end-valid-time> 
  </time-layout>
- <time-layout time-coordinate="local" summarization="12hourly">
  <layout-key>k-p12h-n14-1</layout-key> 
  <start-valid-time period-name="Tonight">2011-11-06T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Monday">2011-11-07T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Monday Night">2011-11-07T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Tuesday">2011-11-08T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Tuesday Night">2011-11-08T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Wednesday">2011-11-09T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Wednesday Night">2011-11-09T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Thursday">2011-11-10T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Thursday Night">2011-11-10T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Veterans Day">2011-11-11T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Friday Night">2011-11-11T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Saturday">2011-11-12T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Saturday Night">2011-11-12T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Sunday">2011-11-13T06:00:00-06:00</start-valid-time> 
  </time-layout>
- <time-layout time-coordinate="local" summarization="12hourly">
  <layout-key>k-p24h-n7-1</layout-key> 
  <start-valid-time period-name="Tonight">2011-11-06T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Monday Night">2011-11-07T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Tuesday Night">2011-11-08T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Wednesday Night">2011-11-09T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Thursday Night">2011-11-10T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Friday Night">2011-11-11T18:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Saturday Night">2011-11-12T18:00:00-06:00</start-valid-time> 
  </time-layout>
- <time-layout time-coordinate="local" summarization="12hourly">
  <layout-key>k-p24h-n7-2</layout-key> 
  <start-valid-time period-name="Monday">2011-11-07T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Tuesday">2011-11-08T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Wednesday">2011-11-09T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Thursday">2011-11-10T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Veterans Day">2011-11-11T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Saturday">2011-11-12T06:00:00-06:00</start-valid-time> 
  <start-valid-time period-name="Sunday">2011-11-13T06:00:00-06:00</start-valid-time> 
  </time-layout>
- <parameters applicable-location="point1">
- <temperature type="minimum" units="Fahrenheit" time-layout="k-p24h-n7-1">
  <name>Daily Minimum Temperature</name> 
  <value>64</value> 
  <value>63</value> 
  <value>45</value> 
  <value>40</value> 
  <value>38</value> 
  <value>49</value> 
  <value>55</value> 
  </temperature>
- <temperature type="maximum" units="Fahrenheit" time-layout="k-p24h-n7-2">
  <name>Daily Maximum Temperature</name> 
  <value>75</value> 
  <value>73</value> 
  <value>58</value> 
  <value>60</value> 
  <value>67</value> 
  <value>70</value> 
  <value>74</value> 
  </temperature>
- <probability-of-precipitation type="12 hour" units="percent" time-layout="k-p12h-n14-1">
  <name>12 Hourly Probability of Precipitation</name> 
  <value>60</value> 
  <value>60</value> 
  <value>80</value> 
  <value>80</value> 
  <value>10</value> 
  <value xsi:nil="true" /> 
  <value xsi:nil="true" /> 
  <value xsi:nil="true" /> 
  <value xsi:nil="true" /> 
  <value xsi:nil="true" /> 
  <value xsi:nil="true" /> 
  <value xsi:nil="true" /> 
  <value xsi:nil="true" /> 
  <value xsi:nil="true" /> 
  </probability-of-precipitation>
- <weather time-layout="k-p12h-n14-1">
  <name>Weather Type, Coverage, Intensity</name> 
  <weather-conditions weather-summary="Tstms Likely" /> 
  <weather-conditions weather-summary="Severe Tstms" /> 
  <weather-conditions weather-summary="Severe Tstms" /> 
  <weather-conditions weather-summary="Tstms" /> 
  <weather-conditions weather-summary="Slight Chc Tstms" /> 
  <weather-conditions weather-summary="Sunny" /> 
  <weather-conditions weather-summary="Clear" /> 
  <weather-conditions weather-summary="Sunny" /> 
  <weather-conditions weather-summary="Clear" /> 
  <weather-conditions weather-summary="Sunny" /> 
  <weather-conditions weather-summary="Partly Cloudy" /> 
  <weather-conditions weather-summary="Cloudy" /> 
  <weather-conditions weather-summary="Mostly Cloudy" /> 
  <weather-conditions weather-summary="Mostly Cloudy" /> 
  </weather>
- <conditions-icon type="forecast-NWS" time-layout="k-p12h-n14-1">
  <name>Conditions Icon</name> 
  <icon-link>http://forecast.weather.gov/images/wtf/ntsra60.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/tsra60.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/ntsra80.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/scttsra80.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/hi_ntsra10.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/few.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/nskc.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/skc.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/nskc.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/skc.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/nsct.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/ovc.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/nbkn.jpg</icon-link> 
  <icon-link>http://forecast.weather.gov/images/wtf/bkn.jpg</icon-link> 
  </conditions-icon>
- <hazards time-layout="k-p6h-n1-1">
  <name>Watches, Warnings, and Advisories</name> 
- <hazard-conditions>
- <hazard headline="Hazardous Weather Outlook">
  <hazardTextURL>http://forecast.weather.gov/showsigwx.php?warnzone=TXZ103&warncounty=TXC121&firewxzone=TXZ103&local_place1=Flower+Mound+TX&product1=Hazardous+Weather+Outlook</hazardTextURL> 
  </hazard>
  </hazard-conditions>
  </hazards>
- <hazards time-layout="k-p6h-n1-2">
  <name>Watches, Warnings, and Advisories</name> 
- <hazard-conditions>
- <hazard headline="Short Term Forecast">
  <hazardTextURL>http://forecast.weather.gov/showsigwx.php?warnzone=TXZ103&warncounty=TXC121&firewxzone=TXZ103&local_place1=Flower+Mound+TX&product1=Short+Term+Forecast</hazardTextURL> 
  </hazard>
  </hazard-conditions>
  </hazards>
- <wordedForecast time-layout="k-p12h-n14-1" dataSource="fwdNetcdf" wordGenerator="markMitchell">
  <name>Text Forecast</name> 
  <text>Showers and thunderstorms likely. Cloudy, with a low around 64. South wind around 15 mph, with gusts as high as 20 mph. Chance of precipitation is 60%.</text> 
  <text>Showers and thunderstorms likely, mainly after 1pm. Some of the storms could be severe. Mostly cloudy, with a high near 75. South southeast wind between 10 and 15 mph, with gusts as high as 20 mph. Chance of precipitation is 60%.</text> 
  <text>Showers and thunderstorms. Some of the storms could be severe. Low around 63. South southeast wind between 10 and 15 mph, with gusts as high as 20 mph. Chance of precipitation is 80%.</text> 
  <text>Showers and thunderstorms, mainly before 7am. High near 73. South wind 10 to 15 mph becoming west. Winds could gust as high as 25 mph. Chance of precipitation is 80%.</text> 
  <text>A 10 percent chance of showers and thunderstorms before 7pm. Partly cloudy, with a low around 45. Northwest wind between 10 and 15 mph, with gusts as high as 25 mph.</text> 
  <text>Sunny, with a high near 58. North northwest wind around 15 mph, with gusts as high as 25 mph.</text> 
  <text>Clear, with a low around 40. North northwest wind between 5 and 10 mph.</text> 
  <text>Sunny, with a high near 60. North northwest wind between 5 and 10 mph.</text> 
  <text>Clear, with a low around 38. Northwest wind around 5 mph.</text> 
  <text>Sunny, with a high near 67.</text> 
  <text>Partly cloudy, with a low around 49.</text> 
  <text>Cloudy, with a high near 70.</text> 
  <text>Mostly cloudy, with a low around 55.</text> 
  <text>Mostly cloudy, with a high near 74.</text> 
  </wordedForecast>
  </parameters>
  </data>
  </dwml>
Have you found a way to access this other than via lat and long. The current URL to get to this is the following:

Code: Select all

http://forecast.weather.gov/MapClick.php?lat=33.02830&lon=-97.09270&FcstType=dwml
Osler