Jump to content

Recommended Posts

Posted

G'day,

I am trying to display the current temperature from a weather website in a Windows sidebar gadget. This value needs to be updated periodically so that it remains current and accurate.

What I was wondering is if anyone has some code or explanation to get started with or at least maybe a phrase or some terminology to google because I have 0 idea what I am looking at here.

(PS: any solutions don't have to be specifically for getting a temperature from a weather website, just grabbing a variable from any page will do)

Cheers

Posted

You might want to look at this: http://www.weather.com/services/xmloap.html, http://www.nws.noaa.gov/xml/current_obs/ or something similar... Sounds like your best bet is to find an XML feed that offers up to date temperature information.

 

I'm not really familiar with how Windows sidebar gadgets work, but if you can use web technologies for this, the way I'd approach it is to use PHP to parse the XML feed and display the information. Searching for "parse xml with php" should give you some results. I've used "SimpleXML" in the past with pretty good results (http://us.php.net/manual/en/book.simplexml.php).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...