https://github.com/mrzamaniiii/iot-mqtt-node-red
Complete Node-RED flow implementing MQTT message generation, subscription, data processing, CSV logging, and ThingSpeak integration with temperature plotting.
https://github.com/mrzamaniiii/iot-mqtt-node-red
iot javascript json mqtt node-red thingspeak
Last synced: about 1 month ago
JSON representation
Complete Node-RED flow implementing MQTT message generation, subscription, data processing, CSV logging, and ThingSpeak integration with temperature plotting.
- Host: GitHub
- URL: https://github.com/mrzamaniiii/iot-mqtt-node-red
- Owner: mrzamaniiii
- Created: 2025-08-06T07:14:12.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-19T10:40:42.000Z (10 months ago)
- Last Synced: 2025-08-19T12:36:48.350Z (10 months ago)
- Topics: iot, javascript, json, mqtt, node-red, thingspeak
- Homepage: https://thingspeak.mathworks.com/channels/2925648
- Size: 2.06 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IoT Node-RED MQTT
## Project Overview
The flow simulates IoT data generation and processing using a local Mosquitto MQTT broker.
It includes:
- Periodic message generation with random IDs and timestamps
- Publishing messages to an MQTT topic
- Subscribing to messages and processing based on specific conditions
- CSV logging of generated IDs, published temperature data, and ACK messages
## Features
1. ID Generator – Generates random IDs and timestamps every 5 seconds.
2. CSV Logging – Saves ID logs (`id_log.csv`), filtered temperature data (`filtered_publish.csv`), and ACK logs (`ack_log.csv`).
3. Topic Subscription & Processing – Extracts N from ID (`N = ID % 7711`) and retrieves related CSV row.
4. Publish Message Builder – Builds MQTT messages based on CSV row data.
## Requirements
- [Node-RED](https://nodered.org/)
- [Mosquitto MQTT Broker](https://mosquitto.org/)
- ThingSpeak account (for data visualization)
- Node-RED Dashboard nodes