- Connects to an mqtt broker using Eclipse' Paho.mqtt python library
- Uses Supabase python client and connects to supabase
- Subscribes to mqtt topics and inserts data into remote postgres table
- Clone/Download this repository.
- Install python
- Use venv to setup virtual environment(optional)
- Inside the folder, open terminal/cmd.
- Run
python -r requirements.txt - Run
python main.py
- Change broker connection config in main.py file
client.connectfunction arguments - Change subscriptions topics: main.py file, inside
on_connectfunction