medium article link: https://nuraisyah2018.medium.com/a-sparkling-clean-toilet-with-iot-9acaa5d5da76
- You'll need to have setup a KAAIOT dashboard. Go through the following documentation to learn how to setup the KAAIOT dashbaord: https://docs.kaaiot.io/KAA/docs/v1.2.0/Welcome/
- You'll need to replace you're the following two variables with your KAAIOT tokens and endpoits in the sendDataToKaaIOT.ipynb
ENDPOINT_TOKEN = "<your enpoint token>" # Paste endpoint token
APPLICATION_VERSION = "<your application version>" # Paste application version
- set up a telegram bot and connect it to a channel. You can refer to to following link https://core.telegram.org/bots. Replace the telegram url in the "telegramChannelUpdates.pynb" file
telegramURL = "https://api.telegram.org/<botID>/sendMessage?chat_id=<chatId>parse_mode=Markdown&text=" # replace with your url
- You’ll need to set up a MySQL version 8 database.
- After you set it up you'll need to run to sql file inside the DatabaseSettings Folder.
- You'll need to enter the database configurations into the three jupyter notebooks in the server folder under the variable
database_settings = { "username": <change username>,
"password": <change password>,
"ip_address":<change ip address>,
"port": "3306",
"database_name": "iotg5"
}
Install the following libraries: run:
pip install pymysql sqlalchemy paho_mqtt
Next, you’ll need to run the three jupyter notebooks under the server folder.
- Open "getDataFromRaspberryPi.ipynb" and click run all.
- Open "sendDataToKaaIOT.ipynb" and click run all.
- Open "TelegramChannelUpdates.ipynb" and click run all.
- follow the steps to install the pyBeacon package: https://github.com/forksociety/PyBeacon
- Follow the following steps to pair the pysical notification microbit with the raspberry pi: https://ukbaz.github.io/howto/ubit_workshop.html
- Run "runCommsFinal.py" from the raspberrypi folder on the raspberrypi