Managing home assistant’s configuration with atom

There are lots of ways how to edit and manage the configuration files of home assistant. You can mount the filesystem on your PC and use your favorite text editor or use the configurator addon to edit the files online. I’ve tried quite a lot of these options and found my favorite: the atom editor with the remote sync plugin. That way I edit the files locally and the plugin takes care of syncing them to my home assistant instance. Bonus: in case anything happens to the home assistant server I always have a local copy.

Read More

Daily logrotate for docker

Dockerized serviced just as “normal” services tend to write quite a lot of information to their log files. So many that one day the disk will be completely filled. To avoid this, log files should be rotated regularly, ie old information has to be removed. Actually docker itself is able to rotate the logs. But as far as I know docker is rotating based on file size and not on time. To comply with the European General Data Privacy Regulations (GDPR) however I’m only allowed to keep IP adresses of visitors of my webpages for 7 days. So I need time based log rotation. Here a classic linux server tool comes to the rescue: logrotate

Read More

Automated reverse HTTP and HTTPS proxy on docker with nginx

Usually the host server has only one fixed IP. So all domains of all your dockerized services get resolved to the same IP. Somehow the server needs to know, how to route all the requests and responses to correct app. On a “normal” webserver you would be using virtual hosts to direct the traffic to the correct page. On a docker host things are a bit more complex, as each dockerized app is using it’s own webserver. So we’ll need a reverse proxy to route the traffic.

Read More

Docker host – basic installation

Docker is a system to run applications in independent containers. This makes apps easier to deploy, update and migrate. I’m using it on several docker host servers, all of them are set up in the same way. They are all using debian as operating system, docker community edition and ldap based user login. In this post I’ll describe my standard setup of a docker host system.

Read More

Installation of hass.io on a raspberry pi

I’ve been using home assistant in a virtual machine on my home server for almost a year now. It rellay is a great piece of software for home automation with almost limitless possibilities. However I’ve decided to move it to hass.io on a raspberry pi mainly because of some additional features. On the rapberry I can directly use the bluetooth module needed for some sensors. And hass.io offers some need add ons like a server to control Amazon’s FireTV stick or my USV. Except the more limited CPU I couldn’t find any drawbacks so far. Hass.io is basically a very slim linux running home assistant and some other useful tools in docker containers which you can control from home assistant’s gui.

Read More

Texdoc for arch linux

Texdoc is a fast way to find and open \LaTeX package documentation. I write quite a lot of school related documents in \LaTeX. There are tons of great packages and I use quite a few of them. Most I don’t use regularly so often forget how things work and need to look at the documentation. I used to open the documentation from terminal by a quick

texdoc packagename

Read More