pimoroni / clean-shutdown

Python daemon to watch a GPIO pin and trigger a clean shutdown.
MIT License
125 stars 40 forks source link

How to observe battery voltage #33

Closed hannesa2 closed 2 years ago

hannesa2 commented 2 years ago

I want to send me an event in advance before shutdown. The main question is: where to observe voltage of LiPo ?

hannesa2 commented 2 years ago

I guess I found it by myself https://github.com/pimoroni/clean-shutdown/blob/master/daemon/usr/bin/cleanshutd#L86-L88