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

    • Why? Does anybody actually want this? The constant need to close all browser sessions and wait for a new version to install, just so that there’s a integrated coupon manager feels like a waste of everyone’s time
    • I remember when Louis used to just do interesting Mac/iPhone repairs, now he's boring and just launches "crusades" every week
    • A shame it don't allow people to bypass the MS account, I will stick to using Rufus.
    • Microsoft about to radically change how often your Edge browser updates by Paul Hill Microsoft has just announced that starting with Edge 152, it will be moving to a two-week release cycle for faster, smaller updates. This faster release cadence will begin on August 27. This change comes just several months after Microsoft switched Visual Studio Code to weekly updates. The company said that the Extended Stable releases will remain on an eight-week cycle and that no admin changes are needed to experience the faster release cycle on the Stable channel. The new two-week release cycle will enable the faster delivery of security updates and platform improvements, all while reducing the size and complexity of individual updates. Microsoft claims that organizations will benefit from this change as it offers predictable validation cycles. For organizations that prefer a “more deliberate pace”, the Extended Stable channel remains an option. This change will affect Edge Stable releases on Windows, macOS, Linux, and mobile. The Extended Stable channel will continue to be updated every eight weeks, or every fourth Stable release, for example: versions 152, 156, 160, and 164. The Extended Stable could be a good option for organizations that don’t want the latest updates twice a month and don’t want as much hassle constantly updating browsers. In the case of Visual Studio Code, many of the updates being pushed by Microsoft are AI-related. As we all know, Microsoft Edge has a lot of AI features, so we could see Microsoft pushing more AI, thanks to the faster cycles. On the flip side, quicker releases could mean faster security updates, which is beneficial in a world where AI systems are hunting for software exploits. What do you think? Let us know in the comments. For more updates on Edge, be sure to follow Neowin's coverage. In May alone, we reported on Edge offering in-browser pop-ups to assist users with website compatibility issues, that Edge was losing Copilot Mode, and that Microsoft had fixed a plain-text password bug in Edge. Source: Microsoft 365 Admin Center
    • not yet, because at the moment it is not a threat to MS, if and I mean if it did become a threat to MS Office, then it may be a different thing. MS don't like competition
  • Recent Achievements

    • Week One Done
      davidbazooked earned a badge
      Week One Done
    • One Month Later
      Jamswaz earned a badge
      One Month Later
    • Week One Done
      Jamswaz earned a badge
      Week One Done
    • Rookie
      Marzoid went up a rank
      Rookie
    • Community Regular
      coch went up a rank
      Community Regular
  • Popular Contributors

    1. 1
      +primortal
      514
    2. 2
      PsYcHoKiLLa
      185
    3. 3
      +Edouard
      159
    4. 4
      Steven P.
      83
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!