Power Notifier : Get an email alert when your house loses Electricity


Recommended Posts

 

Power Notifier

22658858343_eac301ae3a_o.png

Neowin's Simplezz and I have been working on an application called, Power Notifier. Power Notifier works in conjunction with your existing UPS. When your UPS is plugged into your computer via a USB cable, your desktop now has a battery indicator just like your laptop. This application monitors your computer and when it detects you are not charging and are running off battery backup it sends you an email. The email includes the computer name the version of Windows you are running, whether your AC is On or Offline and what % the battery is currently At.

When power is restored and if your machine is still on it send you a second email saying AC Online and how much battery % you have left. As well as the rest of the information mentioned above.

This application could also be useful on a Laptop that is always plugged into the charger but operates on a shelf with the lid closed (My Quickbooks machine). Then if your charger were to stop working and or became unplugged and your laptop was no longer charging, you would get an email.

22919535879_9f0831a0f9_z.jpg

Note: In order for your computer to send out an email when you loose power, your Modem and Router also have to be on battery backup.

23124835366_1d8532c45e_o.png

 

Version 1.0 :

First Release

Version 1.1

1) New UI. Bound to the system tray.
2) Dynamic battery meter with AC status. Timer based updates in addition to PowerModeChanged hander.
3) Threaded email notification.
4) Minor bug fixes.

Simplezz also wishes to give the source code away for free.

Power Notifier 1.1

https://dl.dropboxusercontent.com/u/59745187/PowerNotifier-App.7z

Power Notifier 1.1 + Source Code

https://dl.dropboxusercontent.com/u/59745187/PowerNotifier-Source.zip

Edited by warwagon
  • Like 2

 

Yes, if it stays off for a long time that could be useful. Actually I like your solution to. That helps me check to see if my internet went down :D

Hmm.. just checked it out and after a trial .. pingdom looks expensive.

Edited by warwagon

So we have a new version coming soon with we collaborated a brand new UI. I have a sample of the UI below. There are some bugs, which is why i'm not posting the new version just yet. I hope you guys like the new UI.

22966903930_35fe827387_o.png

 

Doesn't most ups software already do this?  I can setup all kinds of notifications, email, xmpp, sms, etc..  I get an email and text message when all kinds of things happen via my ups, not just power on or off.  Can setup when alerts go out, etc.. so you don't get a text message at 2 in the morning if you don't want too.

 

 

Doesn't most ups software already do this?  I can setup all kinds of notifications, email, xmpp, sms, etc..  I get an email and text message when all kinds of things happen via my ups, not just power on or off.  Can setup when alerts go out, etc.. so you don't get a text message at 2 in the morning if you don't want too.

 

The software that came with my cyberpower had notifications, sounds and such but no email. They did support email via their free business UPS software. but it was 150 megs and was WAY more than I needed. All I wanted was Email notifications. Plus by using [email protected] I can have the application send me a text too.

I have a cyberpower ups, 2 of them actually...  And yes the business software has always had email.. So what if it was 3GB??

You do understand that download has the agent, the client and server so you can monitor all your upses, or just have a machine listen for the server or agent send it a shutdown command, etc. if a different ups goes on battery and the profile says to shutdown, etc. etc..  Your just using the built in windows tools that report on a ups up or down.. 

Just seems kind of pointless to me, since why would I not run the software that came with my ups, that has alerting features already anyway.

Does your email sending support starttls? How are you storing the password for the email server to send the email?  Looks like just plain text??

<setting name="smtp_pass" serializeAs="String">
                <value />

 

 

I have a cyberpower ups, 2 of them actually...  And yes the business software has always had email.. So what if it was 3GB??

Sometimes a no bloat single purpose solution is superior to a bloated jack of all trades master of none. I can't comment on the UPS software as I've never used it, but if it's 3GB in size, that seems overkill for a simple email notifier.

Just seems kind of pointless to me, since why would I not run the software that came with my ups, that has alerting features already anyway.

You're entitled to your opinion. It's a very simple and lightweight app, and people are free to customise it for their own purposes. Personally, I like to be able to inspect an app's source code rather than deal with a blackbox that's potentially doing all kinds of things in the background.

Does your email sending support starttls? How are you storing the password for the email server to send the email?

It uses SSL by default:

private void sendNotification() {
    string line     = getLineStatus();
    string battery  = getBattery();
    log.WriteLine("Line Status: {0}, Battery Left {1}", line, battery);

    try {
        SmtpClient client   = new SmtpClient(Settings.Default.smtp_server, Convert.ToInt32(Settings.Default.smtp_port));
        client.Credentials  = new System.Net.NetworkCredential(Settings.Default.smtp_user, Settings.Default.smtp_pass);
        client.EnableSsl    = true;

        client.ServicePoint.MaxIdleTime = 1; // work around for not closing connection

        MailMessage message = new MailMessage(Settings.Default.mail_from, Settings.Default.mail_to);
        message.Subject     = Settings.Default.mail_subject;
        message.Body        = String.Format("{0} ({1})\n{2}: Battery {3}", Environment.MachineName, Environment.OSVersion, line, battery);

        client.Send(message);
        log.WriteLine("Sent notification @ " + DateTime.Now);
    } catch (Exception e) {
        log.WriteLine(e.ToString());
    }
}

But as I said, anyone is free to modify the source code.

Looks like just plain text??
<setting name="smtp_pass" serializeAs="String">
                <value />

Currently yes, but that's not difficult to remedy via sha1/md5 hashing.

  • 1 year later...
  • 4 months later...
  • 2 months later...

Here is an application I created.

Use it at your own risk. Please don't blame me if it breaks your computer or something! :)

 

It will Notify you when you loose power to a laptop and when the power comes back online.

Or you can set it to notify you when a preset percentage is reached.

Can also setup email notification.

 

https://www.dropbox.com/s/4z7kl1bin3ybyyv/PowerNotify.7z?dl=0

 

Hope it helps someone.

 

 

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

    • No registered users viewing this page.
  • Posts

    • WildBit Viewer 6.20 released; no further updates planned by Razvan Serea WildBit Viewer is a popular, fast, and extensive image viewer offering a comprehensive suite of tools for photographers, designers, and image enthusiasts. It includes a powerful Viewer, Slide Show, Editor, Search, Profile Switcher, and Multi-Screen Viewer. The Viewer provides blazing-fast folder, file list, and thumbnail navigation with customizable headers, full-screen view, and a shell toolbar to organize favorite folders. It supports all major graphic formats (over 70), including JPEG, TIFF, PNG, BMP, GIF, PCX, TGA, and RAW formats. Detailed Image Info shows EXIF, IPTC, and XMP metadata, with rotation based on EXIF orientation, wallpaper setting, image comparison, geo-tag viewing, color labels, and CMS-aware color management. The Slide Show module offers 176 transition effects, multi-monitor support, custom shows with per-image settings, image marking, zoom, rotate, and desktop hiding for a professional viewing experience. The Editor supports advanced image manipulation, including crop, resize, color adjustments, curves, edge detection, effects, batch processing, retouching, layer support, and printing. Users can apply mass renaming, update or clear metadata, and work with multi-page TIFFs and animated GIFs. Search allows filtering by name, location, date, size, attributes, and metadata, while the Profile Switcher saves and loads custom layouts for all modules. The Multi-Screen Viewer opens multiple windows on available monitors, allowing simultaneous image viewing with independent zoom, pan, and rotation. WildBit Viewer also supports portable operation, 32- and 64-bit versions, Unicode, high-DPI displays, and multiple Windows styling options. With its combination of speed, versatility, and rich feature set, WildBit Viewer is an indispensable tool for managing, editing, and showcasing images efficiently. WildBit Viewer key features: Blazing-fast folder, file list, and thumbnail browsing Supports 70+ image formats including JPEG, TIFF, PNG, BMP, GIF, and RAW Full-screen view with multi-monitor support Explorer-style file handling with customizable headers Thumbnail Browser with sorting, view change, and fast size adjustment EXIF, IPTC, and XMP metadata viewing and editing Automatic rotation based on EXIF orientation Shell toolbar for organizing favorite folders Image Compare to calculate similarity between images Mass renaming and batch metadata updates File List Generator (HTML, CSV, RTF, TXT, Unicode) Rating and color labels, CMS-aware color management Video playback (AVI, MPG, MPEG, WMV) Animated GIF, multipage TIFF, Camera RAW support Slide Show with 176 transition effects and custom settings Editor: crop, resize, rotate, flip, canvas resize, and retouching tools Batch processing and image format conversion Multi-Screen Viewer: multiple windows with independent zoom, pan, and rotate Profile Switcher: save, load, reset, delete module profiles Portable operation, 32-/64-bit support, Unicode, and high-DPI ready WildBit Viewer 6.20 changelog: Viewer, Slide Show, Editor, Search, Profile Switcher & Multi Screen Viewer. Updated ImageEn to 15.0.0 version. Viewer, Slide Show, Editor, Search, Profile Switcher & Multi Screen Viewer. Updated Jedi JCL&JVCL. Viewer - Image Geo Info, OpenStreetMap removed. Slide Show Remote Mode removed. Note! This means that WildBit Slide Show Remote is now officially EOL. Editor - Shortcut keys for Capture removed. Optimized code. Note! This version includes help what supersedes all previous releases. plus Lots of bug fixes and changes, check Readme files for details. WildBit Viewer End‑of‑Life WildBit Viewer has reached its final release with version 6.20. As development comes to a close, no further feature updates are planned. WildBit Slide Show Remote reached End-of-Life on 06 June 2026, while WildBit Viewer will reach End-of-Life on 30 June 2026. Downloads will remain available until the end of July 2026 (possibly extending into early August). After End-of-Life, the software will no longer receive updates, security fixes, or technical support. Download: WildBit Viewer 64-bit | Portable 64-bit | ~70.0 MB (Freeware) Download: WildBit Viewer 32-bit | Portable 32-bit Links: WildBit Viewer Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Thanks for liking it! 😊 That's Arch Linux with Gnome.
    • LOL. Can't even quote and edit a comment correctly. Figures you're a Linux user.
    • It won't perform hugely better than the 3080 unless you're VRAM limited in games. Have you tried putting new thermal pads on them 3080 and giving it a good clean to see if you can regain your temps and overclock?
  • Recent Achievements

    • Week One Done
      Windows Guy earned a badge
      Week One Done
    • Dedicated
      Mark Spruce earned a badge
      Dedicated
    • Collaborator
      conkir earned a badge
      Collaborator
    • Rising Star
      olavinto went up a rank
      Rising Star
    • One Month Later
      lamborghiniv10 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      479
    2. 2
      PsYcHoKiLLa
      252
    3. 3
      Steven P.
      71
    4. 4
      FloatingFatMan
      69
    5. 5
      +Edouard
      69
  • Tell a friend

    Love Neowin? Tell a friend!