My boring Blog

Mauro Frigerio blog

Cloudflare origin certificates in Traefik

23-07-2022 3 min read Article
Using Cloudflare as a DNS provider for your domains, you can take advantage of its SSL certificates to secure your websites. So you don’t have to struggle with Traefik and Let’s Encrypt to generate your own certificates. This guide is also useful if you use the free domains described in this post, because Cloudflare blocks the creation of certificates via Let’s Encrypt. Concept Cloudflare creates a dedicated certificate that allows the server to communicate only with Cloudflare’s servers. Continue reading

Multiple domains for the same container with Traefik

23-07-2022 1 min read Article
This example shows how you can configure several domains to access the same docker container by using Traefik. In this example I want to connect the domains whoami.example.com and whoami.traefik-examples.tk to the same docker container. All necessary files are available on GitHub. Requirements Two domain names that both point to the Traefik instance (in this example I use example.com and traefik-examples.tk) For both domains the SSL certificate is generated by Let’s Encrypt Traefik is already working (see basic example) Steps Aggiungere o modificare il docker-compose dei container interessati whoami: image: containous/whoami container_name: whoami labels: - 'traefik. Continue reading

Secondary home management experience with Home Assistant

22-07-2022 4 min read Article
TL;DR Taking advantage of the unofficial integration I connect two instances of Home Assistant to each other. Thanks to the Wireguard addons I am able to avoid the fact that the 4G modem does not have a public IP address. Intro Due to the 2G shutdown in Switzerland, I had to change the heating management system of the second house in the mountains. After some attempts for more than a year a working and resilient solution has been in operation. Continue reading

Sweeping effectiveness measurement

27-02-2022 4 min read Article
TL;DR Project to transform a curling broom into a measurement tool to evaluate effectiveness during sweeping in curling. An ESP32 measures the pressure exerted on two cells and an accelerometer measures the frequency of movement. The data is transmitted via BLE to a Bluetooth Web-enabled computer or smartphone. Intro Have you ever wondered how effective your sweeping is during a curling match? I have occasionally wondered that myself, particularly compared to the movement made by other players in the club. Continue reading

Watch camera from secondary home in Home Assistant

20-10-2021 2 min read Article
I wrote a post not long time ago about managing my secondary home with Home Assistant. Thanks to component the magic is possible, but an HA update has complicated things a bit. A few days ago there was the problem that the component could no longer connect with remote instances and since always (for me) it is not possible to view remote rooms. Remote instances connection problem The first case can be solved by updating the component to the latest version (> 3. Continue reading

Child control for Sonos speakers

29-09-2021 6 min read Article
TL;DR Using an ESP32 and Home Assistant with ESPhome you can control Sonos speakers (or other media players) without smartphone application. This is my project to allow my daughter to manage the music in our home (whenever we want). Intro We are in the process of fixing up a house and it’s time to do some major cleaning among all the stuff we’ve accumulated. In a cleaning raid an old baby cassette recorder was discovered, unfortunately it is no longer working (I will get it working eventually). Continue reading

Secondary home management with Home Assistant

22-08-2021 3 min read Article
When you get caught up in smart homes you can’t stop and want to automate everything. I started with the second home in the mountains and then got caught up. In this post I want to collect my experiences in managing the second home, specifically with Home Assistant. The big problem is that the LTE router doesn’t have a public IP address and I have to leverage a VPN to access the second home’s network from the outside. Continue reading
Older posts