Notepad++ show line numbers
It’s a little hidden imo, so future-me or for your service – the setting to show the line numbers.

This is a step by step reminder how to get your Python scripts run automatically on your Raspberry. We will be creating a cron job that is run once when booting. (This should be possible like this or pretty similar on every Linux distribution where Cron is available and is not limited to Python scripts…
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…
Most of my Raspberry Pis run headless (just remote console, no GUI). To remind myself and for your service I wrote this short memo how to set them up correctly. You can also find the same and much more Pi related information here, but I like to keep the stuff I need together in one…
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…
“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…
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…