Skip to content

Instantly share code, notes, and snippets.

View herrphon's full-sized avatar

Alexander von Renteln herrphon

View GitHub Profile
@herrphon
herrphon / web-servers.md
Created May 31, 2023 21:37 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@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);