
4DCu.be
a blog about programming, gaming, technology, ...
-
Expanding Zigbee Range with Ikea Tradfri Repeaters
My brand new Aqara Sensors were on the very edge of my Zigbee range, resulting in unwanted disconnects every few days. Fortunately Sweden’s largest contemporary designer has a cheap solution … though getting it to run with Home Assistant was a bit of a challenge. The temperature, humidity and pressure...
-
Fighting Batch Effects with pyComBat
Even high-end scientific equipment can have a bad day! Machine performance can be affected by ambient temperature, humidity, … so when samples are measured in different batches, this needs to be corrected for. In this post we’ll have a look at the Python package pyComBat which does this elegantly and...
-
A Python powered MacroPad/StreamDeck
I decided to put left-over parts from my mechanical keyboard and a Raspberry Pi Pico to good use and build a MacroPad. This is a small keypad, where each switch can be programmed with a certain button or combination of buttons to quickly execute often needed shortcuts. Streamers often have...
-
Adding Aqara Sensors to Home Assistant
Home Assistant is running great! It is time to add some more devices to my setup, and since all groundwork to add Zigbee devices using Zigbee2MQTT was done previously (check out this post) it makes sense to add more devices that support this protocol. For this post I picked up...
-
PCA Plots with Loadings in Python
Like the previous Code Nugget, this bit of code will add some often needed features to PCA plots done with Python. Here the loadings and variance explained will be added to the plot, this is something that is included by default in R’s biplot(), but in Python there is more...
-
Correlation Heatmaps with Significance in Python
While Pandas and Seaborn offer very quick ways to calculate correlations and show them in a heatmap. Whether those correlations are statistically significant or not is omitted from those plots. Over the years I’ve collected bits and pieces of code, like this, that turn out to be quite useful. Though...
-
Building a Bluetooth Speaker Part 2
Finished my Kyber Crystal Crate Bluetooth speaker as shown in The Smuggler’s Room. The electronics inside were discussed in part 1. The shell is printed in PETG which had some issues with the details as the retraction settings were not dialed in 100% yet, so the prints required a fair...