Rewrite electricity-logger to use an sqlite3 database
This commit is contained in:
13
systemd/electricity-server.service
Normal file
13
systemd/electricity-server.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=A pistache based HTTP server serving the Electricity API
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/electricity-server -d /mnt/data0/log/electricity -p 3002 -s electricity.valkendaal.duckdns.org
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
13
systemd/solar-server.service
Normal file
13
systemd/solar-server.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=A pistache based HTTP server serving the Solar API
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/solar-server -d /mnt/data0/log/solarpaneloutput.db -p 3001
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user