Tag Archives: Raspberry Pi

Upgrading My Old Raspberry Pi Kodi To A Pi Model 2

My  Kodi has been working quite well since I got it up and running on a 3 year old Pi a couple of months ago. Little things were bugging me though, when using the web interface,

With a movie running, pressing Stop in the web interface, took a couple of seconds to stop the stream, and then I would lose my connection between my desktop and the Kodi box. Also, only two people could stream at the same time, say one on the main TV and another watching on a phone. The third person trying to watch, would pretty much kill it.

No problem though, as Pi’s are so cheap, I replaced my B+ with a newer Model 2 with 1 gig or RAM an 4 processors.

Upgrading is easy as 1-2-3:

  1. Backup current Kodi using the OpenELEC settings menu
  2. Install the OpenELEC built for the Raspberry Pi 2 on a new microSD
  3. Boot up the new machine, and do a restore!

It was not a surprise that the backup took about 15 minutes on the old Kodi, but once I had the new one set up just right; backing up the Pi 2 only took about ~60 seconds!!

Any issues I’d had with my first generation Pi, are gone with the new one. With the Pi 3 just being released, I may even upgrade yet again in a couple of months.

The old model B+ Pi will not go to waste however, as my next project is some automation for my goat web cam!

 

New Project: Building A Kodi Media Server

January has been busy with many projects on the farm. Our Linux related project was the building of a Kodi *(Formally XBMC) media server.

Kodi Logo

Kodi Logo

We have hundreds of goat and other home movies, as well as an extensive library of our favorite films. The vast majority of our media have been stored for years on DVD, often stuck into one of our stack of Sony 400 DVD disk changers for easy viewing. Well the disk changers are getting old, 2 of them have stopped working all together, so why not play our media from hard disk instead!

There is always an old computer or two laying around the farm, doing nothing, but we decided it would be fun to build our Kodi box out of a Raspberry Pi computer instead!

We got our Pi from Amazon, in a kit that included the case, power supply, WiFi adapter, and a heat sink for the processor. For media storage, we purchased an external 5tb hard drive, which at the compression level we’re using, should hold over 1000 full length movies, plus my extensive collection of old time radio shows I’ve been collecting for over 50 years.

A trip to the Kodi.tv download page let us select the disk image required for our Raspberry Pi.

Once our disk image was downloaded, we used the Disks utility in the Linux Mint Control Center to select and then burn the disk image to a 16gb Class 10 micro SD card. Entire process took about 10 minutes.

Writing the disk image

Writing the disk image

Once burned, insert the micro SD card into your Raspberry Pi, and boot it up. Our bedroom TV will be getting the file server, so the Pi is plugged into our 32 inch LED TV with an HDMI cable.

Once booted, you can go into the various setup screens to make your new file server look and behave just how you’d like it to.

Movie demo screen from Kodi.tv

Movie demo screen from Kodi.tv

I’d recommend plugging a USB keyboard and mouse into your Raspberry Pi to make things easier when doing setup, like connecting to your home WiFi network.

What kind of media is entirely up to you. If your local laws allow fair use of your commercial DVD’s and music, then put them on your Kodi, and enjoy them easier than ever before!  Spending so much time in bed as I do, because of my Multiple Sclerosis, it’s sure nice to find a favorite film without digging through stacks of disks!

Kore Android Applicaiton

Kore Android Applicaiton

The next thing you want to do is install the free Kore, Kodi application for your phone or tablet. Kore gives you complete control of your Kodi server, and allows you to browse the content of your server in real time, as well as do maintenance duties like updating your media lists and descriptions.

Additionally, there are tons of open source additions to your Kodi that you can download directly from your Kodi server. Setting our home screen up with time and weather was the first thing we did. Adding Youtube and other favorite video sources to your Kodi just takes a few clicks.

Add ons are so easy to build, that I’ve already got one put together for our GoatsLive web site. Looking forward to submitting it for inclusion in the official repository!

After 3 weeks of use, my only complaint about this system, is why I didn’t do it much sooner!

Important Facts About Kodi

The Kodi team are open source developers. Kodi does NOT sell hardware,  they just make their wonderful software available to anyone who wants to use it.

The Kodi name and logo are trademarked by the Kodi team, and may not be used by sellers of hardware. Please do not be suckered in to purchasing a  “Free Internet TV” type of box that are sold online via ebay and youtube. These sources, with very few exceptions, are promoting and selling devices that are designed for piracy, using the good name of Kodi to do it. Most of these devices are selling in the $300 price range, but you can build a proper, legal Kodi box for as little as $35!

If you see someone selling Kodi branded hardware, please let the fine folks at Kodi know by using THIS LINK

Holiday Hardware: Playing With My Pi

Had a great Christmas and New Year with friends and family, but now it’s time to get back to Linux fun!

A piece of computer hardware I always wanted to experiment with, is the Raspberry Pi.

I most have been very good last year, because Santa got me  a Raspberry Pi for Christmas this year!  Of course I spent a lot of time  playing with it lately.

Raspberry Pi - Image courtesy Amazon.com

Raspberry Pi – Image courtesy Amazon.com

I was given the CanaKit package, that came complete with a WiFi dongle, SD card with the OS installed, a nice case, power supply, etc. Only thing I had to do was plug it into my HDMI television for a monitor and plug a USB keyboard and mouse into it.

After I played with it for a couple of days, getting the operating system, menus etc.  set up just the way I like it. I started thinking about a use for it!

Pondering the question for a couple of days, I decided that the Pi would work great as an automation system for my goat pen!

The idea, still in the design  and programming stages, is to use a series of Infrared motion detectors, to send a contact closure to the Raspberry Pi’s GPIO, which will then fire a terminal command to change the camera shot.

So, a goat walks into the feed area, the motion sensor would trip the Pi to send a command to turn on that camera! The programming should be pretty easy.

I use the Curl library to send commands to my 12 input video switcher. The Pi can easily send the same Curl command. In fact, Curl was the first software package I installed after I got my Pi booted up!

No real reason why it shouldn’t work, but it will take a lot of wiring of the motion sensor modules, from the different areas of the pen and then connect them to the Pi.

Should be a great and  useful project, and I’ll keep everyone up to date as I go!