aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
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.