You are not logged in.

#1 2015-02-02 11:30:53

ssokolow
Member
Registered: 2015-02-02
Posts: 1
Website

battery_monitor.py -- A bettery monitor with alert

In case anyone wants a fancier base to build on, I got carried away while helping someone write something along these lines for their Cinnamon desktop and produced a little Python app which uses UPower and a GLib mainloop to react immediately to charger plug/unplug events.

It doesn't implement the low/critical distinction, but that could be added in two or three lines and the code's clean and commented with novices in mind.

(And I apologize for the thread necromancy. This thread has a non-trivial Google presence so I thought it was worthwhile.)

Last edited by ssokolow (2015-02-02 11:34:44)

Offline

#2 2015-07-20 05:30:45

joni1101
Member
Registered: 2015-07-20
Posts: 1

Re: battery_monitor.py -- A bettery monitor with alert

thank you for this - indeed it's an old thread - but yes, this is still the top result on google - so thank you

Offline

#3 2015-07-20 06:00:37

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: battery_monitor.py -- A bettery monitor with alert

Could have posted in Community Contributions instead of raising the dead - for the second time.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#4 2015-07-20 12:50:11

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,844
Website

Re: battery_monitor.py -- A bettery monitor with alert


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB