toilet monitoring via raspberry pi.
$ git clone https://github.com/denzow/iott.git
$ export SLACK_TOKEN=your_token
wcpaccho.sh
edit and set path to bot.py
- python3 /path/to/bot.py
+ python3 /home/pi/apps/toi/bot.py
toiletmonitor.service.sample
rename to toiletmonitor.service
and edit.
[Service]
- ExecStart = /path/to/wcpaccho.sh
+ ExecStart = /home/pi/apps/toi/wcpaccho.sh
copy to /etc/systemd/system/
$ sudo cp toiletmonitor.service /etc/systemd/system/