Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 697 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 697 Bytes

Internet Of The Toilet

toilet monitoring via raspberry pi.

setup

clone repository

$ git clone https://github.com/denzow/iott.git

set environment

$ export SLACK_TOKEN=your_token 

edit wcpacho.sh

wcpaccho.sh edit and set path to bot.py

- python3 /path/to/bot.py
+ python3 /home/pi/apps/toi/bot.py

register service

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/