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

    • Kdenlive 26.04.2 by Razvan Serea Kdenlive is an acronym for KDE Non-Linear Video Editor. It works on GNU/Linux, Windows and BSD. Through the MLT framework, Kdenlive integrates many plugin effects for video and sound processing or creation. Furthermore Kdenlive brings a powerful titling tool, a DVD authoring (menus) solution, and can then be used as a complete studio for video creation. Kdenlive supports all of the formats supported by FFmpeg or libav (such as QuickTime, AVI, WMV, MPEG, and Flash Video, among others), and also supports 4:3 and 16:9 aspect ratios for both PAL, NTSC and various HD standards, including HDV and AVCHD. Video can also be exported to DV devices, or written to a DVD with chapters and a simple menu. Video editing features: Multi-track editing with a timeline and supports an unlimited number of video and audio tracks. A built-in title editor and tools to create, move, crop and delete video clips, audio clips, text clips and image clips. Ability to add custom effects and transitions. A wide range of effects and transitions. Audio signal processing capabilities include normalization, phase and pitch shifting, limiting, volume adjustment, reverb and equalization filters as well as others. Visual effects include options for masking, blue-screen, distortions, rotations, colour tools, blurring, obscuring and others. Configurable keyboard shortcuts and interface layouts. Rendering is done using a separate non-blocking process so it can be stopped, paused and restarted. Kdenlive also provides a script called the Kdenlive Builder Wizard (KBW) that compiles the latest developer version of the software and its main dependencies from source, to allow users to try to test new features and report problems on the bug tracker. Project files are stored in XML format. An archiving feature allows exporting a project among all assets into a single folder or compressed archive. Built-in audio mixer Kdenlive 26.04.2 changelog: Remove not needed actions from render info, fix rough size calculation for rendering. Fix clip sometimes not inserted in timeline when moving vertically in bin drag. Fix transcoding from clip properties. Cleanup render profile audio quality. Use percent based value for audio quality, and adjust the range accordingly per codec. Fixes bug #520750 Enforce even numbers for render width/height. Fixes bug #520737 Fix nightly flatpak - disable rnnoise until implemented. Fix missing initialization. Edit mediacapture.cpp. Fix document unnecessarily marked as modified on opening, triggering a backup request. Fix incorrect detection of missing and remote clips causing unwanted backups. Fixes issue #2194 Fix tests. Fix tmp files copied to wrong location when setting project folder. Fixes bug #467740 Fix color clips not selected on creation. Use QFileInfo instead of QUrl/QDir to try fixing Windows shared drives. Fixes bug #451413 Fix timeline preview incorrectly invalidated when a track with effect duration changed. Fixes bug #514541 Fix missing var. Display paths in native format in render widget. Fixes bug #520428 Simple splash: fix pressing return always triggered the same button. Minor update to simple splash. Fix unwanted clips added to timeline and cleanup. Fixes issue #2190 Minor layout improvements to welcome screen, add Quit and Open shortcuts. Fix broken welcome dialog layout in tiling compositors. (craft) Limit the number of CPU cores used during a Windows build with mingw as some .cpp files are memory intensive to build. (kde-ci) Limit the number of CPU cores used during a build as some .cpp files are memory intensive to build. (kde-ci) Cleanup old entries. Another fix for animation crash. Fix uninitialized function - crash on create animation. Another attempt to fix MacOS permissions. MacOS: fix bundle release version. Fix MacOS plist path. Fix MacOS build. Explicitely link against Qt::Core. Download: Kdenlive 26.04.2 | 128.0 MB (Open Source) Download: Standalone Executable View: Kdenlive Home page Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Here's how to watch the Xbox Games Showcase today and what to expect by Pulasthi Ariyasinghe The June games showcase week has been a packed one, with everything from major presentations like Sony and Summer Game Fest to indie-focused reveals coming in almost every day. Now, it's almost time for another big one, with Microsoft bringing its Xbox Games Showcase back later today. This is a double feature too, with a Gears of War E-Day deep dive also being attached to it. For anyone wanting to tune in online, the 2026 Xbox Games Showcase is kicking off at 10 AM PT | 1 PM ET | 6 PM BST | 7 PM CEST later today, June 7. The event will be available to watch on the official Xbox YouTube (4K 60FPS), Twitch, Facebook, Steam, Amazon Live, and other portals. Separate livestreams for American Sign Language and Audio Description will also be available. "This year marks 25 years of XBOX, and this Showcase is poised to be a true celebration, offering world premieres, new gameplay, fresh updates, and more for a swathe of projects we cannot wait to share," said Microsoft about this presentation. With a new CEO behind it that is pulling off some interesting moves, Xbox may have some surprises to reveal today. New looks at first-party games like Halo Campaign Evolved from Halo studios, Fable from Playground Games, InXile Entertainment's Clockwork Revolution, Mojang's Minecraft Dungeons II, and Call of Duty: Modern Warfare 4 from Infinity Ward are to be expected here. We may finally get to see the new Blade from Arcane Studios in action and a new Persona game from Atlus at the showcase too. Surprise announcements may also arrive from other Microsoft-owned studios like Bethesda, MachineGames, Ninja Theory, Obsidian, Rare, World's Edge, or Blizzard. Considering how every new release nowadays is staying away from November and December to avoid Grand Theft Auto VI's release, any launch dates Microsoft announces will probably skip those months as well. Once the Xbox Games Showcase ends, Microsoft will immediately kick off the Gears of War: E-Day Direct. This deep dive into the upcoming prequel from The Coalition should attach gameplay footage and perhaps a release window to the highly anticipated project.
    • People in the '50s and '60s had the same attitude, and we're still here over a half century later.
    • So after some fiddling I was able to get it to run at a pretty stable 30FPS. I'm slightly surprised about how much fiddling I had to do to get there though given what I thought was reasonable hardware: Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics Memory: 16 GiB of RAM Graphics Processor 1: AMD Radeon 780M Graphics Graphics Processor 2: AMD Radeon RX 7700S I think I could do it better if I use Linux rather than Windows, Windows RAM usage is stupid without stripping the system down. But once I got it working in a reasonable state, it was so awesome! I felt like a new Bond! If anyone has any advice to get things going a bit smoother FPS-wise, I'd appreciate it.
    • Something is rotten in the state of Denmark Australia
  • Recent Achievements

    • 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
    • Week One Done
      lamborghiniv10 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      482
    2. 2
      PsYcHoKiLLa
      256
    3. 3
      Steven P.
      74
    4. 4
      +Edouard
      70
    5. 5
      FloatingFatMan
      69
  • Tell a friend

    Love Neowin? Tell a friend!