My Smart Home

I'm currently adding some sensors to my appartment, in order to make it "smart". What exactly am I hoping to gain from this newly found intelligence? Data gathering, all presented with some nice dashboards and reports Adaptive lighting inside the living-room: always have the right amount/color of…

Read this article

Using Asp.net Taghelpers for building consistent UI components

Generally when creating asp.net razor templates, or HTML in general. We seperate structure from layout by only using HTML for the structure, and CSS for the way it looks. When using UI frameworks like Bootstrap we heavily validate this rule by defining the way it looks inside out HTML-documents.…

Read this article

Vsts build-agent with Docker, Dotnet Core & Nodejs installed

In order to do continious deployment I like to use Visual Studio Team Services. It is the perfect combination between cloud and on-premise. The cloud part is an intuitive way of defining build flows. However the actual building and packaging can happen anywhere. It could happen on the Azure-cloud but…

Read this article

3 easy steps to secure your Raspberry Pi

Having a Raspberry Pi in your network is a nice powerful low-energy host on which all kinds of applications like small databases or home-automation systems can run. Like all devices, we need to properly secure this device. Here are three basic steps which will make your Raspberry Pi better protected:…

Read this article

Backup Visual Studio Team Services projects

‚Äč import subprocess import requests import base64 import subprocess import os access_token = "xxx" api_output = requests.get("https://username:"+access_token +"@org.visualstudio.com/DefaultCollection/_apis/projects?api-version=1.0") for project in api_output.json()["value"]: print(project["name"…

Read this article

Getting started with Razor Pages

Razor pages is a new asp.net feature, available in .net core 2.0 that allows us to create pages without some of the overhead that MVC requires. Razor pages are intended to replace MVC controllers that look like this: public IActionResult About() { return View(); } By loading MVC we get…

Read this article

Backup GitHub repositories

You should also backup your GitHub repositories. The following Python-script will query the GitHub-api to get a list of your repositories. Next this script will run "git pull" on all of them. I run this script daily on my NAS. import subprocess import requests import base64 import subprocess…

Read this article

Create custom http sensor for Home-Assistant

Do you ever wanted to include some data coming from an external rest-api into your home automation? It's not at all hard to create a simple sensor that will run an http-call on each sensor update. Start by creating a file inside your homeassistant root folder. On most linux-systems this…

Read this article