Netlinx as RSS reader
Jeff Lockyear
Posts: 147
I'm trying to develop my own alternative to iWeather, and an option seems to be using an RSS source like rssweather.com. Is there any way to access this info via a Netlinx master? Anyone have any other options? (That are applicable north of the border, that is....)
Jeff
Jeff
0
Comments
http://www.amxforums.com/showthread.php?t=1648&highlight=rss+weather
http://www.amxforums.com/showthread.php?t=1666&highlight=rss+weather
Try this. This was created about a year ago. DHawthorne then converted it into a module form, someone else added the ^BAT to the the forescast feedback while some one else provided a link to the missing icons. So, in a sense it was a forum creation.
Edit Notes:
Removed zip file and replaced modified version in a more recent post.
Cheers!
Jeff
Thanks again
Jeff
Jeff
Thanks again for your help. I don't think I'll be using the module you posted, but looking at it sure got me on the right track.
Cheers,
Jeff
country = ca
county = '' (2 single quotes, no space in between)
city = toronto
state = on
zipcode = '' (2 single quotes, no space in between)
zone = fpcn11 (this may need a little playing with)
From RSSWeather for Toronto Ontario Canada
I user RSSWeather fine with weather on the West Coast of Canada and Alberta.
The Get Statement I use is
Where place is the city(you have to look at the list at RSS Weather and choose one that's on the lise), state = province, two letter abbreviation ie BC, AB and country = CA
Vining, a couple of questions in the module header you have dvTP_Array but I didn't find it in the axi file. Also I put all the parameters needed for Miami Florida but I'm not geting anything in the TP. Here is how my local information looks like:
I also left dvTP_Array out and only using one TP instead of 3.
The module definition looks like this:
and the module definition like this:
I kept the same channels for the TP. Any ideas why I'm not getting the info from the RSS?
This will fix those instances where it will only find 3 of 20 possible values.
Thanks Dave. I'll give it a try tonight.
flcusat wrote: 1, I often leave arrays of 1 TP as an array of 1 TP.
2, TimeManager
3, Those can be removed. I had a subroutine hiding in the compiled weather module on a recent install and I neglected to pull those out of the header.
4, Try what Dave suggested. So far every one of my jobs that I've installed this in have used the same set of paremeters as they're in the same 50 mile radius area. Needless to say I haven't had exposure to the problems that arise from trying to acquire data for different regions.
Edit Notes:
Modified zip file. Removed the dvTP_Array from the module headers and inserted Dave's fix for wind direction return of "VBR".
increased structure char array for winddir to eight to fit the word "variable".
In the debug window put in "nWeather_DeBug" and set it to 1. Then open diagnostics and run the code. I believe button # 1 in the GUI is "Last Updated >" or at least that's where mine is hidden will manual run the update process.
When you push the update button take a look at the send_string 0 strings the module puts out. My thinking is that you're not resolving the DNS and you will have to set this to your router or gateway address in Diagnostics>Network Addresses. If you were just using your own values I would say that you have some bad values but using the default should work w/o problems. Are you running TimeManager? If that's working then your DNS is fine?
Set the debug flag and see what you get? Post a copy of the diagnostics.
Vining, setting the DNS to my router IP address solve the problem. I'll play a little bit more tomorrow and let you Know. Thanks.
'US'
'12086'
'FL'
'FLZ074'
'Miami'
'33184'
I compiled it and sent it to the master and still getting the data like the Norwalk parameters were in. Doing what Dave suggested regarding the city in blank didn't help either. I also compare the data in the TP with what is showing at RSSWeather.com and for some reason the Heat Index is not updating when I have the Norwalk parameters in.
Here is what the diagnostics showed when I ran debug with "nWeather_DeBug" as you suggested:
I didn't have a hidden button in the panel for the manual update, so probably the version I downloaded from here is slightly different than the one you are referring to. The one that I have is the one you posted in this thread in May 29( three above this one).
Also from where are you getting the Radar's information?
That's the weird thing. I recompiled the Main.axs. I didn't change anything in the module and still getting the Norwalk data with the Miami parameters.
Here is how the Main.axs looks with the Miami parameters
Vining I've done that a trillion of times already. At this point I don't have a clue of what it is going on. I even create a new workspace with a new main.axs that have the included declared and not paste like before with the Miami parameters and still getting the Norwalk data.
Here is the new workspace
It's has to be something very simple with the files.
Sometimes there are some discrepancies between the values showing in the panel and the values showing at RSSWeather.com but it looks like the values showing at the web site are retrieve from the server every certain amount of time and the values displayed are not the most current even if you refresh the page.
The URL below is for "Content Encoded" but you can also select plain text or XHTML.
I often thought it would be nice just to parse the HTML (PHP) so we could get more icons but that's far down on the list.
I'd run your code but I'm presently only running a partial program since I killed my NI-4000 and then killed my back up NI-4000.
check you values to the values in this URL for zip, county code and zone and then compare the returns to what you see when go to this web page.
You can also try what Dave recommended a while back and just input the zip code. All other values should be just a pair of single quote no space ''. Go back and find his thread and verify this.
This is the html equivalent of what the module is getting an parsing. I think! It's been a while.