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

    • Was it too much to ask to show the icon in this article?
    • Frankly, I blame whoever is writing such articles. "A big improvement/update and/or new feature is now available to everyone! Also, use this unofficial tweak tool to enable it because it actually isn't available to you yet officially and might not in fact even be entirely ready or whatever, hence why it is perhaps not enabled for you*. But it's great and you should enable it!" I mean there's nothing wrong with sharing info about some feature you might need to enable via unofficial means, of course. It's just that these articles tend to essentially end up being two news pieces in one, and one of them tends to be a bit misleading. (*Yes, yes, the "it's a controlled rollout!" thing. Not a fan of that one either. The argument, not the actual rollout.)
    • Thank you. Will do. I read in the release notes that editor config might be at play here.
    • Actually, I think even Microsoft doesn't know how to control it
    • OpenAI is making Codex more useful in Chrome and the cloud by Pradeep Viswanathan OpenAI's Codex now has more than 5 million users, up nearly 4x from earlier this year. To further accelerate Codex's growth among developers, OpenAI today announced that it has agreed to acquire Ona, a company that builds secure cloud execution and orchestration technology for developers. Ona will enable developers to run Codex with persistent and controlled cloud infrastructure for long-running agentic workflows. Right now, most Codex execution happens locally on developers' laptops and PCs, and the agents work continuously for hours. Through Ona, OpenAI aims to make Codex agents keep working for days without being tied to a user’s local machine or an active session. This will be an important capability for enterprises that want to deploy AI agents in production while maintaining control over infrastructure, data, security boundaries, credential scope, logging, and review workflows. Like any acquisition, the deal is still subject to customary closing conditions, including regulatory approvals. Until the deal closes, OpenAI and Ona will continue to operate as separate companies. After closing, Ona’s team will join the Codex team to improve developer workflows. Alongside the Ona acquisition announcement, OpenAI today introduced a few Codex updates. Developers can now save Codex rate limit resets and use them later instead of losing them when they are not needed immediately. OpenAI is also adding a referral option where users can invite a friend to Codex and get a saved rate limit reset. OpenAI today also announced a developer mode for browser use in Chrome and the Codex in-app browser. With this mode, Codex can use the Chrome DevTools Protocol to debug web apps, inspect pages, and work more directly with browser-based development workflows. Developers can use this when they want Codex to profile JavaScript, inspect console output and network traffic, examine web page states including the DOM and applied styles, and more.
  • 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
      509
    2. 2
      PsYcHoKiLLa
      186
    3. 3
      +Edouard
      157
    4. 4
      Steven P.
      83
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!