Skip to content

works on my machine

¯\_(ツ)_/¯

  • Projects
  • Prototypes
  • Coding
  • HowTos
  • Pinouts
  • Story time

Links

Github
  • About
works on my machine
¯\_(ツ)_/¯

MQTT

  • Node-RED knows something – combining JSON messages without forgetting previously known values
    HowTos

    Node-RED knows something – combining JSON messages without forgetting previously known values

    ByStefan December 6, 2024

    Generally speaking this is how I learned to cache a JSON object in a Node-RED flow with the Change node by setting a flow based variable. Specifically this handles a problem with HomeAssistants light card backed by a MQTT light (defined in the configuration.yaml) only emitting partial values of the light setting when updating. New…

    Read More Node-RED knows something – combining JSON messages without forgetting previously known valuesContinue

  • Mastering the chaos – subscribe to all MQTT topics of your Mosqitto server with console and Node-RED
    HowTos

    Mastering the chaos – subscribe to all MQTT topics of your Mosqitto server with console and Node-RED

    ByStefan January 23, 2024January 25, 2024

    I wanted to know which topics are active on my MQTT server and if there were some skeletons in the closet I could get rid of. Many Iot devices, Node-RED flows and surely some unused topics or old retained topics lead to more or less MQTT being a chaotic museum of topics. This is just…

    Read More Mastering the chaos – subscribe to all MQTT topics of your Mosqitto server with console and Node-REDContinue

  • Better scratch your balls than your frozen windshield – MQTT warning for nightly low temperatures with Node-RED querying a weather API
    HowTos

    Better scratch your balls than your frozen windshield – MQTT warning for nightly low temperatures with Node-RED querying a weather API

    ByStefan February 16, 2023February 16, 2023

    I have a talent to forget to cover my car before a night with temperature below zero and the next morning I have to scratch away all the ice. As I really don’t like that I decided to build a warning mechanism for that. I already had a Node-RED flow querying the weather API to…

    Read More Better scratch your balls than your frozen windshield – MQTT warning for nightly low temperatures with Node-RED querying a weather APIContinue

  • Easy peasy – querying weather API in Node-RED and publishing the current temperature to a MQTT broker
    HowTos

    Easy peasy – querying weather API in Node-RED and publishing the current temperature to a MQTT broker

    ByStefan February 15, 2023

    Precondition: Have your lokal MQTT broker and Node-RED installed and setup or access to a remote one. I recently added a http request node querying a weather API to Node-RED. After extracting, the current temperature is then published on the local MQTT and can be used by all devices connected to the broker.In this example…

    Read More Easy peasy – querying weather API in Node-RED and publishing the current temperature to a MQTT brokerContinue

  • I don’t like grilled cheese – a thresholded IoT (MQTT) DHT22 sensor on with a D1 mini written in MicroPython with circuit diagram, casing and installation
    Projects

    I don’t like grilled cheese – a thresholded IoT (MQTT) DHT22 sensor on with a D1 mini written in MicroPython with circuit diagram, casing and installation

    ByStefan February 6, 2023February 7, 2023

    TLDR: An IoT sensor for temperature and humidity sending its values to a local MQTT server. Measuring interval and thresholding easy to configure. So much to write about a pretty small device and less than 100 lines of code including configuration, prints and comments. Hope you enjoy it! 🙂 I really like building and writing…

    Read More I don’t like grilled cheese – a thresholded IoT (MQTT) DHT22 sensor on with a D1 mini written in MicroPython with circuit diagram, casing and installationContinue

  • Making sure it’s cozy – IoT Neopixel LED stripe ambient light with DHT22 Temp/Hum sensor with MicroPython on a NodeMCU v3
    Projects

    Making sure it’s cozy – IoT Neopixel LED stripe ambient light with DHT22 Temp/Hum sensor with MicroPython on a NodeMCU v3

    ByStefan February 3, 2023October 4, 2023

    TLDR: Measures temp&hum in a configurable interval and with variable thresholds. Publishes to a mqtt server. Neopixels react to json data at a mqtt topic it is configured to subscibe. Single thread async implementation. Robust wifi and mqtt routines. Code at my github: https://github.com/worksonmymachine-de/iot_temptumsensor_ambilight This device is placed behind my main monitor and reads temperature…

    Read More Making sure it’s cozy – IoT Neopixel LED stripe ambient light with DHT22 Temp/Hum sensor with MicroPython on a NodeMCU v3Continue

  • YFNWG – your friendly neighbourhood washroom guard. IoT thresholded Temp/Hum/Open sensor with MicroPython on a D1 mini
    Projects

    YFNWG – your friendly neighbourhood washroom guard. IoT thresholded Temp/Hum/Open sensor with MicroPython on a D1 mini

    ByStefan January 25, 2023January 30, 2023

    It measures the temperature, humidity and open status of a window and send the values to the local MQTT broker if the values have changed (enough). The D1 got a nice housing on a solderable breadboard. The sensor cables can be plugged and unplugged into sockets on the breadboard. So I can easily exchange the…

    Read More YFNWG – your friendly neighbourhood washroom guard. IoT thresholded Temp/Hum/Open sensor with MicroPython on a D1 miniContinue

  • Food delivery for the blood sucker – publishing temp/hum values read from DHT22 connected to NodeMCU v3 with MicroPython to Mosquitto MQTT server via WiFi
    Prototypes

    Food delivery for the blood sucker – publishing temp/hum values read from DHT22 connected to NodeMCU v3 with MicroPython to Mosquitto MQTT server via WiFi

    ByStefan January 11, 2023January 26, 2024

    a.k.a. longest post title ever 😛 This is the Python code for a NodeMCU v3 running MicroPython 1.19.1. It will measure temperature and humidity at the connected DHT22 with breakout board every 30 seconds, connect to WiFi and publish to a MQTT server.The first code block will be the necessary as simple and clear as…

    Read More Food delivery for the blood sucker – publishing temp/hum values read from DHT22 connected to NodeMCU v3 with MicroPython to Mosquitto MQTT server via WiFiContinue

  • Dusting off the blood sucker – deleting sustained mosquitto messages
    HowTos

    Dusting off the blood sucker – deleting sustained mosquitto messages

    ByStefan April 25, 2022January 25, 2024

    After expermienting alot with my MQTT server it was pretty polluted with sustained messages and I wanted to get rid of them. The fastest way I got this reliably to work was by deleting the persistence file while the MQTT server was offline. You could delete all or specific topics with a script, too, but…

    Read More Dusting off the blood sucker – deleting sustained mosquitto messagesContinue

© 2025 works on my machine

Privacy Policy

Scroll to top
  • Projects
  • Prototypes
  • Coding
  • HowTos
  • Pinouts
  • Story time
Search