added script for collecting impulses and sending it to api, also included sample systemd service
This commit is contained in:
parent
96e232d2c1
commit
aa882297c3
2 changed files with 38 additions and 0 deletions
13
powermeter.service
Normal file
13
powermeter.service
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue