Skip to content

works on my machine

¯\_(ツ)_/¯

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

Links

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

HowTos

Reminders for me, you and your friends how to do stuff you need when dealing with microcontrollers like Picos, D1 minis and Raspberry family members.

  • 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

  • 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

  • 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

  • Finding Nemo or check a Python list if there is one or all elements matching a condition
    Coding | HowTos

    Finding Nemo or check a Python list if there is one or all elements matching a condition

    ByStefan March 26, 2024

    Yeah we all can loop, but can you any or all? Checking if condition matches for at least one element of an iterable (e.g. list, tuple, set) In Python you can write that nicer with the builtin method any(): But who doesn’t like a one-liner (that is understandable): Very similar is the case if you…

    Read More Finding Nemo or check a Python list if there is one or all elements matching a conditionContinue

  • 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

  • You are locked in here with me(dia) – function keys always on. How to deactivate?
    HowTos

    You are locked in here with me(dia) – function keys always on. How to deactivate?

    ByStefan January 16, 2024

    Pressing F5 does not refresh your view anymore but rewinds the current media?F11 does not run the selected JUnit test in Eclipse any more but activates Caps Lock? I have a Logitech K850 keyboard and I unintentionally turned on the function key lock (didn’t even know such a thing existed). Try the following: [Fn] +…

    Read More You are locked in here with me(dia) – function keys always on. How to deactivate?Continue

  • How not to be seen – a.k.a. Notepad++ Analyse Plugin hidden result window
    HowTos

    How not to be seen – a.k.a. Notepad++ Analyse Plugin hidden result window

    ByStefan December 7, 2023January 15, 2024

    This short HowTo is about a problem I had with the Analyse Plugin for Notepad++. The Main window with the text and the one with the filters were still shown, but the result window disappeared and it wasn’t an instant fix to display it again. This is was worked for me:After a quick search I…

    Read More How not to be seen – a.k.a. Notepad++ Analyse Plugin hidden result windowContinue

  • Breaking the ice – solving frozen SSH on Raspberry OS
    HowTos

    Breaking the ice – solving frozen SSH on Raspberry OS

    ByStefan May 5, 2023May 5, 2023

    “I didn’t change anything and it (the SSH console) just kept on freezing”.This sound like something a callcenter agent would hear many times a day. Not that I ever worked shifts in the night and early on weekends and got paid really well posing as some who knows more than the computer screen in front…

    Read More Breaking the ice – solving frozen SSH on Raspberry OSContinue

Page navigation

1 2 Next PageNext

© 2025 works on my machine

Privacy Policy

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