diff --git a/README.md b/README.md new file mode 100644 index 0000000..1bac2e4 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +pyupsmon +======== + +Monitor for Wöhrle CONVERT-1000 UPS written in Python3 + +Installation +------------ + +* Install pyyaml +``` +sudo emerge -NDuv pyyaml +``` +* Check out this project and copy the example config file to `/etc` +``` +sudo cp pyupsmon.yml.example /etc/pyupsmon.yml +``` +* Edit the config to your liking using your favourite text editor +* Install the `systemd` unit file +``` +sudo cp pyupsmon.service /etc/systemd/system +``` +* Enable and start the service +``` +sudo systemctl enable pyupsmon.service +sudo systemctl start pyupsmon.service +``` diff --git a/pyupsmon.yml.example b/pyupsmon.yml.example index b41583e..cbfa319 100644 --- a/pyupsmon.yml.example +++ b/pyupsmon.yml.example @@ -32,5 +32,5 @@ shutdown: # Shutdown command to execute after timeout expired # - # Default: /sbin/shutdown -h now + # Default: /sbin/shutdown -h +2 #command: /sbin/shutdown -h now