Y-Weather Replacement module for ENV-VST-C and i-Weather
amdpower
Posts: 110
So, I got really annoyed the other day when my i-Weather subscription ran out for my ENV-VST-C. Being that a new license is about the same cost as a Viewstat (don't ask me why), I decided to roll my own module. Because I was pushing weather updates to the Stat I decided to include control as well. This module will essentially replace both the i-Weather and Viewstat modules. It supports 5-Day forecast through Yahoo weather, full display on the Viewstat, filter reminders, etc., etc.
I based the code off of some an old module I wrote for Yahoo weather when I was MUCH greener at coding. So, please forgive any "doing it the long way" sections. Also, please forgive the G3 style send commands. I have an old G3 panel installed in my Bedroom and needed to maintain compatibility.
The graphics are based off of a template on AMX's site and their Viewstat module. However, this panel DOES NOT use the same channels! Also, the graphics for the weather are ripped from Yahoo. Please be respectful of the image and XML data copyright holder's policies. You are free to use my code however you want, as long as it is helpful, but please maintain the copyright notice at the top and let me know if you fix anything.
Someday, I'll clean this code up a bit and add scheduling to it.
Not sure if anyone will find this useful but if you do, please let me know! Thanks.
I'm pointing to a link on my website with all of my current modules as I can't upload right now for some reason in VBulletin.
http://www.jackkolesar.com/code.html
I based the code off of some an old module I wrote for Yahoo weather when I was MUCH greener at coding. So, please forgive any "doing it the long way" sections. Also, please forgive the G3 style send commands. I have an old G3 panel installed in my Bedroom and needed to maintain compatibility.
The graphics are based off of a template on AMX's site and their Viewstat module. However, this panel DOES NOT use the same channels! Also, the graphics for the weather are ripped from Yahoo. Please be respectful of the image and XML data copyright holder's policies. You are free to use my code however you want, as long as it is helpful, but please maintain the copyright notice at the top and let me know if you fix anything.
Someday, I'll clean this code up a bit and add scheduling to it.
Not sure if anyone will find this useful but if you do, please let me know! Thanks.
I'm pointing to a link on my website with all of my current modules as I can't upload right now for some reason in VBulletin.
http://www.jackkolesar.com/code.html
0
Comments
This module is fantastic but i can only get it to work with US ZIP codes. Do you happen to have the API guide? I am trying to use UK locations but get errors if i use postcodes or Yahoo location codes. Do you have any ideas?
Antony
http://xml.weather.yahoo.com/forecastrss/JAXX0085_f.xml
Good luck!
Sent from my DROIDX using Tapatalk 2
Thanks
Antony
One question... what does dvREL do? I had to comment it out and remove it from the module definitions as .96 would compile for me. Studio compiler error says the module has 7 parameters while only 6 were found.
Sent from my DROIDX using Tapatalk 2
Really works very well!!
I use it in my home system now, and have been reading true the code many times, learned alot (parsing/string handling, module use/creation), and beleive i will try doing a version working with www.yr.no (norwegian++ weather provider).
I will credit you (of course), and post here when i'm done.
Kenneth K
Sent from my DROIDX using Tapatalk 2
I am not able to get any of the forecast working after entering in my zip code, nor can I get the temperature for my outside temp sensor or internal humidity to show up.
Any help would be greatly appreciated!
Eric
Eric
Now if I can only get the G4 web interface to work I would be all set. All I'm getting is a black screen after clicking on the link to my panel.
ERIC
http://www.uvnc.com/downloads/ultravnc.html
You'll also get the same with a vanilla install of V4 of RealVNC to view G4 panels, I've found that in the viewer options you need to check "Always use best available color quality" in the advanced options.
It was never a problem with V3 though so I keep a copy of the original V3 binary folder on a USB stick that works well without needing to be installed.
Hello there Jack,
Thank you for the module. It is the first time I have has UK weather data working.
This is what I love about the AMX forums. Jack builds a module that works, and then allows other programmers to download it to play with. Very public spirited of you Jack, thank you.
Take care,
Andrew
http://xml.weather.yahoo.com/forecastrss/43026_f.xml
I'll have to look into it later.
Further reading.
http://xml.weather.yahoo.com/forecastrss/43026&d=5.xml
That will give you a 5 day forecast. Change the d=# parameter to specify the number of days to return. The API supports up to a 10 day forecast now.
http://www.jackkolesar.com/code.html
Thanks again for the tip.
Thanks Jack for the module, saved my client a few licenses.
I did some modifications in your module so that it only does the weather rss process. I also changed to BMP and !T send commands after testing with G4 panels.
The tp file attached doesnt have any images since due to file size restrictions, i was not able to upload with images. The images are same from the previous files but only the channel numbers are changed in the TP.
Would anyone be interested in adding a couple items to this module?
-external temperature probe reading
-some type of fan circulation mode where it turns the furnace fan on, say 30% more
It would be greatly appreciated!
Eric