Premise XML Weather

Motorola Premise

123

Senior Member
I have been trying to get XML Weather working to no avail.

The issue, I think, is that Motorola.Premise.SYS.Weather.dll will not load. In fact, I don't even see it in the Add-Ins.Devices selection. Anyone have a clue?
======================
Based on the name of the library, that's a .NET namespace. The .NET driver support was beta and I believe was not included in the latest 2.1 release.
======================
Thanks Damon. That would explain it.
 
Does anyone know whether XML Weather works? I have been using the TWCi module (and had created an mb version for display in the minibrowser). It appears that the Weather Channel has decided to make you pay for the privilege of getting the weather feed from them. (unless someone else is using it and getting updated weather). See http://portal.theweatherchannel.com/explore.aspx. I haven't spent a lot of time on investigation, but it's highly unlikely my production and test servers would stop retrieving data at the same time.
 
Yes; I got shut off yesterday. I was wondering how long it would take.

I switched over to NOAA and WUN for internet weather last night.
 
I have never been abe to get any data with the XML part of the module that uses NOAA data, the TWCI part used to work great. I have a crappy internet connection so I am not sure if the problem I am having with XML NOAA data is only my problem.


Wow, I pick up the forecast data with XML weather today, now I know it is my internet connection that was the problem.
 
I thought I could just use the XMLWeather object instead of the TWCiWeather home object as both are included in the module... However, the link below doesn't return anything!?!

http://www.weather.gov/forecasts/xml/SOAP_server/ndfdSOAPclientByDay.php?lat=34.110254&lon=-81.196553&format=12+hourly&startDate=2011-11-11&numDays=5&Submit=Submit

I guess the API for weather.gov changed at some point...
 
I picked up 123's (?) WunderGround module, installed it. Of course, I don't use the IE sysconnector - browser only.

So I just finished making an mbWunderGround module to work via browser only...works on IE, Safari, Chrome, and FF. Also Windows Phone 7 and iPhone 4 - something

(flash excluded from the phones). So I need to put in some flash detection script, then I'll put that up.

(TV, Receivers, etc coming soon)
 

Attachments

  • WunderGround.png
    WunderGround.png
    19.8 KB · Views: 15
  • WunderGround2.png
    WunderGround2.png
    12.4 KB · Views: 12
Well, here's my shot at the mb version of the Wunderground Premise Module. It assumes you have the WundergroundPWC module installed. Unzip, import the .xdo. Go to home->new->HVAC->mbWunderground->done! (providing you have already configured the module)

If you are on a flash equipped device/browser, then you get the flash version of the weather (see image)

If you're on an iPhone or Windows Phone 7, you get the .gif version (see images)

Ironically, figuring out the flash bypass helped me figure out how to get the mediaplayer to work across all platforms, including the iPhone and WP7

Usual caveats.
 

Attachments

  • mbWunderground.gif
    mbWunderground.gif
    36.8 KB · Views: 5
  • iPhone.gif
    iPhone.gif
    29.5 KB · Views: 4
  • WP7.JPG
    WP7.JPG
    12.4 KB · Views: 4
  • mbWunderground.zip
    mbWunderground.zip
    2.3 KB · Views: 6
Hey folks. I have a client installation that's been running untouched for the past few years, and haven't really kept up with Premise as I've moved twice in the last three years.

So the TWCiWeather (XML Weather) module can no longer update itself? I can't believe they want $20 a month for access thru an API (well, maybe i can).

I've removed the non-functioning Weather bit from the Premise Home config so they don't have a dead link on their interface. I'm tinkering for the first time with the WundergroundPWS module now, and initially I'm only seeing the data displayed for current time (the weather right now). With the loss of TWCiWeather, are we also losing the multi-day forecast display capability?

Any suggestions greatly appreciated, I'm a little rusty.
 
I'm looking at the forecast feed from Wunderground. Shouldn't be too hard to migrate to Premise. I'm not crazy about the loss of a 5-day forecast; the two day I have is okay, but not a replacement for John's TWCi work...
 
I've started using the JSON feed from Wundgergorund - works well, although I am only currently using geolookup, temp_F, and the icon_url. Before I spend anytime pulling together a module, is anybody using this or working on a module?
 
I'm waiting for XML documentation since I think it will be easier to use XML over JSON via vbscript. It looks like we'll be able to grab 5 days of weather forecasts and it's free! I envision a driver where the end user enters their own api key, so we each should request one...

I haven't started working on anything and I don't know when I'll have time since I'm busy doing home improvement projects for the near future, but I do plan to make one.

http://www.wundergro...umentation.html

Right now, the site says this:
"XML documentation coming soon"

EDIT:
Ok, I just tried an XML query and it works! One could easily reverse engineer the protocol using the JSON protocol as a guide.

Below is an XML result, you'll need to furnish your own API key:

http://api.wunderground.com/api/YOUR_API_KEY_HERE/conditions/forecast/q/SC/Columbia.xml

I would assume it would be a day or two project to re-use the previous code from the beloved TWCi module and use this new protocol.
 
I went down the JSON path with jQuery and Javascript. S L O W L Y I am becoming more comfortable w/ js, so I wanted to push myself...FWIW, this is the code I used for pulling simple temperature and an icon representation. (not complete by any stretch!)
Code:
sHTML = sHTML & ("<script type=""text/javascript"" src=""http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js""></script>")
sHTML = sHTML & ("<script type=""text/javascript""> jQuery(document).ready(function($) { $.ajax({url: ""http://api.wunderground.com/api/YOUR_API_KEY_HERE/geolookup/conditions/q/" & zip & ".json"",dataType: ""jsonp"",success: function(parsed_json) {var location = parsed_json['location']['city']; var temp_f = parsed_json['current_observation']['temp_f'];document.getElementById(""CTemp"").innerHTML=(""Temp: "" + temp_f );}});});</script>")
sHTML = sHTML & ("<script type=""text/javascript""> jQuery(document).ready(function($) { $.ajax({url: ""http://api.wunderground.com/api/YOUR_API_KEY_HERE/geolookup/conditions/q/" & zip & ".json"",dataType: ""jsonp"",success: function(parsed_json) {var location = parsed_json['location']['city'];var icon_url = parsed_json['current_observation']['icon_url'];document.getElementById(""demo"").innerHTML=(""<IMG SRC=""+icon_url+"">"" );}});});</script>")

The ' & zip ' comes from the zip code located in the Premise schedule. I then used vars (temp_f, icon_url) to put the data into the information row of the minibrowser (remember, I focus largely on the MB side of things)

So I ended up with this:
 

Attachments

  • MB_JSON_Temp.png
    MB_JSON_Temp.png
    3.5 KB · Views: 1
Back
Top