Posted: 6/21/2009 4:02:18 PM EDT
|
http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdXMLclient.php?&lat=37.5536&lon=-77.4606&&product=time-series&begin=2009-06-19T08:00:00-04:00&end=2009-06-25T20:00:00-04:00&&maxt=maxt&mint=mint&wspd=wspd&wdir=wdir&temp=temp&icons=icons
So my final project for my summer class is basically to create a weather program, and I have it all almost done except getting the right image out of NOAA's XML feed. The element is "conditions-icon" and value = "icon-link" Really what I want is just one image representing the day. What this pulls is a corresponding image for every 3 hours. I could do the first value for the current representation, but based on what time I send the request at the 2nd value could be the next days corresponding image or the next days image could be 5 values down. Any ideas on how to pull one image for each day, and not have it be screwed up by the weird time stamp way of orienting it? |