I have created a PHP script that displays a station’s Wunderground historical data in a fashion similar to how they do. It reads and displays the CSV data that is available and also shows the charts that have been mentioned in other threads. You can view demos, see a couple sites utilizing it, and download WU-History.zip by visiting http://jcweather.us/scripts.php .
Please let me know if you have any trouble or see need for improvement. Also please let me know if you decide to utilize the script so I can place a link on the scripts page.
As mentioned on that page, many thanks to Tom Chaplin, Ken True and Kevin Reed for the code that they’ve made available over the years. Also thanks to Henrik (JWWD) for his ideas and thorough testing.
I decided to install it tonight here http://www.northantsweather.com/wx35.html
Problem is its too big for the page size i normally use, any ideas how i can change the
width to say 10% less please?
That’s just the result of the space you give it … it’ll use whatever is there. There’s a lot of data, so you may want to make metric your default rather than displaying both. Another option is to reduce the font size near the top of the .css file.
Cheers Jim, now changed to just Metric, i hate kmh but also hat Fahrenheit also so i cant win lol
As for the font, i cannot actually find the right one in in the css file, i think i must be tired :oops:
Time for bed me thinks…thanks again Jim, appreciated m8
Really nice, it looks like a lot of effort went into this script, that’s a lot of code!!! 8O
I have it working here…http://www.branfordfire.com/weather/wu.php It takes a few secs to load but I’m sure it is because of the amount of data it is parsing. Thanks so much for sharing!
Thanks Jack, it was a labor of love. Not! Every time I turned around there was more to do. I sure did learn a lot in the process though. The script is really quite quick, but you’re totally dependent upon the Wunderground response time to requests for data. Usually pretty decent though.
Jim
It looks like it isn’t finding your wuicons folder though. The background graphics are missing.
I just went to your page and it loaded in less than 3 seconds here…must have been slowed down earlier because of the missing icon’s, but appear’s to loading fine now.
Very good job. weatherforyou.com/HAMweather also has archived historical data going back to around 2002. I contracted with someone to write an interface for it, which will be available in about a month. But we’d very much appreciate any volunteer help such as this and would gladly acknowledge it since we don’t exactly have the resources of WU.
Gosh - that’s fantastic! I see I have some work to do but I may get that sorted for another page of data. Yes! And all done by private folks for themselves and others to access their own station’s data, albeit just stored on WU.
What a great script, and already incorporated on my site http://www.sandhurstweather.org.uk/wx10.php. As I say many times, thanks to all you very talented people out there who are willing to share your hard work with others that are less talented.
Henrik (jwwd) asked if it would be possible to select other stations that may be of interest. I’ve added that capability as an option and it’s kind of growing on me. The .zip has been updated and the changed script is attached. To see it in action view the demos at