<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://freakent.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://freakent.github.io/" rel="alternate" type="text/html" /><updated>2020-11-25T19:44:18+00:00</updated><id>https://freakent.github.io/feed.xml</id><title type="html">Stuff for Gadgeteers and Makers</title><subtitle>I blog about the things that interest me, or things that if I don't write down I will probably forget. Professionaly I'm a tech guy with close to 30 years in the IT Industry. You could say I' a bit of a &lt;i&gt;Geek&lt;/i&gt; who travels quite a lot. I write this Blog for myself, if it helps inform or entertain others then that's a bonus!</subtitle><entry><title type="html">Blog Comments with Staticman</title><link href="https://freakent.github.io/blog/2018/06/08/blog-comments-with-staticman.html" rel="alternate" type="text/html" title="Blog Comments with Staticman" /><published>2018-06-08T00:00:00+00:00</published><updated>2018-06-08T00:00:00+00:00</updated><id>https://freakent.github.io/blog/2018/06/08/blog-comments-with-staticman</id><content type="html" xml:base="https://freakent.github.io/blog/2018/06/08/blog-comments-with-staticman.html">&lt;p&gt;Despite not being good at responding to all Comments on my WordPress Blog (I
blame the fact that I could never get the email notifications to work from
WordPress), I had some good Comments on a number of my posts that I didn’t want to
loose. The Jekyll WordPress migration tool copied all the Comments into the
front-matter of each post, so it was easy enough to render them under each blog
post. But the real issue was how do you allow people to post Comments with a static site?
&lt;!--more--&gt;
Most of the big blog sites seem to have switched off Comments and instead rely on
Social Media. I came up with various ideas involving Twitter and Amazon Lambda,
and was about to abandon Comments entirely when I discovered a really elegant
solution in a system call &lt;a href=&quot;www.sddsfds&quot;&gt;Staticman&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;www.sddsfds&quot;&gt;Staticman&lt;/a&gt; provides a couple of simple HTTP
API endpoints that create Git Pull requests to add Comment files to your Git
repository inside a Jekyll Collection. That’s a really elegant solution to the
problem of Comments, all I have to do to approve a comment is merge the pull
request to my Master branch. GitHub even sends me email notifications so I might
even be better at responding to Comments in the future. Take a look at my
&lt;a href=&quot;asdsadsa&quot;&gt;Staticman config file&lt;/a&gt; if you want to see how I set it up.&lt;/p&gt;

&lt;p&gt;Staticman is very flexible in how you want to organise your Comment collection
but I still had the problem of my existing Comments. Rather than treat the old
Comments different to any new Comments I wrote a small script in Ruby to create
comment YAML files in my chosen collection from Jekyll front-matter. Look in the
scripts folder of my sites Git repository if you want to see more.&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;Martin&quot;}</name></author><category term="Software Development" /><summary type="html">Despite not being good at responding to all Comments on my WordPress Blog (I blame the fact that I could never get the email notifications to work from WordPress), I had some good Comments on a number of my posts that I didn’t want to loose. The Jekyll WordPress migration tool copied all the Comments into the front-matter of each post, so it was easy enough to render them under each blog post. But the real issue was how do you allow people to post Comments with a static site?</summary></entry><entry><title type="html">I ❤️ Jekyll</title><link href="https://freakent.github.io/blog/2018/05/27/I-heart-jekyll.html" rel="alternate" type="text/html" title="I ❤️ Jekyll" /><published>2018-05-27T00:00:00+00:00</published><updated>2018-05-27T00:00:00+00:00</updated><id>https://freakent.github.io/blog/2018/05/27/I-heart-jekyll</id><content type="html" xml:base="https://freakent.github.io/blog/2018/05/27/I-heart-jekyll.html">&lt;p&gt;After a few years of neglect and paying Digital Ocean $5/month+tax for hosting
by Wordpress site, I decided it was time for a change. I have been using the
static website generator, &lt;a href=&quot;http://jekyllirb.com&quot;&gt;Jekyll&lt;/a&gt;, at work to power a couple of websites and I
just love it’s simplicity. &lt;a href=&quot;http://jekyllirb.com&quot;&gt;Jekyll&lt;/a&gt; is also what powers &lt;a href=&quot;http://github.com&quot;&gt;GitHub Pages&lt;/a&gt; making
it really simple to host really great looking blog totally for free on GitHub.
There are plenty of examples of Jekyll sites and blogs hosted on &lt;a href=&quot;http://github.com&quot;&gt;GitHub Pages&lt;/a&gt;
just a few clicks away on Google, but I thought I’d share some of the details of
how I set up this site that I didn’t find elsewhere.
&lt;!--more--&gt;
Firstly, some of the things I love about &lt;a href=&quot;http://jekyllirb.com&quot;&gt;Jekyll&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;em&gt;&lt;a href=&quot;www.blah&quot;&gt;Markdown&lt;/a&gt;&lt;/em&gt;: It’s great being able to just type words and add simple
formatting, but I’m still able to sprinkle in a few HTML tags if needed. I can
even rely on my text editor (currently Atom) to check spelling as I type.&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;Git Workflow&lt;/em&gt;: Unlike my Wordpress site I can write content any where with
just a simple text editor then push changes to a Git repository next time I’m online
(I’m currently writing this 37,000 feet somewhere above the Indian Ocean). With
&lt;a href=&quot;http://github.com&quot;&gt;GitHub Pages&lt;/a&gt; pushing to the Master branch of my repository automatically
publishes the latest version of the site. Similarly, on my other Jekyll sites I
have started using Git Hooks to invoke build and deploy scripts automatically
when the Master Branch is pushed.&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;[Liquid]&lt;/em&gt;: Scripting in Liquid is good enough to create some pretty flexible
layouts. See below for more about Liquid and Arrays.&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;Posts, Collections &amp;amp; Data&lt;/em&gt;: Jekyll’s built in ability to create pages and
content from data files and YAML is really powerful.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Challenges
Moving my blog from Wordpress to &lt;a href=&quot;http://jekyllirb.com&quot;&gt;Jekyll&lt;/a&gt; + &lt;a href=&quot;http://github.com&quot;&gt;GitHub Pages&lt;/a&gt; wasn’t all easy
though, there were a few challenges I had to solve. Rather than describe them
all here and make one long enormous post, I’ll create separate posts about
each and include links here.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;www.sddsfds&quot;&gt;Blog Comments with Staticman&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub Pages and Jekyll plug-ins
GitHub has a fixed, limited set of Jekyll plugins that it supports and will not
execute any custom or 3rd party plug-ins. I assume they want to avoid people
running custom code on their servers. I never felt the need to use Jekyll
Plug-ins on the other Jekyll sites I have built so I didn’t think this would be
much of an issues, but there was more than one occasion where
a custom liquid filter (e.g. for processing a Jekyll data hash table) or Jekyll
generator (e.g. for generating category pages) would have made things simpler.
So far I have found work arounds but I keep wondering whether I will have to
switch to generating my site elsewhere then pushing the generated site to GitHub.
I really want to avoid that but we’ll see how it goes.&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;Martin&quot;}</name></author><category term="Software Development" /><summary type="html">After a few years of neglect and paying Digital Ocean $5/month+tax for hosting by Wordpress site, I decided it was time for a change. I have been using the static website generator, Jekyll, at work to power a couple of websites and I just love it’s simplicity. Jekyll is also what powers GitHub Pages making it really simple to host really great looking blog totally for free on GitHub. There are plenty of examples of Jekyll sites and blogs hosted on GitHub Pages just a few clicks away on Google, but I thought I’d share some of the details of how I set up this site that I didn’t find elsewhere.</summary></entry><entry><title type="html">Soil Moisture Sensor with Arduino, XBee and Node-Red</title><link href="https://freakent.github.io/blog/2015/02/09/soil-moisture-sensor-with-arduino-xbee-and-node-red.html" rel="alternate" type="text/html" title="Soil Moisture Sensor with Arduino, XBee and Node-Red" /><published>2015-02-09T20:52:39+00:00</published><updated>2015-02-09T20:52:39+00:00</updated><id>https://freakent.github.io/blog/2015/02/09/soil-moisture-sensor-with-arduino-xbee-and-node-red</id><content type="html" xml:base="https://freakent.github.io/blog/2015/02/09/soil-moisture-sensor-with-arduino-xbee-and-node-red.html">&lt;p&gt;&lt;span style=&quot;color: #3c3c3c;&quot;&gt;&lt;a href=&quot;http://www.freakent.co.uk/2015/02/09/soil-moisture-sensor-with-arduino-xbee-and-node-red/img_0266/&quot; rel=&quot;attachment wp-att-920&quot;&gt;&lt;img class=&quot;alignright wp-image-920&quot; src=&quot;http://www.freakent.co.uk/wp-content/uploads/2015/02/IMG_0266.jpg&quot; alt=&quot;IMG_0266&quot; width=&quot;200&quot; height=&quot;118&quot; /&gt;&lt;/a&gt;I have planted some chilli seeds and I am supposed to keep them moist, only trouble is I am rubbish at remembering to water my plants. I bought three cheap soil moisture sensor kits off ebay and hooked them up to an Arduino. The Arduino has an&amp;nbsp;&lt;/span&gt;&lt;a style=&quot;color: #00a9de;&quot; href=&quot;http://www.digi.com/products/wireless-wired-embedded-solutions/zigbee-rf-modules/zigbee-mesh-module/xbee-zb-module&quot; target=&quot;_blank&quot;&gt;XBee&lt;/a&gt;&lt;span style=&quot;color: #3c3c3c;&quot;&gt;&amp;nbsp;shield and sends messages to my Raspberry Pi over a Zigbee network. The Pi is running&amp;nbsp;&lt;/span&gt;&lt;a style=&quot;color: #00a9de;&quot; href=&quot;http://nodered.org/&quot; target=&quot;_blank&quot;&gt;Node-Red&lt;/a&gt;&lt;span style=&quot;color: #3c3c3c;&quot;&gt;&amp;nbsp;on node.js. When the soil moisture goes above a certain threshold it sends a message via&amp;nbsp;&lt;/span&gt;&lt;a style=&quot;color: #00a9de;&quot; href=&quot;http://www.prowlapp.com/&quot; target=&quot;_blank&quot;&gt;Prowl&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;color: #3c3c3c;&quot;&gt;to my iPhone.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #3c3c3c;&quot;&gt;&lt;a href=&quot;http://www.freakent.co.uk/2015/02/09/soil-moisture-sensor-with-arduino-xbee-and-node-red/img_0271/&quot; rel=&quot;attachment wp-att-921&quot;&gt;&lt;img class=&quot;alignright wp-image-921&quot; src=&quot;http://www.freakent.co.uk/wp-content/uploads/2015/02/IMG_0271.jpg&quot; alt=&quot;IMG_0271&quot; width=&quot;200&quot; height=&quot;267&quot; /&gt;&lt;/a&gt;Everything worked fine for three days then the sensors failed and I was continually receiving prowl alerts. Thank heavens for iOS &quot;Do Not Disturb&quot; otherwise I would have been woken up by constant alerts! It turns out that putting a continuos DC current through moist soil causes electrolysis on the soil moisture probes. One probe on each sensor had lost nearly all it's conductive coating. Apparently the only real solution to this problem is to use AC current, swapping polarity across the probes at regular intervals. I can't see how that is possible with my soil moisture kits so I have now redesigned things so that the sensors are only powered up for a second every 30 mins to take readings. According to my calculations the probes should last about 10 years this way - that should be long enough for my chillies to grow.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: #3c3c3c;&quot; /&gt;&lt;br style=&quot;color: #3c3c3c;&quot; /&gt;&lt;span style=&quot;color: #3c3c3c;&quot;&gt;Assuming I can get this working, the next step will be to connect up 1 or 3 small water pumps to automate the watering. Although I think I might wait until the seedlings are big enough to put outside before I start spraying water all over the place in-doors.&lt;/span&gt;&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;martin&quot;, &quot;login&quot;=&gt;&quot;martin&quot;, &quot;email&quot;=&gt;&quot;martin@freakent.co.uk&quot;, &quot;url&quot;=&gt;&quot;http://www.freakent.co.uk&quot;}</name><email>martin@freakent.co.uk</email></author><category term="Internet of Things" /><summary type="html">I have planted some chilli seeds and I am supposed to keep them moist, only trouble is I am rubbish at remembering to water my plants. I bought three cheap soil moisture sensor kits off ebay and hooked them up to an Arduino. The Arduino has an&amp;nbsp;XBee&amp;nbsp;shield and sends messages to my Raspberry Pi over a Zigbee network. The Pi is running&amp;nbsp;Node-Red&amp;nbsp;on node.js. When the soil moisture goes above a certain threshold it sends a message via&amp;nbsp;Prowl&amp;nbsp;to my iPhone.&amp;nbsp;</summary></entry><entry><title type="html">Fibre Optic Broadband Availability Tools</title><link href="https://freakent.github.io/blog/2014/03/13/fibre-optic-broadband-availability-tools.html" rel="alternate" type="text/html" title="Fibre Optic Broadband Availability Tools" /><published>2014-03-13T11:25:54+00:00</published><updated>2014-03-13T11:25:54+00:00</updated><id>https://freakent.github.io/blog/2014/03/13/fibre-optic-broadband-availability-tools</id><content type="html" xml:base="https://freakent.github.io/blog/2014/03/13/fibre-optic-broadband-availability-tools.html">&lt;p&gt;So what do you do if the BT's Broadband availability checker says that your exchange has been enabled for FTTC (Fibre to the cabinet), but your broadband provider says it is not available at your address? Dig a little deeper and look at whether you are connected directly to the exchange of via a cabinet.&lt;/p&gt;
&lt;!--more--&gt;
&lt;p&gt;Try these links:&lt;/p&gt;
&lt;p&gt;BT Openreach When and Where:&amp;nbsp;&lt;a href=&quot;http://www.superfast-openreach.co.uk/where-and-when/&quot;&gt;http://www.superfast-openreach.co.uk/where-and-when/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;FTTC Checker :&lt;a href=&quot; http://fttc-check.alc.im/results.php?postcode=SW1A2AA&quot;&gt;&amp;nbsp;http://fttc-check.alc.im/results.php?postcode=SW1A2AA&lt;/a&gt; &amp;nbsp;(change the post code to your own)&lt;/p&gt;
&lt;p&gt;BT Broadband Availability Checker:&amp;nbsp;&lt;a href=&quot;http://www.dslchecker.bt.com/adsl/adslchecker.welcome&quot;&gt;http://www.dslchecker.bt.com/adsl/adslchecker.welcome&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;SamKnows Broadband Checker:&amp;nbsp;&lt;a href=&quot;https://www.samknows.com/broadband/broadband_checker&quot;&gt;https://www.samknows.com/broadband/broadband_checker&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Only trouble is I still can't figure out how to find out when my local cabinet will be upgraded.&lt;/p&gt;
&lt;p&gt;This looks like a useful troubleshooting tip.&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #000000;&quot;&gt;With your modem/router unplugged, on your phone dial 17070, option 3, 1, 2, 2. What does it report back ?&lt;/span&gt;&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;martin&quot;, &quot;login&quot;=&gt;&quot;martin&quot;, &quot;email&quot;=&gt;&quot;martin@freakent.co.uk&quot;, &quot;url&quot;=&gt;&quot;http://www.freakent.co.uk&quot;}</name><email>martin@freakent.co.uk</email></author><category term="Internet" /><category term="broadband" /><category term="fibre optic" /><category term="fttc" /><summary type="html">So what do you do if the BT's Broadband availability checker says that your exchange has been enabled for FTTC (Fibre to the cabinet), but your broadband provider says it is not available at your address? Dig a little deeper and look at whether you are connected directly to the exchange of via a cabinet.</summary></entry><entry><title type="html">Pretty as a Pi-cture: Raspberry Pi Server in a Picture Frame Case (phase 1)</title><link href="https://freakent.github.io/blog/2014/02/03/pretty-as-a-pi-cture-raspberry-pi-server-in-a-frame.html" rel="alternate" type="text/html" title="Pretty as a Pi-cture: Raspberry Pi Server in a Picture Frame Case (phase 1)" /><published>2014-02-03T23:26:33+00:00</published><updated>2014-02-03T23:26:33+00:00</updated><id>https://freakent.github.io/blog/2014/02/03/pretty-as-a-pi-cture-raspberry-pi-server-in-a-frame</id><content type="html" xml:base="https://freakent.github.io/blog/2014/02/03/pretty-as-a-pi-cture-raspberry-pi-server-in-a-frame.html">&lt;p&gt;
  

&lt;p style=&quot;text-align: center;&quot;&gt;
  &lt;a href=&quot;/assets/img/2014/pretty-as-a-pi-cture-raspberry-pi-server-in-a-frame//IMG_0170.jpg&quot;&gt;
    &lt;img class=alignright title=&quot;Raspbery Pi in a frame&quot; alt=&quot;&quot; src=&quot;/assets/img/2014/pretty-as-a-pi-cture-raspberry-pi-server-in-a-frame//IMG_0170.jpg&quot; /&gt;
  &lt;/a&gt;
&lt;/p&gt;

  A couple of years ago I watched &lt;a href=&quot;http://hak5.org/geek/building-a-photo-frame-computer-case-2&quot;&gt;hak.5's Darren&lt;/a&gt; build a case for his gaming rig out of a couple of IKEA picture frames. Ever since then I have been waiting for the right opportunity to do the same. A couple of months ago the motherboard failed in My Mini-ITX server so I thought I'd try replacing it with a Raspberry Pi. The Pi has been performing it's home automation duties perfectly ever since but I couldn't find a decent Raspberry Pi server case. And so the inspiration for this project began.&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;I have a few USB peripherals hooked up to my Pi; an XBee coordinator attached to a &lt;a href=&quot;http://proto-pic.co.uk/xbee-explorer-dongle/&quot;&gt;XBee Explorer Dongle&lt;/a&gt;, an &lt;a href=&quot;http://www.rfxcom.com/store/Transceivers/12103&quot;&gt;RFXCOM RFXtrx433&lt;/a&gt; and a &lt;a href=&quot;http://www.iogear.com/product/GBU521/&quot;&gt;IOGear Bluetooth 4&lt;/a&gt; dongle. The Pi is known to struggle to supply enough power for some USB devices so it made sense to use a powered USB hub, for which I chose a &lt;a href=&quot;http://shop.pimoroni.com/products/pihub&quot;&gt;PiHub&lt;/a&gt;. I wanted all of this to go in the server case with the Pi.&lt;/p&gt;
&lt;p&gt;The overall design is pretty simple. Mount the Pi, the USB hub and the USB devices in one picture frame without the glass. Then attach the second frame with hinges on top of the first without the backing panel. I also wanted to add sockets for power and Ethernet to the bottom edge so that they can be attached/detached easily from outside the case.&lt;/p&gt;
&lt;p&gt;For phase 1 of this project I wanted to concentrate on getting everything mounted in the first frame.&lt;/p&gt;
&lt;p&gt;Here's the parts list for my Pi-cture Frame case so far:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;2 x &lt;a href=&quot;http://www.ikea.com/gb/en/catalog/products/20078050/&quot;&gt;IKEA RIBBA&lt;/a&gt; 500mmx500mm deep picture frames&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ebay.co.uk/itm/221274751326?ssPageName=STRK:MEWNX:IT&amp;amp;_trksid=p3984.m1439.l2649&quot;&gt;SMA Male Plug Right Angle 10cm GSM GPRS 433MHz Antenna&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://proto-pic.co.uk/panel-mount-ethernet-extension-cable/&quot;&gt;Panel mount Ethernet extension cable&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ebay.co.uk/itm/251223174617?var=550335841222&amp;amp;ssPageName=STRK:MEWNX:IT&amp;amp;_trksid=p3984.m1439.l2649&quot;&gt;2.5mm Panel mount DC power socket&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ebay.co.uk/itm/251223174617?var=550212196885&amp;amp;ssPageName=STRK:MEWNX:IT&amp;amp;_trksid=p3984.m1439.l2649&quot;&gt;2.5mm Inline DC male plug&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ebay.co.uk/itm/231125337603?ssPageName=STRK:MEWNX:IT&amp;amp;_trksid=p3984.m1439.l2649&quot;&gt;Short USB A to micro USB right angle cable&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ebay.co.uk/itm/350939434099?ssPageName=STRK:MEWNX:IT&amp;amp;_trksid=p3984.m1439.l2649&quot;&gt;Short USB A to USB B cable&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ebay.co.uk/itm/400281857690?var=670029379239&amp;amp;ssPageName=STRK:MEWNX:IT&amp;amp;_trksid=p3984.m1439.l2649&quot;&gt;5 x M2.5x12 plastic nuts, bolts and washers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;500mm-ish double strand cable&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I spaced things out to leave me some flexibility to add other peripherals later. After all I still have one free USB port and all the Pi's GPIO pins left to play with.&lt;/p&gt;
&lt;p&gt;The M2.5x12 nuts and bots fit the Raspberry Pi's mounting holes perfectly. All I had to do was to drill appropriate holes in the backing plate to bolt them together.&lt;/p&gt;
&lt;p&gt;I used the same bolts with the PiHub but I had to dissemble it's casing to drill my own mounting holes. Two larger screwdriver sized holes in the backing board behind the casing screws make relatively easy to refit the hub's casing.&lt;/p&gt;
&lt;p&gt;It was a similar situation with the RFXCOM but it's casing is stiffly snapped on. I decided it would be too hard to use the bolts so I just looped a couple of cable ties through holes in the casing and backing board. As the RFXCOM is effectively now mounted on its side, I also replaced it's original antenna with one that has a 90 degree mount. It's not officially supported by RFXCOM but so far I haven't noticed any degradation in performance.&lt;/p&gt;
&lt;p&gt;The DC power socket was easy to fit by just drilling a suitable hole in the frame. The case was too thick to be able to use the socket's screw on retaining ring but it's a pretty tight fit without it. I soldered on some double strand cable and the inline male plug to the other end. This plugs directly into the PiHub. The 2.5mm socket is the same size as on the PiHub and it's power supply fits perfectly.&lt;/p&gt;
&lt;p&gt;The Ethernet socket cable was actually the hardest thing to fit. It's basically square shaped and alI I have is round drills. It was that NASA &quot;square plug in a round hole&quot; problem. The end result is not as tidy as I would have liked but it's ok if you don't look too close underneath!&lt;/p&gt;
&lt;p&gt;The whole thing in now hanging on my study wall, minus the glass front. The two antennas stick out a little too far to just use one frame. So in phase 2 I will add the glass fronted second frame onto the first frame with a set of hinges. To make it look nicer I will cover the backing board with something like dark felt. I'll also replace the long cable between the hub and RFXCOM with a shorter one. I am a little worried about ventilation so I might drill some extra large holes I the backing board which won't be visible from the front.&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;martin&quot;, &quot;login&quot;=&gt;&quot;martin&quot;, &quot;email&quot;=&gt;&quot;martin@freakent.co.uk&quot;, &quot;url&quot;=&gt;&quot;http://www.freakent.co.uk&quot;}</name><email>martin@freakent.co.uk</email></author><category term="Internet of Things" /><category term="usb" /><category term="xbee" /><category term="raspberry pi" /><category term="rfxtrx433" /><category term="picture frame" /><category term="server" /><category term="case" /><summary type="html">A couple of years ago I watched hak.5's Darren build a case for his gaming rig out of a couple of IKEA picture frames. Ever since then I have been waiting for the right opportunity to do the same. A couple of months ago the motherboard failed in My Mini-ITX server so I thought I'd try replacing it with a Raspberry Pi. The Pi has been performing it's home automation duties perfectly ever since but I couldn't find a decent Raspberry Pi server case. And so the inspiration for this project began.</summary></entry><entry><title type="html">Improvised ReadyNAS NV Power Supply</title><link href="https://freakent.github.io/blog/2013/12/25/improvised-readynas-nv-power-supply.html" rel="alternate" type="text/html" title="Improvised ReadyNAS NV Power Supply" /><published>2013-12-25T18:03:01+00:00</published><updated>2013-12-25T18:03:01+00:00</updated><id>https://freakent.github.io/blog/2013/12/25/improvised-readynas-nv-power-supply</id><content type="html" xml:base="https://freakent.github.io/blog/2013/12/25/improvised-readynas-nv-power-supply.html">&lt;p&gt;&lt;img class=&quot;alignright&quot; alt=&quot;&quot; src=&quot;http://www.chriserice.com/word/uploads/20060210-readynasnv-003.jpg&quot; width=&quot;200&quot; /&gt;The power supply on my Infrant/Netgear &lt;a href=&quot;http://www.readynas.com/&quot;&gt;ReadyNAS NV&lt;/a&gt; has died again. That's the third power supply in just over 7 years that has failed.&lt;/p&gt;
&lt;p&gt;The ReadyNAS has mostly been great but the power supply really has been it's achilles heal. The RAID set up means that if a disk fails you can still get at your data and can simply swap out the failed disk for a new one. But when the power supply fails you are screwed. You can't get at your data and, since they use a proprietary wiring scheme, you can't just pop into you local PC store to buy a new one. Netgear will sell you a replacement, but they are really overpriced and it can take several days for shipping, assuming they even have them in stock.&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;Thanks to this &lt;a href=&quot;http://www.readynas.com/download/archive/pdf/ReadyNAS_PSU_pinout.pdf&quot; target=&quot;_blank&quot;&gt;ReadyNAS PSU pinout&lt;/a&gt;&amp;nbsp;document I found on Netgear's ReadyNAS site, I figured out how to re-wire a standard ATX power supply to work with the ReadyNAS. I pulled a power supply out of an old PC and swapped a couple of wires around. The result isn't pretty but it works.&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://www.freakent.co.uk/wp-content/uploads/2013/12/IMG_0898.jpg&quot;&gt;&lt;img class=&quot;wp-image-852 aligncenter&quot; alt=&quot;IMG_0898&quot; src=&quot;http://www.freakent.co.uk/wp-content/uploads/2013/12/IMG_0898.jpg&quot; width=&quot;480&quot; height=&quot;359&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 1.5em;&quot;&gt;The hardest bit was actually pulling out the two molex pins without destroying the molex. This video came in very handy.&lt;/span&gt;&lt;br /&gt;
http://www.youtube.com/watch?v=kXMwCQ9fIVM&amp;amp;w=500&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;martin&quot;, &quot;login&quot;=&gt;&quot;martin&quot;, &quot;email&quot;=&gt;&quot;martin@freakent.co.uk&quot;, &quot;url&quot;=&gt;&quot;http://www.freakent.co.uk&quot;}</name><email>martin@freakent.co.uk</email></author><category term="Gadgets" /><category term="nas" /><category term="readynas" /><category term="disk" /><category term="netgear" /><category term="infrant" /><summary type="html">The power supply on my Infrant/Netgear ReadyNAS NV has died again. That's the third power supply in just over 7 years that has failed. The ReadyNAS has mostly been great but the power supply really has been it's achilles heal. The RAID set up means that if a disk fails you can still get at your data and can simply swap out the failed disk for a new one. But when the power supply fails you are screwed. You can't get at your data and, since they use a proprietary wiring scheme, you can't just pop into you local PC store to buy a new one. Netgear will sell you a replacement, but they are really overpriced and it can take several days for shipping, assuming they even have them in stock.</summary></entry><entry><title type="html">Howto fix a missing eth0 adapter after moving ubuntu server from one box to another</title><link href="https://freakent.github.io/blog/2013/12/12/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another.html" rel="alternate" type="text/html" title="Howto fix a missing eth0 adapter after moving ubuntu server from one box to another" /><published>2013-12-12T20:00:34+00:00</published><updated>2013-12-12T20:00:34+00:00</updated><id>https://freakent.github.io/blog/2013/12/12/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another</id><content type="html" xml:base="https://freakent.github.io/blog/2013/12/12/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another.html">&lt;p&gt;The SATA controller on my Mini-ITX server's mother board has died. To get the important files off the drive I hooked it up to another PC and booted into Linux. It seemed to boot up perfectly (try doing that with Windows!), except the network adapter wouldn't start. After a bit of Googling around I found this article.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.serenux.com/2009/11/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another&quot; target=&quot;_blank&quot;&gt;http://www.serenux.com/2009/11/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another&lt;/a&gt;/&lt;/p&gt;
&lt;p&gt;A Simple edit of a config file and reboot and we were back in business.&lt;/p&gt;
&lt;p&gt;It seems that this is more a Debian thing than specific to Ubuntu. Same problem can occur on a Raspberry Pi and the same fix works.&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;martin&quot;, &quot;login&quot;=&gt;&quot;martin&quot;, &quot;email&quot;=&gt;&quot;martin@freakent.co.uk&quot;, &quot;url&quot;=&gt;&quot;http://www.freakent.co.uk&quot;}</name><email>martin@freakent.co.uk</email></author><category term="Linux" /><category term="ubuntu" /><category term="raspberry pi" /><category term="debian" /><summary type="html">The SATA controller on my Mini-ITX server's mother board has died. To get the important files off the drive I hooked it up to another PC and booted into Linux. It seemed to boot up perfectly (try doing that with Windows!), except the network adapter wouldn't start. After a bit of Googling around I found this article. http://www.serenux.com/2009/11/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another/ A Simple edit of a config file and reboot and we were back in business. It seems that this is more a Debian thing than specific to Ubuntu. Same problem can occur on a Raspberry Pi and the same fix works.</summary></entry><entry><title type="html">Node-RED and XBee</title><link href="https://freakent.github.io/blog/2013/09/26/node-red-and-xbee.html" rel="alternate" type="text/html" title="Node-RED and XBee" /><published>2013-09-26T18:56:00+00:00</published><updated>2013-09-26T18:56:00+00:00</updated><id>https://freakent.github.io/blog/2013/09/26/node-red-and-xbee</id><content type="html" xml:base="https://freakent.github.io/blog/2013/09/26/node-red-and-xbee.html">&lt;p&gt;&lt;a href=&quot;http://www.freakent.co.uk/wp-content/uploads/2013/09/Screen-Shot-2013-09-26-at-19.26.11.png&quot;&gt;&lt;img src=&quot;http://www.freakent.co.uk/wp-content/uploads/2013/09/Screen-Shot-2013-09-26-at-19.26.11.png&quot; alt=&quot;Node-RED XBee&quot; width=&quot;300&quot; class=&quot;alignright size-full wp-image-817&quot; /&gt;&lt;/a&gt;I recently discovered a really interesting new Open Source project for integrating devices and services, it's called &lt;a href=&quot;http://nodered.org/&quot; target=&quot;_blank&quot;&gt;Node-RED&lt;/a&gt;. Sponsored by IBM, the project is built on node.js and describes itself as &quot;A visual tool for wiring the Internet of Things&quot;. It combines a graphical design tool that runs in a web browser and a runtime execution engine. Devices and services are represented by &quot;nodes&quot; which are wired together using the design tool to create a &quot;flow&quot;. Although a number of built-in nodes are provided there isn't one for integrating an XBee wireless network so I rolled up my sleeves and built one. &lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;br /&gt;
My XBee &quot;node&quot; (there are definitely too many things called &quot;node&quot; in this project!) communicates with the XBee network through an XBee wireless module connected to the computer's serial port. It uses the excellent &lt;a href=&quot;https://github.com/jouz/svd-xbee&quot; target=&quot;_blank&quot;&gt;svd-xbee node.js module&lt;/a&gt; to communicate with an XBee module configured as a network Coordinator, using the XBee API mode. I use the &lt;a href=&quot;https://www.sparkfun.com/products/8687?&quot; target=&quot;_blank&quot;&gt;Sparkfun XBee Explorer USB&lt;/a&gt; to connect the XBee module to my serial port. If you need information on how to configure XBee modules take a look at my earlier &lt;a href=&quot;http://www.freakent.co.uk/tag/xbee/&quot; target=&quot;_blank&quot;&gt;posts&lt;/a&gt; on XBee.&lt;/p&gt;
&lt;p&gt;To use the XBee node in your own Node-RED flow, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install node.js and Node-RED as per these &lt;a href=&quot;http://nodered.org/docs/getting-started/installation.html&quot; target=&quot;_blank&quot;&gt;instructions&lt;/a&gt;. &lt;/li&gt;
&lt;li&gt;Install svd-xbee module. Currently the XBee node depends on the latest version of svd-xbee which is only available directly from GitHub.&lt;br /&gt;
&lt;code&gt; $ npm install git+https://github.com/jouz/svd-xbee.git &lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Download or clone the XBee node from GitHub &lt;a href=&quot;https://github.com/freakent/NR-XBee.git&quot; target=&quot;_blank&quot;&gt;https://github.com/freakent/NR-XBee.git&lt;/a&gt;&lt;br /&gt;
&lt;code&gt; $ git clone https://github.com/freakent/NR-XBee.git &lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Edit and run the XBee node's install script&lt;br /&gt;
Edit the install.sh script and change the NR_HOME variable to match the directory where you installed Node-RED. Make sure the script is executable and then run it.&lt;br /&gt;
&lt;code&gt; $ chmod +x install.sh&lt;br /&gt;
 $ ./install.sh&lt;br /&gt;
&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Connect your Coordinator configured XBee module into a USB port and take note of the serial port your operating system associates it with.&lt;br /&gt;
On MacOS you can use&lt;br /&gt;
&lt;code&gt; $ ls /dev/tty.usb*&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Start up your Node-RED installation, as per the &lt;a href=&quot;http://nodered.org/docs/getting-started/running.html&quot; target=&quot;_blank&quot;&gt;instructions here&lt;/a&gt;.&lt;br /&gt;
Hopefully Node-RED will start up and you shouldn't see any error messages relating to either the Serial or XBee nodes.&lt;/li&gt;
&lt;li&gt;Check the XBee components are available in the Node-RED console&lt;br /&gt;
Fire up your web browser and point it at the URL given to you during Node-RED startup, typically http://127.0.0.1:1880/. The XBee node should be visible in the palette on the left as input and output nodes. You can now drag an XBee node into your flow and configure it as required.
&lt;/ol&gt;
&lt;p&gt;Eventually Node-RED will support nodes being installed as regular npm modules so hopefully these instructions should get shorter in the future.  &lt;/p&gt;
&lt;p&gt;I now have everything I need to create v3 of my &lt;a href=&quot;http://www.freakent.co.uk/2012/02/10/idoorbell-v2-using-prowl-arduino-xbee-and-acs712-current-sensor/&quot;&gt;iDoorbell project&lt;/a&gt;, replacing Apache ServiceMix with Node-RED. Node-RED is looking like a much simpler and easier to use integration solution for me. Watch this space to see how it turns out.&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;martin&quot;, &quot;login&quot;=&gt;&quot;martin&quot;, &quot;email&quot;=&gt;&quot;martin@freakent.co.uk&quot;, &quot;url&quot;=&gt;&quot;http://www.freakent.co.uk&quot;}</name><email>martin@freakent.co.uk</email></author><category term="Internet of Things" /><category term="javascript" /><category term="xbee" /><category term="zigbee" /><category term="node.js" /><category term="node-red" /><summary type="html">I recently discovered a really interesting new Open Source project for integrating devices and services, it's called Node-RED. Sponsored by IBM, the project is built on node.js and describes itself as &quot;A visual tool for wiring the Internet of Things&quot;. It combines a graphical design tool that runs in a web browser and a runtime execution engine. Devices and services are represented by &quot;nodes&quot; which are wired together using the design tool to create a &quot;flow&quot;. Although a number of built-in nodes are provided there isn't one for integrating an XBee wireless network so I rolled up my sleeves and built one.</summary></entry><entry><title type="html">Raspberry Pi Powered, Android Controlled, Tomcat Serviced, Remote Garage Door Opener</title><link href="https://freakent.github.io/blog/2013/06/28/raspberry-pi-powered-android-controlled-tomcat-serviced-remote-garage-door-opener.html" rel="alternate" type="text/html" title="Raspberry Pi Powered, Android Controlled, Tomcat Serviced, Remote Garage Door Opener" /><published>2013-06-28T13:22:56+00:00</published><updated>2013-06-28T13:22:56+00:00</updated><id>https://freakent.github.io/blog/2013/06/28/raspberry-pi-powered-android-controlled-tomcat-serviced-remote-garage-door-opener</id><content type="html" xml:base="https://freakent.github.io/blog/2013/06/28/raspberry-pi-powered-android-controlled-tomcat-serviced-remote-garage-door-opener.html">&lt;p&gt;http://ryanfx.blogspot.co.uk/2013/06/raspberry-pi-powered-android-controlled.html&lt;/p&gt;
&lt;p&gt;http://pi4j.com/ The PI4J Project, Connecting Java to the Raspberry Pi&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;martin&quot;, &quot;login&quot;=&gt;&quot;martin&quot;, &quot;email&quot;=&gt;&quot;martin@freakent.co.uk&quot;, &quot;url&quot;=&gt;&quot;http://www.freakent.co.uk&quot;}</name><email>martin@freakent.co.uk</email></author><category term="Links" /><category term="java" /><category term="pi4j" /><category term="raspberry pi" /><summary type="html">http://ryanfx.blogspot.co.uk/2013/06/raspberry-pi-powered-android-controlled.html http://pi4j.com/ The PI4J Project, Connecting Java to the Raspberry Pi</summary></entry><entry><title type="html">Teensy 3.0, like Arduino but better</title><link href="https://freakent.github.io/blog/2013/06/27/teensy-3-0.html" rel="alternate" type="text/html" title="Teensy 3.0, like Arduino but better" /><published>2013-06-27T21:03:24+00:00</published><updated>2013-06-27T21:03:24+00:00</updated><id>https://freakent.github.io/blog/2013/06/27/teensy-3-0</id><content type="html" xml:base="https://freakent.github.io/blog/2013/06/27/teensy-3-0.html">&lt;p&gt;&lt;a href=&quot;http://www.freakent.co.uk/wp-content/uploads/2013/06/20130627-225930.jpg&quot;&gt;&lt;img class=&quot;alignright&quot; alt=&quot;20130627-225930.jpg&quot; src=&quot;http://www.freakent.co.uk/wp-content/uploads/2013/06/20130627-225930.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;I've been looking for a low cost and smaller footprint Arduino board to use with XBee. &lt;a href=&quot;http://www.pjrc.com/teensy/index.html&quot;&gt;Teensy 3.0&lt;/a&gt; is now officially my favourite Arduino board.&lt;/p&gt;
&lt;p&gt;I had high hopes for &lt;a title=&quot;Digispark from DigiStump&quot; href=&quot;http://digistump.com/products/1&quot; target=&quot;_blank&quot;&gt;DigiSpark&lt;/a&gt; but it doesn't have a serial UART and I wasn't able to get the software serial library to work with it. The need to have 5V to 3.3V logic conversion didn't help either. Then I stumbled upon Teensy, a range of really small Arduino compatible boards. The latest model is the Teensy 3.0, powered by a 32bit ARM Cortex-M4 processor. Unlike most other Arduino boards, the Teensy 3.0 runs at 3.3V not 5V. This makes it much simpler to connect the Teensy 3.0 to an XBee which also runs at 3.3V. It has more analog and digital IO pins than a regular Arduino and THREE hardware serial ports. The USB connection can also be used to send additional Serial messages to the Arduio IDE serial monitor, very useful for debugging XBee serial communication without the debug messages&amp;nbsp;interfering&amp;nbsp;with the XBee communication.&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;Like the DigiSpark, the latest Teensy 3.0 was also a successful KickStarter project. The Teensy 3.0 is now available from &lt;a title=&quot;PJRC&quot; href=&quot;http://www.pjrc.com/store/teensy3.html&quot; target=&quot;_blank&quot;&gt;PJRC's&lt;/a&gt; web site and other online electronics retailers. I ordered mine through &lt;a title=&quot;Proto-Pic&quot; href=&quot;http://proto-pic.co.uk/teensy-3-0/&quot; target=&quot;_blank&quot;&gt;Proto-Pic&lt;/a&gt; in the UK and it arrived less than 48 hours later.&lt;/p&gt;
&lt;p&gt;It didn't take long to get the regular Arduino Blink program running on the Teensy. Soon after that I had the Teensy on a breadboard and wired up to an XBee on one of the Teensy's three serial ports. I'm really pleased with how painless it's been to get the Teensy 3.0 working. I will be ordering more for future projects.&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://www.freakent.co.uk/wp-content/uploads/2013/06/20130627-230211.jpg&quot;&gt;&lt;img class=&quot;aligncenter&quot; alt=&quot;20130627-230211.jpg&quot; src=&quot;http://www.freakent.co.uk/wp-content/uploads/2013/06/20130627-230211.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content><author><name>{&quot;display_name&quot;=&gt;&quot;martin&quot;, &quot;login&quot;=&gt;&quot;martin&quot;, &quot;email&quot;=&gt;&quot;martin@freakent.co.uk&quot;, &quot;url&quot;=&gt;&quot;http://www.freakent.co.uk&quot;}</name><email>martin@freakent.co.uk</email></author><category term="Internet of Things" /><category term="Arduino" /><category term="xbee" /><category term="Teensy" /><summary type="html">I've been looking for a low cost and smaller footprint Arduino board to use with XBee. Teensy 3.0 is now officially my favourite Arduino board. I had high hopes for DigiSpark but it doesn't have a serial UART and I wasn't able to get the software serial library to work with it. The need to have 5V to 3.3V logic conversion didn't help either. Then I stumbled upon Teensy, a range of really small Arduino compatible boards. The latest model is the Teensy 3.0, powered by a 32bit ARM Cortex-M4 processor. Unlike most other Arduino boards, the Teensy 3.0 runs at 3.3V not 5V. This makes it much simpler to connect the Teensy 3.0 to an XBee which also runs at 3.3V. It has more analog and digital IO pins than a regular Arduino and THREE hardware serial ports. The USB connection can also be used to send additional Serial messages to the Arduio IDE serial monitor, very useful for debugging XBee serial communication without the debug messages&amp;nbsp;interfering&amp;nbsp;with the XBee communication.</summary></entry></feed>