Skip to content

Instantly share code, notes, and snippets.

View herrphon's full-sized avatar

Alexander von Renteln herrphon

View GitHub Profile
@herrphon
herrphon / MQTT_Node-Red_Influx.md
Created October 7, 2023 21:21 — forked from Paraphraser/MQTT_Node-Red_Influx.md
Efficient recipe for getting MQTT data into an InfluxDB database using Node-Red

Recipe: from MQTT to InfluxDB via Node-Red

Introduction

Getting data produced by IoT sensors into a database is practically a mandatory step before effective visualisation (eg dashboards).

This recipe shows you how to get an MQTT payload into an InfluxDB database using three Node-Red nodes. It makes the following assumptions:

  • A client device of some kind publishing data to a topic via the MQTT protocol;
  • Mosquitto (MQTT broker);