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/TU
From: Bagelstan
Registered: 2014-05-04
Posts: 2,004
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
Honest Alad's Package Emporium—Now with added bugs! (Grand reopening: December 1st 2018)

Offline

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

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,142
Website

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


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

Board footer

Powered by FluxBB