Tordex Community

Full Version: Battery monitor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Great for laptop users, and would look good next to the drive/net/mail monitor Smile

It would be nice to see the following information in it:
- Using AC or battery (plugged or unplugged)
- Current battery percentage

Maybe even an option to auto-hide the plugin under certain conditions, but this could also be done with custom skins...
Yes, realy, how about power plug-in ???
I would KILL for this. (Yuri? Have anyone you don't like. Wink )

Guest

I too think this would be a great addition...
Please test this small program on your notebooks and give me results. It will be great if you give me results from other programs (that you are using now): percent, time etc.

I do not have notebook so cannot test this myself Sad
Yuri, (AC plugged in)

Battery charger on AC power: YES
Battery is present: YES
Battery is charging: NO
Battery is discharging: NO
Battery maximum capacity: 43,902 mWh
Battery estimated remaining capacity: 43,902 mWh
Battery estimated rate of discharge: 0 mWh
Battery estimated time remaining: 1193046:28:15
Please same thing but without AC ???
Battery charger on AC power: YES
Battery is present: YES
Battery is charging: NO
Battery is discharging: YES
Battery maximum capacity: 48,000.00 mWh
Battery estimated remaining capacity: 48,000.00 mWh
Battery estimated rate of discharge: -15,000.00 mWh
Battery estimated time remaining: 1193046:28:15

Battery charger on AC power: NO
Battery is present: YES
Battery is charging: NO
Battery is discharging: YES
Battery maximum capacity: 48,000.00 mWh
Battery estimated remaining capacity: 48,000.00 mWh
Battery estimated rate of discharge: -15,000.00 mWh
Battery estimated time remaining: 3:12:00
Thank you cmishima Please can you also take values when battery is some discharged?
Yes I will discharge some this morning and post.
After two hours on Battery

Battery charger on AC power: NO
Battery is present: YES
Battery is charging: NO
Battery is discharging: YES
Battery maximum capacity: 48,000.00 mWh
Battery estimated remaining capacity: 2,880.00 mWh
Battery estimated rate of discharge: -15,000.00 mWh
Battery estimated time remaining: 1193046:28:15
Hi, let me post the results on my laptop!

Btw, I really wish there was some working Delphi Plugin SDK (or a description how to register plugins for TLB, so they will be recognized... I'd write this plugin or any other myself immediately!)

System:
No AC, battery discharging, 93%, 2:23 remaining
Yuri's test program:
Battery charger on AC power: NO
Battery is present: YES
Battery is charging: NO
Battery is discharging: YES
Battery maximum capacity: 41.515,00 mWh
Battery estimated remaining capacity: 38.578,00 mWh
Battery estimated rate of discharge: -16.092,00 mWh
Battery estimated time remaining: 2:23:50

System:
On AC, battery charging, 91%
Yuri's test program:
Battery charger on AC power: YES
Battery is present: YES
Battery is charging: YES
Battery is discharging: NO
Battery maximum capacity: 41.515,00 mWh
Battery estimated remaining capacity: 37.660,00 mWh
Battery estimated rate of discharge: 15.952,00 mWh
Battery estimated time remaining: 1193046:28:15

System:
On AC, battery removed
Yuri's test program:
Battery charger on AC power: YES
Battery is present: NO
Battery is charging: NO
Battery is discharging: NO
Battery maximum capacity: 0,00 mWh
Battery estimated remaining capacity: 0,00 mWh
Battery estimated rate of discharge: 0,00 mWh
Battery estimated time remaining: 0: 0: 0

You can imagine why I haven't been able to test without both AC and battery Wink As you see, you might want to ignore the time when the battery is recharging... The rest looks perfectly OK
Dracula Thank you very much. This is exactly what I need!

Quote:Btw, I really wish there was some working Delphi Plugin SDK (or a description how to register plugins for TLB, so they will be recognized... I'd write this plugin or any other myself immediately!
As I already told I do not know Delphi - this is problem. But I can say how to register TLB plugins. This is simple on C++ Wink:
1) Register plugin as COM object. To do this you need write in registry some values. Look on
Code:
HKEY_CLASSES_ROOT\CLSID\{FF9535D2-8A59-4372-8B54-A5C3C1AB9BA5}
for Mail Monitor as example.

2) You must use StdComponentCategoriesMgr to register plugin in the COM cathegory. Here is C++ code:
[code]

CATID CATID_TLBBUTTONS = { /* 49e86696-eaa6-45a2-9480-c78c013b9713 */
Thank you Yuri for the short explanation. There was already code in the C++ SDK, but converting that isn't easy if you don't know what it's supposed to do Wink. I'll see if I can work on the Delphi SDK again some time, though I won't promise anything... if anyone else knows COM and Delphi, you can find my initial work somewhere on these forums...
Please try this version of Battery Monitor

There are no installation yet see readme.txt for instructions.
Pages: 1 2