initial commit

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
2023-11-21 19:44:52 +08:00
commit af36c23be3
8 changed files with 443 additions and 0 deletions

17
liftbot-py@.service Normal file
View File

@ -0,0 +1,17 @@
# copy this file to /etc/systemd/system
# then run:
# sudo systemctl start liftbot-py@ttyACM0.service
# sudo systemctl enable liftbot-py@ttyACM0.service
[Unit]
Description=Run Liftbot
[Service]
User=xobs
WorkingDirectory=/usr/local/share/liftbot
ExecStart=/usr/bin/python3 -u /usr/local/bin/liftbot.py --key [your chat key] --chat [your chat ID] --modem %I
Restart=on-failure
RestartSec=2s
[Install]
WantedBy=multi-user.target