-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi - I finally got this working as a service, using your hack_ble.sh file. I think it would be useful to add instructions to create a service file:
- Create new file
/etc/systemd/system/ble_sensor_mqtt.service - Paste in, adjusting the path to
hack_ble.shand the user name:
[Unit]
Description=BLE Sensor MQTT service
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=on-abort
RestartSec=1
User=pi
ExecStart=/usr/bin/sudo /home/pi/govee/bluetooth-temperature-sensors/hack_ble.sh
[Install]
WantedBy=multi-user.target
- Edit the path in
hack_ble.shto match the source dir sudo chmod a+x ./hack_ble.shsudo systemctl daemon-reloadsudo systemctl start ble_sensor_mqttsudo systemctl status ble_sensor_mqtt- If everything looks good,
sudo systemctl enable ble_sensor_mqtt
Hassiopeia
Metadata
Metadata
Assignees
Labels
No labels