Jump to content

WeatherAlert, Weather Info Program


Chris
 Share

Recommended Posts

Taken from the neowin.net forums

I wrote this to display weather info and to alert me when it rains and such. Let me know what you think of it, and if you have any problems; I've tested it on 2K & XP, but I've no 98 boxes so I've not tested it on that. Works outside the US too (try putting in your city name).

Note that you need the .NET framework or you'll get weird errors on startup.

download .net framework

I had originally decided to write it when I neglected to realize it was raining and went to class, only to get soaked because I didn't have time to go back up and get my jacket. I figured it'd be handy to have balloon tips when it rains and such; ironically it took me forever to get that to work, because of the way that the .net framework handles tray icons; you can't just use the standard Win API stuff and send your window handle, because the tray icons have their own hidden windows. Anyway it was originally written in VB, then I rewrote it in C# for the hell of it, and made the UI much more efficient (it used to be a lot bigger, although the weather.com links sort of negated my improvements in that area); then I figured, since most of my college goes home for the weekend, it'd be pretty handy to have the weather information for both locations (home & school). It's the first actual application I've written, and the first time I'd used .NET, C#, and full-fledged VB (I'd previously used the latter with scripting and ASP, which is why I originally started writing it in VB, a decision which I later regretted, since I didn't realize that C# was just as easy but without the handholding...all I'd written before were QBASIC programs (I had some pretty kick-ass QB stuff back in the day), and then console programs in C++ and Java, as well as a Java app (both for CS class))...for everything else, I figured "why reinvent the wheel"...but I'm pretty sure this is the only weather program that displays balloon tip alerts when it starts raining (and so on), and I think they're pretty damn cool. Plus the interface is nice and efficient, and it's not riddled with banner ads and all sorts of cluttered crap.

Lot's More | Here

It's a very nice app by the way. I have it running as I mutter :D

post-88-1087235503.jpg

Link to comment
Share on other sites

Downloaded the program and tried to run it. First panel (Program Options) says 'Primary Locai' - no location chosen. When I click Choose location I get a new panel, where I enter my city. After clicking OK, the entry under 'Choose your location from the list below says 'No Internet connection available'.

I am on a LAN connection, connecting via Proxy Server. (Win XP-SP2).

Link to comment
Share on other sites

  • 2 weeks later...

I have the BBC as my home page. On that you can tell it your postcode and it will give local weather information without any problem.

Other than that, if I want to know the immediate weather situation, I look out of the window.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy