working project, maybe

This commit is contained in:
2019-08-22 19:24:35 +02:00
parent 8689dd8c63
commit a454a4aac5
152 changed files with 43419 additions and 316 deletions

21
systemd/chttp.service Normal file
View File

@@ -0,0 +1,21 @@
[Unit]
Description=Launch CherryPy web server
After=network-online.target
Before=multi-user.target
DefaultDependencies=no
[Service]
User=root
# SSH connection with port forwarding
ExecStart=/usr/bin/python3 /home/www/plutonium/web/chttpd.py
# wait 60 seconds before trying to restart the connection
# if it disconnects
RestartSec=10
# keep retrying no matter what
Restart=always
[Install]
WantedBy=multi-user.target

22
systemd/davis_etl.service Normal file
View File

@@ -0,0 +1,22 @@
[Unit]
Description=Davis ETL, feeding influxdb
After=network-online.target
Before=multi-user.target
Requires=influxdb.service
After=influxdb.service
[Service]
User=pi
# Gathers davis vantage vue data via python script, requires serial conn.
ExecStart=/usr/bin/python3 /home/www/plutonium/python/davis_etl.py
# wait 60 seconds before trying to restart the connection
# if it disconnects
RestartSec=5
# keep retrying no matter what
Restart=always
[Install]
WantedBy=multi-user.target

View File

@@ -9,7 +9,7 @@ After=influxdb.service
User=pi
# Gathers system statistics via python script
ExecStart=/usr/bin/python3 /home/pi/www/plutonium/python/sysstats.py
ExecStart=/usr/bin/python3 /home/www/plutonium/python/sysstats.py
# wait 60 seconds before trying to restart the connection
# if it disconnects