Using multiple RC522 RFID readers with Arduino

My latest project required the usage of multiple RFID readers to unlock something.

I decided to try to use an Arduino for this project. Unfortunatly the internet couldn’t offer me a ready-to-use solution. So together with a collegue I came up with the following SPI-based solution:

multiple_rfid_sketch_bb

Continue reading Using multiple RC522 RFID readers with Arduino

Automated linux-server backup with (Synology) NAS

One of the reasons I purchased a Synology NAS, was to automate the backups of my linux servers. The following short tutorial describes how I used my NAS.

I could simply allow (S)FTP-traffic to my NAS-box at home. But this violates the policy of my ISP, and I prefer to not have any open network-ports on my home-network. That’s why I decided that I wanted my NAS to download the backups files, instead of receiving the files. This also makes a lot more sense in terms of bandwidth usage, my servers are optimized to upload data, and my home network is optimized to download data. Continue reading Automated linux-server backup with (Synology) NAS

Regi: automated service-discovery for a single Docker-server

I’m a big fan of everything Docker. The ease of deploying new applications, the ease of back-upping, and the ease of putting configuration under source control has made my life a lot easier recently.

However one thing that gave me some mild headache was the networking. There seemed to be no easy way to let containers talk to each other, and allow to swap a service, without having to redeploy everything.

Fortunatly I was not the only one having these kind of problems. And systems like Consul seemed to offer a two-sided solution to this problem:

  • Key-value store for centralizing configuration
  • DNS-server for systems that are not able to use the key-value store

I started using the DNS-server included with Consul. I used configuration-files to tell Consul to resolve mysql.sevice.consul to resolve to the right container.

However each time I started a new mysql-container I needed to change the Consul-configuration. So I started to look for an automated solution. Continue reading Regi: automated service-discovery for a single Docker-server

Lifx-plugin for Kodi

I’ve always liked the Ambilight-feature on Philips TVs. These TVs have leds mounted on their back. When playing, these leds flash in the color that represents the current frame.

This really adds an extra dimension to the movie-watching-experience. With smart-lightbulbs we can really take this concept to the next level, and instead of just lighting up the back of your TV, why not light up you whole living-room.

That’s exactly what I did with a plugin for Kodi I wrote. This plugin will control my Lifx-bulbs, and rapidly change the color of my smart-bulbs, in order to match the current frame.

Here is a short demonstration:

Continue reading Lifx-plugin for Kodi