<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Johan Hammar</title>
    <description></description>
    <link>https://www.johanhammar.se/</link>
    <atom:link href="https://www.johanhammar.se/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Tue, 23 Dec 2025 14:11:51 +0000</pubDate>
    <lastBuildDate>Tue, 23 Dec 2025 14:11:51 +0000</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>Running Home Assistant in a Docker environment</title>
        <description>
</description>
        <pubDate>Sun, 08 Nov 2020 19:55:00 +0000</pubDate>
        <link>https://www.johanhammar.se/ubuntu/linux/docker/home-assistant/2020/11/08/running-homeassistant-in-docker.html</link>
        <guid isPermaLink="true">https://www.johanhammar.se/ubuntu/linux/docker/home-assistant/2020/11/08/running-homeassistant-in-docker.html</guid>
        
        
        <category>ubuntu</category>
        
        <category>linux</category>
        
        <category>docker</category>
        
        <category>home-assistant</category>
        
      </item>
    
      <item>
        <title>Setting a static ip on your Raspberry Pi</title>
        <description>&lt;p&gt;Setting a static ip on your Raspberry Pi can be tricky, here’s what you need to know.&lt;/p&gt;

&lt;p&gt;The easiest way to set a static ip is to add the configuration in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/dhcpcd.conf&lt;/code&gt;. Edit the file in your favorite editor and scroll down to the bottom of the file.&lt;/p&gt;

&lt;p&gt;Add the following configuration:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;interface eth0
static ip_address=192.168.1.10/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Make sure the interface and the network configuration matches your requirements.&lt;/p&gt;
</description>
        <pubDate>Mon, 28 Aug 2017 19:55:00 +0000</pubDate>
        <link>https://www.johanhammar.se/raspberry/pi/wifi/static/2017/08/28/static-ip-raspberry-pi.html</link>
        <guid isPermaLink="true">https://www.johanhammar.se/raspberry/pi/wifi/static/2017/08/28/static-ip-raspberry-pi.html</guid>
        
        
        <category>raspberry</category>
        
        <category>pi</category>
        
        <category>wifi</category>
        
        <category>static</category>
        
      </item>
    
      <item>
        <title>How to configure a switch in Domoticz</title>
        <description>&lt;p&gt;This is a note to self on how to configure an ac outlet using RFXtrx433 in Domoticz.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Browse to your Domotics instance and go to the “Switches” tab&lt;/li&gt;
  &lt;li&gt;Click on Manual Light/Switch&lt;/li&gt;
  &lt;li&gt;Now configure the new device:
    &lt;ol&gt;
      &lt;li&gt;First give the new device a new name&lt;/li&gt;
      &lt;li&gt;Switch Type should be &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;On/Off&lt;/code&gt;&lt;/li&gt;
      &lt;li&gt;Change Type to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AC&lt;/code&gt;&lt;/li&gt;
      &lt;li&gt;Give the device a unique random id&lt;/li&gt;
      &lt;li&gt;Set the outlet in “learn mode” and click “Test”&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;Done!&lt;/li&gt;
&lt;/ol&gt;
</description>
        <pubDate>Mon, 28 Aug 2017 19:55:00 +0000</pubDate>
        <link>https://www.johanhammar.se/raspberry/pi/automation/domoticz/433mhz/2017/08/28/configure-switch-in-domoticz.html</link>
        <guid isPermaLink="true">https://www.johanhammar.se/raspberry/pi/automation/domoticz/433mhz/2017/08/28/configure-switch-in-domoticz.html</guid>
        
        
        <category>raspberry</category>
        
        <category>pi</category>
        
        <category>automation</category>
        
        <category>domoticz</category>
        
        <category>433mhz</category>
        
      </item>
    
      <item>
        <title>Installing Node.js on a Raspberry Pi 3</title>
        <description>&lt;p&gt;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 &lt;a href=&quot;https://www.raspbian.org/&quot;&gt;Raspbian&lt;/a&gt; is quite old.&lt;/p&gt;

&lt;p&gt;Don’t worry, it’s easy to install. Follow the instructions below and you’re all set.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get update
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;curl &lt;span class=&quot;nt&quot;&gt;-sL&lt;/span&gt; https://deb.nodesource.com/setup_7.x | &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;bash -
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;nodejs
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Verify the installation with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;node -v&lt;/code&gt;. It should output something like &lt;em&gt;v7.0.0&lt;/em&gt;&lt;/p&gt;
</description>
        <pubDate>Wed, 02 Nov 2016 19:55:00 +0000</pubDate>
        <link>https://www.johanhammar.se/raspberry/linux/nodejs/raspbian/2016/11/02/installing-nodejs-on-a-raspberry-pi-3.html</link>
        <guid isPermaLink="true">https://www.johanhammar.se/raspberry/linux/nodejs/raspbian/2016/11/02/installing-nodejs-on-a-raspberry-pi-3.html</guid>
        
        
        <category>raspberry</category>
        
        <category>linux</category>
        
        <category>nodejs</category>
        
        <category>raspbian</category>
        
      </item>
    
      <item>
        <title>Weather Forecast in the terminal</title>
        <description>&lt;p&gt;Here’s a nice trick I saw the other day. Run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$ curl -4 wttr.in/Göteborg&lt;/code&gt; and you’ll get a nice looking forecast in the terminal.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://www.johanhammar.se/assets/wttr.in-göteborg.png&quot; alt=&quot;Weather Forecast&quot; /&gt;&lt;/p&gt;

</description>
        <pubDate>Thu, 18 Feb 2016 10:00:00 +0000</pubDate>
        <link>https://www.johanhammar.se/curl/tool/2016/02/18/weather-forecast-in-the-terminal.html</link>
        <guid isPermaLink="true">https://www.johanhammar.se/curl/tool/2016/02/18/weather-forecast-in-the-terminal.html</guid>
        
        
        <category>curl</category>
        
        <category>tool</category>
        
      </item>
    
      <item>
        <title>Binero DynDNS</title>
        <description>&lt;p&gt;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, &lt;a href=&quot;https://www.binero.se&quot;&gt;Binero&lt;/a&gt;, preconfigured. Follow these easy steps to add support for Binero DynDNS in your Synology NAS&lt;/p&gt;

&lt;h2 id=&quot;prerequsities---verify-that-dyndns-is-correctly-setup&quot;&gt;Prerequsities - Verify that DynDNS is correctly setup.&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Use curl or a browser and call &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;https://EMAIL:PASSWORD@dyndns.binero.se/nic/update?hostname=HOST&amp;amp;myip=IP&lt;/code&gt; make sure you set EMAIL, PASSWORD, HOST and IP&lt;/li&gt;
  &lt;li&gt;You should get a response that says good or similar.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;add-binero-dyndns-to-synology&quot;&gt;Add Binero DynDNS to Synology&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Use SSH and log into your NAS.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Edit &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc.defaults/ddns_provider.conf&lt;/code&gt; and add the this block at the end of the file&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;
[Binero]
  modulepath=DynDNS
  queryurl=dyndns.binero.se/nic/update?hostname=__HOSTNAME__&amp;amp;myip=__MYIP__
&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Now log into your NAS and open &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Control Panel -&amp;gt; External Access&lt;/code&gt; and click on Add in the DDNS tab. Binero should now be in the list of Service Providers&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;You’re all set up! You should see your service provider and hostname in the list and status should be &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Normal&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Thu, 18 Feb 2016 06:00:00 +0000</pubDate>
        <link>https://www.johanhammar.se/binero/dyndns/synology/2016/02/18/binero-dyndns.html</link>
        <guid isPermaLink="true">https://www.johanhammar.se/binero/dyndns/synology/2016/02/18/binero-dyndns.html</guid>
        
        
        <category>binero</category>
        
        <category>dyndns</category>
        
        <category>synology</category>
        
      </item>
    
      <item>
        <title>Today I Learned</title>
        <description>&lt;p&gt;A few days ago I saw a post on &lt;a href=&quot;https://news.ycombinator.com/&quot;&gt;Hacker News&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://news.ycombinator.com/item?id=11068902&quot;&gt;&lt;img src=&quot;https://www.johanhammar.se/assets/show-hn-til.png&quot; alt=&quot;Show HN&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A &lt;a href=&quot;https://github.com/jbranchaud/&quot;&gt;guy&lt;/a&gt; had been writing daily TILs for a year and published them to a &lt;a href=&quot;https://github.com/jbranchaud/til&quot;&gt;GitHub repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The post seems to have gotten some positive traction and I was inspired to create my own &lt;a href=&quot;https://github.com/johanhammar/til&quot;&gt;TIL-repository&lt;/a&gt;. Feel free to fork or open a PR if you find anything that can be improved.&lt;/p&gt;

</description>
        <pubDate>Wed, 17 Feb 2016 09:20:57 +0000</pubDate>
        <link>https://www.johanhammar.se/til/github/2016/02/17/TIL.html</link>
        <guid isPermaLink="true">https://www.johanhammar.se/til/github/2016/02/17/TIL.html</guid>
        
        
        <category>til</category>
        
        <category>github</category>
        
      </item>
    
      <item>
        <title>New blog!</title>
        <description>&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;So, what’s different this time? For starters I will use &lt;a href=&quot;http://jekyllrb.com/&quot;&gt;Jekyll&lt;/a&gt; and host the blog on &lt;a href=&quot;https://pages.github.com/&quot;&gt;GitHub Pages&lt;/a&gt;. Hopefully this means I won’t have to administrate the blog too much.&lt;/p&gt;

&lt;p&gt;I don’t plan to have a comment section, in my previous blogging attempts I have been hit quite badly with comment spam. However, don’t hesitate to contact me. see details below.&lt;/p&gt;

&lt;p&gt;Johan&lt;/p&gt;
</description>
        <pubDate>Wed, 17 Feb 2016 08:00:57 +0000</pubDate>
        <link>https://www.johanhammar.se/blog/2016/02/17/new-blog.html</link>
        <guid isPermaLink="true">https://www.johanhammar.se/blog/2016/02/17/new-blog.html</guid>
        
        
        <category>blog</category>
        
      </item>
    
  </channel>
</rss>
