internet of the toilet
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
plugins
.gitignore
README.md
bot.py
slackbot_settings.py
toiletmonitor.service.sample
wcpaccho.sh

README.md

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/