+Warwagon MVC Posted November 20, 2015 MVC Share Posted November 20, 2015 (edited) Power Notifier 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. 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. 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 November 24, 2015 by warwagon goretsky and max22 2 Share Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/ Share on other sites More sharing options...
simplezz Posted November 20, 2015 Share Posted November 20, 2015 Go right ahead. It's extremely basic, but it works. The email notification could do with threading as well. Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597144474 Share on other sites More sharing options...
+Zlip792 MVC Posted November 20, 2015 MVC Share Posted November 20, 2015 Well, if you need alert when its back. This should work - https://www.raymond.cc/blog/get-sms-notification-when-electricity-power-supply-is-restored/ Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597144522 Share on other sites More sharing options...
+Warwagon MVC Posted November 20, 2015 Author MVC Share Posted November 20, 2015 (edited) Well, if you need alert when its back. This should work - https://www.raymond.cc/blog/get-sms-notification-when-electricity-power-supply-is-restored/ 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 Hmm.. just checked it out and after a trial .. pingdom looks expensive. Edited November 20, 2015 by warwagon Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597144526 Share on other sites More sharing options...
+Warwagon MVC Posted November 24, 2015 Author MVC Share Posted November 24, 2015 (edited) 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. Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597148374 Share on other sites More sharing options...
+Warwagon MVC Posted November 24, 2015 Author MVC Share Posted November 24, 2015 Power Notifier 1.1 Released Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597149988 Share on other sites More sharing options...
+BudMan MVC Posted November 25, 2015 MVC Share Posted November 25, 2015 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. Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597150242 Share on other sites More sharing options...
+Warwagon MVC Posted November 25, 2015 Author MVC Share Posted November 25, 2015 (edited) 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 myphonenumber@vtext.com I can have the application send me a text too. Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597150244 Share on other sites More sharing options...
+BudMan MVC Posted November 25, 2015 MVC Share Posted November 25, 2015 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 /> Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597150256 Share on other sites More sharing options...
binaryzero Posted November 25, 2015 Share Posted November 25, 2015 Yeahhhhh UPS software already does all of this + more. 150mb, u serious bro? LOL! Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597150304 Share on other sites More sharing options...
simplezz Posted November 28, 2015 Share Posted November 28, 2015 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. Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597155040 Share on other sites More sharing options...
Dot Matrix Posted November 28, 2015 Share Posted November 28, 2015 Looks good, but the buttons should match the ones in the Action Center. Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597155066 Share on other sites More sharing options...
pauloreal1 Posted March 2, 2017 Share Posted March 2, 2017 Hi, is there any way to receive a notification only when the laptop battery is low? This app works, but i was looking for one that notifies me when my laptop battery reaches a certain % Thank you +Warwagon 1 Share Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597812482 Share on other sites More sharing options...
mst Posted July 12, 2017 Share Posted July 12, 2017 the download link does not exist - is there any new link for that software? Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597958024 Share on other sites More sharing options...
+Warwagon MVC Posted July 12, 2017 Author MVC Share Posted July 12, 2017 The deveoloper simplezz looks to be MIA Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-597958052 Share on other sites More sharing options...
Nadun Posted September 14, 2017 Share Posted September 14, 2017 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. Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-598027246 Share on other sites More sharing options...
Shiranui Posted September 14, 2017 Share Posted September 14, 2017 I usually just notice that everything has suddenly gone dark. Link to comment https://www.neowin.net/forum/topic/1279384-power-notifier-get-an-email-alert-when-your-house-loses-electricity/#findComment-598027286 Share on other sites More sharing options...
Recommended Posts