There are many web sites that allow you to display their icons and weather data using HTML code snippets and remote images. Such displays often include the logo from those sites as well as a link back to those sites. Here are a few such sites:

  1. Weather Channel
  2. Weather Reports
  3. Weather Underground

But that kind of reciprocal agreement is not necessary; you don't have to show someone else's logo, and you don't have to display the weather in their format. The National Weather Service provides weather data on the internet for free. The National Weather Service is funded by American taxpayers and therefore the data they produce is already paid for.

This overall solution happens in two steps. First, you have to download the data on a regular basis (i.e. hourly). Second, you need some kind of script to read that data and display it on a web page.

In addition, you could also setup scripts that do things like e-mail the current temperature to your cell phone at 8:00am every day. Etc.

Downloading:

I'm providing the two scripts that I use for reference purposes here. You won't be able to just download them and run them, but with a little tweaking, you should be able to make them work the way you want. One is a Linux shell script, the other is Perl. There are two types of weather data to download:

Using The Data:

If you've setup the above two scripts properly, you'll now have two data files that you can use in many ways. Such solutions are beyond the scope of this page, but you can probably think of ways to use it.

One idea is to write a CGI script that reads the data and displays it on a web page (you might display the data on various web pages using different formats). Another might be to read the data each morning and send a message to your cell phone with the current weather conditions. The idea here is that you now have the raw data, it's always current, now do something with it.

Feedback:

I'm always open to feedback, suggestions for improvement, etc. Contact me any time.

 


Apache HTTP Server Project mod_perl Powered by Perl use perl SUSE Linux Enterprise Server
Linux Registered User #420090 written in the vi editor Mozilla Corporation Get Firefox Linklint - fast html link checker ipsCA SSL Secure Certificate