An open API service indexing awesome lists of open source software.

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.

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