Tuesday, September 27, 2011

UPS Monitor made in Flex Hero

Hi, if you like me have a Mac and an APC UPS Backup 1200 No Break, then you have no UPS software compatible to run. APC says it does not support MacOSX and refused to give me the protocol specification so I could implement a version for MacOSX myself.

Well, the good news is I managed to sniff the communication between my Mac and the UPS and reversed engineered all I needed to build my own Power Manager Application. If you need it for your mac feel free to download and please consider a donation.

The software will show the status of the UPS, consuming power by month and by day, and will automatically shutdown the computer in case of a power failure and the UPS's battery is in critical level.

The communication with the UPS is through cua port. I've accomplished that through native call to "/bin/cat" capturing it's output.
From that on I just read the unsignedBytes and parse the information.

Simple uh?


Dock Icon battery mode:

Dock Icon AC mode:

Tested on Lion and Snow Leopard.


Kelli Ap. said...

awesome!!!!! just what I needed!! te amo! :}

Anonymous said...

Your style is very unique in comparison to other folks
I've read stuff from. I appreciate you for posting when you've got the opportunity,
Guess I will just bookmark this site.

my web-site; buying views on youtube