diff --git a/helper/ble-autoconnect-user.service b/helper/ble-autoconnect-user.service new file mode 100644 index 0000000..3ead841 --- /dev/null +++ b/helper/ble-autoconnect-user.service @@ -0,0 +1,10 @@ +[Unit] +Description=Automatically connect to available bluettooth devices from config + +[Service] +Environment=PATH=%h/ble-venv/bin/:/usr/bin +WorkingDirectory=%h/ble-serial/helper/ +ExecStart=%h/ble-venv/bin/python ble-autoconnect.py + +[Install] +WantedBy=default.target diff --git a/helper/ble-autoconnect.service b/helper/ble-autoconnect.service new file mode 100644 index 0000000..362c361 --- /dev/null +++ b/helper/ble-autoconnect.service @@ -0,0 +1,9 @@ +[Unit] +Description=Automatically connect to available bluettooth devices from config + +[Service] +WorkingDirectory=/usr/lib/python3.9/site-packages/ble-serial/helper/ +ExecStart=/usr/bin/python ble-autoconnect.py + +[Install] +WantedBy=multi-user.target