Basic deployable IoT application which includes:
- Broker MQTT: mosquitto
- Timeseries SQL database: TimescaleDB (PostgreSQL)
- Dashboard: Grafana
- Application: Node-RED
- Docker
-
Clone the repository
git clone https://github.com/bonastreyair/basic_iot_app.git
-
Set configurations
- TimescaleDB Database: .env
POSTGRES_USER
andPOSTGRES_PASSWORD
- Mosquitto MQTT Broker: mosquitto/config/mosquitto.conf
- Grafana Dashboard: grafana/grafana.ini
- Node-RED Application: node-red/settings.json
- TimescaleDB Database: .env
-
Run the aplication with Docker Compose
docker compose up -d
-
Install Node-RED dependencies
- node-red-contrib-re-postgres
-
Create Database and Table using Node-RED
-
Connect Grafana to TimescaleDB Database