Leveraging Open Source for a smarter home - Part 1

17 May 2015

A personal account of decreasing electronic clutter and carbon footprint using Raspberry PI and Open Source for fun and profit.

Technology adaptation comes at a price - a house full of wires. Mine is no exception. My wire mesh/mess included:

I had issues.

-Watching you tube on Iomega media center was painful: YouTube automatic speed detection and buffering works horribly on my meager 1 MBPS unlimited connection. -The propriety internet client (ccrclient) crashes pretty frequently.

Started exploring alternatives, basically a solution to replace all 5 hardware devices and exploring alternative software which provided equivalent or better functionality.

Software

Open source is a goldmine for people looking for alternatives to propriety software. Some which i discovered on my quest:

Hostapd Enables creation of a Wireless AP using USB adapters. Basically users can “create” and customize their own WiFi  routers

Kodi (formerly XMBC) It is difficult to describe Kodi in few lines. However, If i were to make an attempt – Kodi is the most sophisticated media server available to mankind. Plays all possible formats, pulls media metadata/artwork/subtitles on the fly from internet, provides feeds to popular internet channels and lots more. Kodi can be called a “media shell” for Linux just like MATE/GNOME/KDE are for general computing.

Linc Daemon This is a replacement for Cyberoam and 24online propriety clients. This was hard to find and did not compile easily. Managed to find an old project and made some minor patches. The patched sources are on github : https://github.com/codeparity/linc-daemon

Mame An amazing open source project which allows you to play vintage arcade games.

Tested out the software on Intel / Ubuntu laptop worked fine with few hours of reading documentation on internet.

Hardware

With the software figured out, my search shifted to finding a worthy compact Linux running board capable of keeping up with software selected.

There are many choices in this department with raspberry pi, banana pi, beagle board, ordroid etc. Selected raspberry pi 2 with 1 GB ram simply because of community support and easy availability and ability to increase USB current (This was crucial, i wanted to add a cheap 2 TB storage drive to make a NAS drive). Ordered from RS India. Rs : 2950 ( ~ $46 )

Also needed a USB WIFI  dongle for hostapd. Found a WIFI  dongle which came alone with iomega media center. It worked with hostapd. No money spent.

Needed a SD card for Raspberry PI. Got a strontium class 16GB, 10 card for Rs 440 ( ~ $7 )

Also bought a 2TB 2.5” portable HDD for Rs 6100 (~ $ 94) for hosting all the media accumulated over the years, to be used with Kodi media server.

Also needed USB keyboard/mouse occasionally to debug any runtime issues while setting up.

Setting up

Result

After a day spent in setting up hardware and software configuration, I have the following

Power bill: The whole setup is running on Xiaomi phone adapter. Uses less than 10W. Total spent: Rs 9500 (~ $148)

Next to come:

Thanks for reading!

Source: https://www.linkedin.com/pulse/leveraging-open-source-smarter-home-part-1-ashish-tanwar