aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-07-11 10:24:19 +0200
committerDennis Eriksen <d@ennis.no>2023-07-11 10:24:19 +0200
commitbf3df41f4bf914ae8a800f598dd4a9479e674f13 (patch)
tree5b66fabdce5cbbe5b898c1fbad2b1a4d6fb0ac86 /README.md
parentupdating some requirements, adding req-file for systems without the pkg crypt... (diff)
downloadenergyscripts-bf3df41f4bf914ae8a800f598dd4a9479e674f13.tar.gz
new systemd-service with some protections
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4c3444a..d0a9f96 100644
--- a/README.md
+++ b/README.md
@@ -47,8 +47,22 @@ pg_dump --schema-only --no-owner --no-privileges el
```
+## Systemd
-TODO:
+Example:
+
+```
+ln -s /opt/energyscripts/energyscripts-SCRIPT@ADDRESS.service /etc/systemd/system/energyscripts-mqtt_listener.service
+ln -s /opt/energyscripts/energyscripts-SCRIPT@ADDRESS.service /etc/systemd/system/energyscripts-esphomeapi@airgradient.local.net.service
+
+systemctl enable energyscripts-mqtt_listener.service energyscripts-esphomeapi@airgradient.local.net.service
+systemctl start energyscripts-mqtt_listener.service energyscripts-esphomeapi@airgradient.local.net.service
+journalctl -fu "energyscripts-*"
+
+```
+
+
+## TODO:
Put every state in `states`-table. Entities in an entity-table, and devices in
a device-table.