xorbit / LiFePO4wered-Pi

Access library, command line tool and daemon for the LiFePO4wered/Pi module
GNU General Public License v2.0
132 stars 31 forks source link

Question: Best way to add push notification / logging on power drop/restore and shutdown action #23

Closed evertide closed 5 years ago

evertide commented 6 years ago

Hi,

What would be the best way to get some logging on power drops, restores, and daemon clean shutdowns.

I am looking to implement a push notification ( pushover) to get some more grip on what is happening.

regards

xorbit commented 6 years ago

Not sure about the "best way". The daemon logs to syslog, maybe you can tap into that. For the rest, a script or program can read the status of VIN and log when a change is detected.