Skip to content

Daemon for Linux that detects if the battery is completely charged and the computer is plugged-in, and then registers it in a file in /var/log. Made with Python 3.

License

Notifications You must be signed in to change notification settings

porziopablo/battery-daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

battery-daemon

TP1 - Software Libre - 2021 - FI-UNMdP

Daemon for Linux that detects if the battery is completely charged and the computer is plugged-in, and then registers it in a file in /var/log. Made with Python 3.

Authors

  • Mariquena Gros
  • Pablo Porzio

Installation

1 - Clone repo:

git clone https://github.com/porziopablo/battery-daemon.git

2 - Create logs directory:

sudo mkdir /var/log/battery-daemon

3 - Transfer ownership to the user that will run the daemon:

sudo chown usuario /var/log/battery-daemon

Execution

1 - Start:

python3 battery-daemon.py start

2 - Stop:

python3 battery-daemon.py stop

3 - Restart:

python3 battery-daemon.py restart

Sources

About

Daemon for Linux that detects if the battery is completely charged and the computer is plugged-in, and then registers it in a file in /var/log. Made with Python 3.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages