From e93ebaad0a01c90237280cbdf98099abef6adefa Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 29 Apr 2022 16:41:59 +0300 Subject: temphum: support multiple temp/relhum sensors --- systemd/sensors_mqtt_sender.service | 2 +- systemd/si7021d.service | 10 ---------- systemd/temphumd.service | 10 ++++++++++ 3 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 systemd/si7021d.service create mode 100644 systemd/temphumd.service (limited to 'systemd') diff --git a/systemd/sensors_mqtt_sender.service b/systemd/sensors_mqtt_sender.service index 54da7f6..a271d72 100644 --- a/systemd/sensors_mqtt_sender.service +++ b/systemd/sensors_mqtt_sender.service @@ -1,6 +1,6 @@ [Unit] Description=Sensors MQTT sender -After=si7021d.service +After=temphumd.service [Service] User=user diff --git a/systemd/si7021d.service b/systemd/si7021d.service deleted file mode 100644 index 646746b..0000000 --- a/systemd/si7021d.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=si7021 daemon -After=network-online.target - -[Service] -Restart=on-failure -ExecStart=/home/user/homekit/src/si7021d.py --config /etc/si7021d.toml - -[Install] -WantedBy=multi-user.target diff --git a/systemd/temphumd.service b/systemd/temphumd.service new file mode 100644 index 0000000..1da9617 --- /dev/null +++ b/systemd/temphumd.service @@ -0,0 +1,10 @@ +[Unit] +Description=temperature and humidity daemon +After=network-online.target + +[Service] +Restart=on-failure +ExecStart=/home/user/homekit/src/temphumd.py --config /etc/temphumd.toml + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3