added script for collecting impulses and sending it to api, also included sample systemd service

This commit is contained in:
Finn Christiansen 2021-01-24 21:46:24 +01:00
parent 96e232d2c1
commit aa882297c3
2 changed files with 38 additions and 0 deletions

13
powermeter.service Normal file
View file

@ -0,0 +1,13 @@
[Unit]
Description=PowerMeter Service
[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/powermeter.py
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target