- 🐍 Topic Publisher (Raspberry Pi - Python)
⬇ - 🛰️ MQTT Broker
⬇ - 📥 Topic Subscriber & InfluxDB Writer (Python)
⬇ - 🧠 Backend (Python - FastAPI)
⬇ - 🎨 Frontend (Vue.js)
sudo apt update
sudo apt install mosquitto mosquitto-clients
sudo systemctl start mosquitto
sudo systemctl enable mosquitto
sudo systemctl status mosquitto
cd iot_project/
pip3 install -r requirements.txt
cd iot_project/frontend/
npm i
Don't forget to customize the InfluxDB settings in mqtt_subscriber.py and backend.py respect to your account.
cd iot_project/scripts/
python3 mqtt_publisher.py
python3 mqtt_publisher_pi.py
python3 mqtt_subscriber.py
uvicorn backend:app --reload --host 0.0.0.0 --port 8000
cd iot_project/frontend/
npm run serve