Johan Hammar
Latest posts
Setting a static ip on your Raspberry Pi
Setting a static ip on your Raspberry Pi can be tricky, here’s what you need to know. The easiest way to set a static ip is to add the configuration in /etc/dhcpcd.conf . Edit the file in your favorite editor and scroll down to the bottom of the file. Add the following configuration: interface eth0 static ip_address=192.168.1.10/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1…
How to configure a switch in Domoticz
This is a note to self on how to configure an ac outlet using RFXtrx433 in Domoticz. Browse to your Domotics instance and go to the “Switches” tab Click on Manual Light/Switch Now configure the new device: First give the new device a new name Switch Type should be On/Off Change Type to AC Give the device a unique random id Set the outlet in “learn mode” and click “Test” Done!
Installing Node.js on a Raspberry Pi 3
Recently I bought a new Raspberry Pi 3 and wanted to run a few Node.js applications on it. Unfortunately the Node.js version that is available on Raspbian is quite old. Don’t worry, it’s easy to install. Follow the instructions below and you’re all set. $ sudo apt-get update $ curl -sL https://deb.nodesource.com/setup_7.x | sudo bash - $ apt-get install nodejs Verify the installation with node -v…
Weather Forecast in the terminal
Here’s a nice trick I saw the other day. Run $ curl -4 wttr.in/Göteborg and you’ll get a nice looking forecast in the terminal.
Binero DynDNS
I have an old Synology DS213j NAS that I want to use for DynDNS. Now Synology does support DDNS but does not come with my DynDNS provider, Binero , preconfigured. Follow these easy steps to add support for Binero DynDNS in your Synology NAS Prerequsities - Verify that DynDNS is correctly setup. Use curl or a browser and call https://EMAIL:PASSWORD@dyndns.binero.se/nic/update?hostname=HOST&myip=IP…
Today I Learned
A few days ago I saw a post on Hacker News . A guy had been writing daily TILs for a year and published them to a GitHub repository . The post seems to have gotten some positive traction and I was inspired to create my own TIL-repository . Feel free to fork or open a PR if you find anything that can be improved.
New blog!
Once every year I try to start blogging. I’ve tried several different solutions but most of my attempts have been using self hosted Wordpress installations. Wordpress is great but it is also a bit overkill. Managing databases, users, plugins etc. is too much for me, I just need a place where I can write my thoughts down. So, what’s different this time? For starters I will use Jekyll and host the…