What is the Battery & UPS Monitor plugin?
The Battery & UPS Monitor plugin will allow Indigo to monitor any UPS that can natively connect to Mac OS X (typically through USB). This plugin uses the UPS support built-in to the Energy Saver System Preference & Mac OS X, to monitor the status of your UPS and/or Laptop battery.
What can you do with this?
First, the plugin can be configured to check the power status between 1 minutes to 6 hours, and if there is a loss of power, you can have the plugin email a list of email addresses.
Then you can configure up to 2 different battery levels (between 30-90%) where additional emails would be sent.
Second, you can create a Battery & UPS monitor device, which will allow you to create triggers against it's states. By creating a trigger you can monitor the status of the UPS, and send Emails, or perform actions depending on the power or battery condition.
The states that are being stored in the device are:
* AC Power (True / False)
* Battery Level (% of charge)
* Battery Time Remaining (In seconds) [This is zero if on AC power]
* Charging (True / False)
* Model of the UPS
* TimeDateStamp - The Time & Date that the Battery and/or UPS was checked.
This first release is a trial release for v1.00.
The plugin is still logging some data to the indigo log:
For example:
- Code: Select all
Feb 1, 2013 1:49:37 PM
UPS and Battery Monitor Power Status - AC Power
UPS and Battery Monitor UPS Model - -Smart-UPS 1500 RM FW:617.3.D USB FW:1.5
UPS and Battery Monitor Charging Status - True
UPS and Battery Monitor Battery Charge - 100
UPS and Battery Monitor Sleeping for 1 minutes (60)
https://dl.dropbox.com/u/241415/Battery ... tor100.zip
Please feel free to use it!
I would appreciate it if anyone with a laptop try the plugin, and send me the results. I don't have a laptop to check to see how the plugin will work with it. I believe the code should work identically with a laptop battery vs an UPS, but the proof is in the pudding.
- Benjamin