Skip to content

Instantly share code, notes, and snippets.

@AustinSaintAubin
AustinSaintAubin / I2C_Scanner.ino
Last active November 20, 2023 11:59
Arduino_I2C-Scanner - i2c scanner for Arduino hardware, ESP8266, ESP32
/*===========================================================================
Title: I2C Scanner
- Repository: https://gist.github.com/AustinSaintAubin/dc8abb2d168f5f7c27d65bb4829ca870
Version: 8
Date: 2018 / 02 / 17
Author: Austin St. Aubin
Email: [email protected]
Description:

In the end of setup():

  pinMode(D6, INPUT_PULLUP); // enable button pin

At the end of loop():

  if(digitalRead(D6)){
    if(!attack.isRunning()){
      serialInterface.runCommand("stopap");                    // stop access point and web interface
@Paraphraser
Paraphraser / MQTT_Node-Red_Influx.md
Last active February 19, 2025 11:37
Efficient recipe for getting MQTT data into an InfluxDB database using Node-Red

Recipe: from MQTT to InfluxDB via Node-RED

  • 2024-05-16 adds case study explaining how to extract values from topic strings, and how to specify the measurement name in the message payload provided to the "influxdb out" node.
  • 2023-12-02 revise graphics to correspond with "influxdb out" node, and explain the pros and cons of InfluxDB 1.8 vs InfluxDB 2.

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:

@debsahu
debsahu / esphome_dotmatrix_display.yaml
Last active September 25, 2024 18:47
ESPHome config for connected ESP8266 to MAX7219 Dot-Matrix Display to show useful information from HomeAssistant
esphome:
name: veneer_display
platform: ESP8266
board: d1_mini
wifi:
networks:
- ssid: !secret esphome_wifi_ssid1
password: !secret esphome_wifi_pass1
# - ssid: !secret esphome_wifi_ssid2
# Source: https://gist.github.com/0431989df4836eb82bdac0cc53c7f3d6
# Used in https://youtu.be/R6OeIgb7lUI
##############################
# Flux 2 With GitOps Toolkit #
##############################
# What Is GitOps And Why Do We Want It?: https://youtu.be/HKkhD6nokC8
# Argo CD: Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4
@kmplngj
kmplngj / geekmagic-smalltv-07c9f4.yaml
Last active April 14, 2025 10:36
GeekMagic Display Small TV ESPHome Config
# This ESPHome configuration file is for a GeekMagic Display device (esp01).
# It sets up the device to display pages of text and notifications,
# with customizable intervals and padding. The display is updated
# periodically and can show different pages based on Home Assistant sensors.
# The configuration includes:
# - WiFi setup with fallback hotspot
# - Web server for remote access
# Usage: