Skip to content

works on my machine

¯\_(ツ)_/¯

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

Links

Github
  • About
works on my machine
¯\_(ツ)_/¯
  • Which kettlebells to buy? Possible unique combination sums of int values in Python
    Coding

    Which kettlebells to buy? Possible unique combination sums of int values in Python

    ByStefan July 25, 2025July 25, 2025

    It is prime day and you are wondering which kettlebells to buy? What are the possible weight combinations of all different weights including using between one and all of them with a dip belt? Yeah that’s really the motivation of how this started 🙂 What became of if was a method taking multiple int values,…

    Read More Which kettlebells to buy? Possible unique combination sums of int values in PythonContinue

  • Not in the dark any more – Scan Wifis with micropython on an ESP8266
    Coding

    Not in the dark any more – Scan Wifis with micropython on an ESP8266

    ByStefan July 19, 2025

    A small script to scan the neighbouring Wifis with your microcontroller. You get the following information about them: Kept the code as simple and small as possible. Available functions in network package could vary depending on used microcontroller type and micropython version / implementation. Resource links:

    Read More Not in the dark any more – Scan Wifis with micropython on an ESP8266Continue

  • It’s really already Xmas? HomeAssistant helper entity with current month used for visibility of cards in UI
    HowTos

    It’s really already Xmas? HomeAssistant helper entity with current month used for visibility of cards in UI

    ByStefan December 17, 2024

    Not everything is like shorts for computer science students – some other things only make sense in certain months. Like my webscrapers for the current water temperature of the outside pool or the warning system for below 0°C degress. To hide them in the HomeAssistant UI I created a helper that is filled with the…

    Read More It’s really already Xmas? HomeAssistant helper entity with current month used for visibility of cards in UIContinue

  • I am a bit wiser or – how to combine dictionaries and see what changed
    Coding

    I am a bit wiser or – how to combine dictionaries and see what changed

    ByStefan December 9, 2024

    I currently had the problem of handling updates with partial settings of RGB lights through MQTT and HomeAssistant. As The setting has to be complete at all times in the running system, so my first solution were multiple if else clauses and changed flags. It works, but it is ugly and over-complicated. I didn’t use…

    Read More I am a bit wiser or – how to combine dictionaries and see what changedContinue

  • 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

  • Ports of your call – How to setup docker with Portainer and as unprivileged user on a Raspberry (Linux)
    HowTos

    Ports of your call – How to setup docker with Portainer and as unprivileged user on a Raspberry (Linux)

    ByStefan November 21, 2024January 15, 2025

    Be it HomeAssistant, mosqitto, NodeRed – I use docker to run them on a Raspberry and thanks to Portainer I can manage them with a a nice WebUI. It has been some time I set it up and as needed it again and had forgotten some of it I decided to make a short todo…

    Read More Ports of your call – How to setup docker with Portainer and as unprivileged user on a Raspberry (Linux)Continue

  • Hydras got a new head – how to add a USB device to a docker container (homeassistant) on Linux
    HowTos

    Hydras got a new head – how to add a USB device to a docker container (homeassistant) on Linux

    ByStefan November 18, 2024January 10, 2025

    Plain and simple (or better in the case I forget it again). You can add the device when pulling and starting the HomeAssistant container. Make sure to adapt config path to yours.Add “–device/dev/NameOfDevice” If you don’t know the path of the USB device you can see a list of them with this command: I a…

    Read More Hydras got a new head – how to add a USB device to a docker container (homeassistant) on LinuxContinue

  • Juggling with (your) balls – Quick sort in Python
    Coding

    Juggling with (your) balls – Quick sort in Python

    ByStefan September 17, 2024November 21, 2024

    A milltion times already on the internet and sorting methods already integrated in the language – so why?Because written things stay better in the brain and I like to understand things from the ground. ArjanCodes (I love your content!) recently posted a video about recursive functions and used a similar code. I won’t have written…

    Read More Juggling with (your) balls – Quick sort in PythonContinue

  • WordPress doing it like BER – Stuck in maintenance mode
    HowTos

    WordPress doing it like BER – Stuck in maintenance mode

    ByStefan September 17, 2024November 21, 2024

    FTP to your WordPress root directory and delete the “.maintenance” file. This is only the simple solution for the case you closed the browser tab you started the update in and now the banner “…in maintenance mode” appears instead of the website.This won’t repair your wordpress installation when something went wrong with it and that…

    Read More WordPress doing it like BER – Stuck in maintenance modeContinue

  • Is it a bird? Is it a plane? Nah – just a Python class behaving like a dictionary.
    Coding | HowTos

    Is it a bird? Is it a plane? Nah – just a Python class behaving like a dictionary.

    ByStefan April 9, 2024April 10, 2024

    For a container class with a dictionary with config values (among other members) I wanted easy reading access as if it was a dict itself. For that you only have to implement the __getitem__ method. You can extend the provided dict functionality for your class if needed like the following: All but the update method…

    Read More Is it a bird? Is it a plane? Nah – just a Python class behaving like a dictionary.Continue

  • Conan smash mirrors! – Remove duplicates in a Python list
    Coding | HowTos

    Conan smash mirrors! – Remove duplicates in a Python list

    ByStefan March 31, 2024April 3, 2024

    As most of the time – there are multiple valid ways of doing it. Keeping the order I prefer easy and readable, if it is not crucial for performance to go another way.Create a new list and add only values to it that are not already included. You can do this with a simple list…

    Read More Conan smash mirrors! – Remove duplicates in a Python listContinue

  • I am here. Definitively NOT sleeping or sunbathing – A configurable anti-AFK Python script with pyautogui
    Coding

    I am here. Definitively NOT sleeping or sunbathing – A configurable anti-AFK Python script with pyautogui

    ByStefan March 28, 2024

    Yeah I know it’s kinda pointless. I was thinking the same thing when I doomscrolled youtube shorts watching a so called programmer “Herr Programmierer” showing a simple script moving the mouse in a fixed interval to coordinates in a fixed square. I was bored, I like Python and sure I could create a better pointless…

    Read More I am here. Definitively NOT sleeping or sunbathing – A configurable anti-AFK Python script with pyautoguiContinue

Page navigation

1 2 3 … 5 Next PageNext

© 2025 works on my machine

Privacy Policy

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