Recommended Posts

I wrote this to display weather info and to alert me when it rains and such. Works outside the US too (try putting in your city name).

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. For Vista you need to install the .NET framework 1.1 (Vista only includes 2.0/3.0), and set the compatibility mode to Windows Sever 2003.

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.

I know it does up a lot of memory when it's not minimized :pinch: ; that's just how the framework works. C# was easy enough to pick up, but muddling through full-fledged C++ for something like this is sorta overkill (but I may end up doing it anyway :D). But I think of it this way: when you're looking at the full weather information, it's probably not going to be when you're in the middle of playing a game or things like that; you'll have it minimized when you're doing intensive stuff, and when it's minimized it takes up very little memory. That and the fact that I have ample RAM. I guess. *shrug*

Updates (it's getting too long to keep the full list since the beginning):

--use the autoupdate feature to keep track (easier that way)

You can see many screenshots at the homepage: http://www.ic.sunysb.edu/stu/msowul - go to "Projects" and then "WeathAlert"

Download now!

post-88-1087235503.jpg

Edited by darkmark327
Link to comment
https://www.neowin.net/forum/topic/175813-weatheralert/
Share on other sites

@slap--i've tested it on plain windows server without issue, i don't know why it doesn't like TS; it doesn't really need special rights, just write access to its directory & registry key (& web access, but lack of that won't make it crash).

@insane kiwi--actually it does for some places, try yours

@magoo--i know! i dont' know why that happens, i wish it could take up the low memory always...when you minimize it and restore it is still low; it must be the framework, I suspect it's all the hidden windows they use for the controls...I know it's inefficient, but I don't feel like rewriting it in straight MFC/ATL C++, it'd be a pain.

Note that I discovered that the temp alerts don't work; I've updated the download to fix it. I've also made a few other small improvements, like the minimize to tray (it no longer minimizes & restores, but rather just hides). I should start a changelog i suppose. Let me know if you have any other problems, and thanks for the support.

Edited by darkmark327
Link to comment
https://www.neowin.net/forum/topic/175813-weatheralert/#findComment-2247628
Share on other sites

I might add- i dont know if you can sort this- although its got vvvv low memory use when in the tray minimized, when maximized (for me) its running ~ 17 meg - quite high for this kind of app.

It's how the framework handles memory. It reserves itself some until another app needs it. It will release that memory as soon as something else calls for it.

Link to comment
https://www.neowin.net/forum/topic/175813-weatheralert/#findComment-2260730
Share on other sites

Just tried it on my neighbors machine. Looking good. Won't put it on mine though as I will have nothing to do with .netframework stuff. At least, not until absolutely necessary.

Out of curiousity, any particular reason why you're avoiding the framework?

Here's a ss, which is actually larger than the download of the program itself.

Next version (compliant with weather.com's requirements) out soon. As you can see, they make me include attribution to them and links that they provide. It's not terribly intrusive, and it lets me use their XML feed for free, so I can't complain. In any event, it would be nice if all the links they give me actually worked; the "pollen reports" link just shows a blank page, lol...their loss :rolleyes:

edit: weird how the upper right corner is squared off, since it's actually rounded on my actual windows.

post-88-1087006219.png

Edited by darkmark327
Link to comment
https://www.neowin.net/forum/topic/175813-weatheralert/#findComment-2263965
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Cooler Master MasterFrame 600 PC case is now 33% off on Amazon by Ivan Jenic The Cooler Master MasterFrame 600 is currently $109.99 on Amazon, down from its original $164.99 list price. That's 33% off and $55 saved on this premium aluminum mid-tower case with a modular design. If you're upgrading your PC case and want something that doesn't force you into a rigid layout, the MasterFrame 600 is worth a look. The case is built around the Cooler Master's FreeForm 2.0 platform, which lets you reconfigure the internal structure according to your hardware. Magnetic side panels allow for straightforward adjustments, and the case supports everything from Mini-ITX to E-ATX motherboards without compromise. There's also generous cooling headroom. Four pre-installed PWM fans handle airflow out of the box. GPU clearance goes up to 410mm, and the case supports radiators up to 420mm with room for three simultaneously. Truth be told, this might not be the prettiest case on the market, but it’s highly functional. The aluminum construction keeps the whole thing lightweight despite its size, and the finish looks noticeably better than the plastic mid-towers competing at this price point. If you want a serious, flexible case that prioritizes function over flashy aesthetics like RGB lighting, the MasterFrame 600 delivers at a reasonable price. Cooler Master MasterFrame 600 - $109.99 | 33% off on Amazon This Amazon deal is US-specific and not available in other regions unless specified. This is a first-party seller link (at the time of article publishing); ensure that you also purchase from a first-party seller link only. If you don't like it or want to look at more options, check out the previous deals that we have covered, OR you can also visit Amazon US deals page. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • DK, I don't use the extended channel, I'm always on the latest release.
    • Your daily driver? Weird, seeing that you don't seem to understand how your own browser downloads and installs its updates. What you posted earlier is factually incorrect...
  • Recent Achievements

    • Rookie
      restore went up a rank
      Rookie
    • Very Popular
      AndrewSteel earned a badge
      Very Popular
    • Veteran
      Taliseian went up a rank
      Veteran
    • One Month Later
      Clizby earned a badge
      One Month Later
    • One Month Later
      Timaximus earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      +Edouard
      162
    3. 3
      PsYcHoKiLLa
      155
    4. 4
      ATLien_0
      82
    5. 5
      Steven P.
      80
  • Tell a friend

    Love Neowin? Tell a friend!