The Last Hurrah Before Christmas

Since we have had a busy autumn this year on land focusing on such things as Buttercup, Wesley, car parts, and the workshop–as well as Schooner Chandlery–somehow the sailing has gotten shoved to the side of the plate.  OK, perhaps back burnered so far that it’s fallen behind the stove and is in residence down there with the dust bunnies.  So it is appropriate that for a couple weeks in early December, David and I scurried around and cleaned up the dust bunnies whilst also preparing Mahdee for some time out on the water.  Last minute we found ourselves checking systems as well as putting the ground tackle in order for anchoring, checking shroud tensions, making sure the forecastle was organized and then digging out the autopilot tether from beneath the pile of unmanagable stuff in the engine room.  Oh, I thought “how quickly we fell into life in a slip where things can be in disarray without significant worry” and how quickly everything became a mess.  So after a bit of minor “stash and lash” for the Bay sailing we determined that if we didn’t get Mahdee out on the water the weekend of December 9th and 10th it would be a full month before we could do so again!  Our plans were to put on the Christmas lights after our jaunt about the Bay. Once the boat is dressed in Christmas lights, no sailing could be had.

The boat's wake


Motoring along with the solid fuel stove still heating the boat and the shorepower cord just coiled on the fairlead seemed the epitomy of “liveaboard” not “sailor” as we gazed forward over the less-than-tidy deck.

Tides were perfect with plenty of water under the keel for transiting our sometimes shallow channel to the marina.  The channel was to be dredged this year but the BCDC decided to flex it’s muscles and just say “no!” to that action.  So it will be another year before boaters with deep draft can breath easy during the zero or negative tides.  Ah, but depth was perfect on the 9th and off we went for our Bay adventure.  As we motored out of the slough and up the channel I wondered if we’d have any wind at all.  The answer: a resounding “nope,” and so we motored and contented ourselves with the lazy and sunny day.  Temperatures in the high 50’s and the heat of the sun with no winds made for sweater weather instead of windbreakers, too.  We meandered up the Bay and towards the Financial District wondering what we’d do with our weekend.  Here it was a Saturday with glassy calm waters.  We expected the power boats to be out and about but yet there was nobody on the water save us and a couple sailboats drifting about trying to find some wind but instead being carried by the strong Bay currents.  We’d considered anchoring at Clipper Cove (David’s choice) and Aquatic Park (my favorite) but lost our appetite for adventure along the Financial District and decided to turn back to the South and make Sunday a “decorate the boat” day getting the lights strung up in the rig.


One sure way to get a smile from David is to go somewhere on Mahdee. Anywhere will do.

We headed back towards our marina a few hours lazy motoring away.  An anchored ship to the East gave us the 5 blasts of warning — and we were nowhere near their anchorage or swing.  The anchored ship was pointed in our direction so it was conceivable they were about to get underway. With the binoculars, David scanned their hawse pipes and chains to see if they were making ready to leave.  No movement of the chains.  Not quite happy with the information at hand but yet not keen to hail the anchored ship on the VHF radio “um, why are we in Danger from you?..”, we upped the engine RPM and scurried on by remaining in the western edge of the channel and wondering what that was all about and the mystery still remains.

With no winds, it was easy to motor back into our slip for the evening.  Conflicting thoughts about “well that was nice to be on the water but now we need to put up the Christmas lights” and “now why didn’t we just go ahead and drop the hook up at Aquatic Park?” were dancing through my head, briefly, that evening.  The thought hit me after adding some Anthracite to the Shipmate and baking some banana bread — all of which could have been done at anchor.

Nothing to see here

We have huge numbers of photos and videos.  Typically we just store them and do not do a thing with them.  Today, I was replying to a question in a sailing group and I wanted to find a photo of a particular thing: our round fender in use as a stern anchor rode marker or crab pot marker.  This photo would be useful to my reply.  While in search, I found the funniest non-action video:  David and I standing on deck watching a tree float by the boat while anchored bow and stern and tied to the side of Georgiana Slough.

At the time, we were concerned that the large log–actually it was a tree–would puncture the inflatable Tinker Traveler dingy.  It missed.  Then we became sure that it would foul on the anchor marker fender.  It did, temporarily, but then continued floating on down stream.  While caught, David conjectured that it might come back and ram us — always looking for the potential excitement. The beginning of a slow October day in the Delta captured on video.  I wonder what else we have in the terabytes of image and video files?

The Big Log Floating By from Schooner People on Vimeo.

The Power of Raspberry Pi–MythTV tweaks and techniques

This post continues my previous ramblings about using the Raspberry Pi aboard the boat.  To start this story at the very beginning, go to this post. To go to the previous post in this series, go here.

Screenshot of MythWeb running on Raspberry Pi 2

Now to discuss some lessons we have learned about using our RPI-2 with MythTV aboard Schooner Mahdee to record over-the-air TV broadcasts for later viewing: Why record when so much is available instantly over the Internet?  Four reasons:

  • we are often anchored where Internet access is unavailable, or the speed is too slow to stream video;
  • we pay for high speed (4G) access per gigabyte;
  • broadcast HDTV provides an effectively free source of additional bandwidth and the HDTV programming is often many times much higher resolution than via Internet streaming;
  • those shows can be saved on a hard drive for later viewing anywhere and anytime.

Stunningly beautiful full 1080 HDTV programming is often broadcast and can be saved for later viewing on a big vibrant HD computer monitor–even in places with no Internet at all.  Those very high resolution shows consume around 5GB per hour.  If using our 4G hotspot, at that rate, our entire monthly Internet bandwidth for work and pleasure is equivalent to a couple of HDTV movies.  By comparison, in some locations, we can record HDTV shows around the clock for free–an incredible deal!  In practice, each 24 hours of saved H-264 encoded HDTV recordings exceeds our total Internet bandwidth usage for the entire month. Our only cost is for the hard drives and each $150 hard drive can save thousands of shows and take up less space on the boat than a small paperback novel.  So, even when we could stream videos over the Internet, we rarely do.

Since we obviously travel a lot, our settings for MythTV are not set and forget–in contrast to more stationary users.  We use Antenna Web in each new location to determine where HDTV transmitters are relative to us and how well we can expect to receive different stations.  We have both an omni-directional and a directional gain antenna to choose from.  Spinning around on a single anchor makes the directional antenna unusable, but if the boat is fixed in orientation with multiple anchors or shore-tie, we can use it to increase reception of more distant HDTV stations.  Sometimes we can get great reception with the antenna below decks in a stealth mode.  For more challenging stations, reception may require an antenna be raised on a flag halyard–not so stealthy.

We have an inexpensive account at Schedules Direct which interfaces very well with MythTV.  With an Internet connection, we generally upload new schedule data every day or two.  There is limited (just the next 12 hours) program schedule data provided for free by the stations themselves on the transmitter frequency using EIT, but scheduling works best with longer range data and Schedules Direct provides about two weeks of scheduling. That data also includes lists of actors and other credits as well as descriptive information which we retain with our recordings and in a separate custom Ruby-on-Rails (RoR) web interface and database.

Schedules Direct also allows us to have four different locations in our profile.  Thus, we have one for each major city area we typically visit.  In those profiles, we can remove stations we do not want–such as those without English language audio–and our custom settings will persist until our next visit to that area.  I am constantly amazed at the number of over-the-air broadcast stations we can receive even when we are far from a metropolitan area.

With our large MythTV database of over 10,000 previously recorded shows, nearly 100 channels of available broadcast programs in many locations, and large number of rules and priorities about what we want to record, it can take several minutes after starting the MythTV back-end for it to figure out what to record. During that time, the MythTV front-end and MythWeb browser interface running on the RPI-2 will will show no scheduled recordings. Whenever possible, I use the command-line mythtv-status to see what is in the recording queue rather than running the more resource-intensive front-end. Even mythtv-status can take several minutes to complete and will show that nothing will be recorded until all of the data has been parsed and prioritized by the MythTV back-end.  Loading new schedule data from Schedules Direct can take nearly 20 minutes to process on our–admittedly overloaded–RPI-2. Sort of like sailing tack to tack to get to one’s ultimate destination, patience is required and one can not expect a newly added show to be put into the recording queue right away. I plan for the RPI-2 to take up to five minutes before a new recording is reflected in the queue.

With an Internet connection, MythTV gets program meta data for each recording so that we have images of cover art–which makes the front-end display nicer.  MythTV can also flag commercials so that they can be easily skipped during replay or even removed from the file entirely.  Commercial detection is very resource intensive, so we set MythTV on the RPI-2 to not do any commercial detection on the recordings. With this setup, the RPI-2 is also very useful as a desktop computer for me to browse the Internet using Firefox/Iceweasel, read and write email and other miscellaneous things all while displaying current weather data and monitoring anchor holding.

One glitch that I have encountered is that the MythTV startup script does not always work in Debian Jessie due to incompatibility with SystemD. The symptom is that the startup script completes with no errors, but the back-end is not running–starting and restarting MythTV using has no effect. The problem seems to be related to the init-functions command. Adding the following just before that call in /etc/init.d/mythtv-backend as follows helped:

_SYSTEMCTL_SKIP_REDIRECT=true
. /lib/lsb/init-functions

Then that fix failed so I am now manually starting MythTV using the old InitV command:

/etc/init.d/mythtv-backend start

It is also good to ensure that MythTV is not running before starting it and to make sure there is no file named /var/run/mythtv/mythbackend.pid. First kill hung processes and then check for the pid file and delete it if necessary before staring MythTV using the above command. Since I rarely reboot the RPI-2, manually starting MythTV works fine and the InitV command is trouble free.

Another glitch is that the HD HomeRun recordings sometimes fail leaving MythTV thinking the recording is still happening. After upgrading the HomeRun to the latest firmware, this situation happens less often. Still, every few days I need to stop MythTV and wait for all the threads to be killed and then restart MythTV.

Next, I will cover some system-wide optimizations that we have made that make MythTV more reliable given the highly loaded RPI2 we run it on.

Addendum: this conversation continues on our technology-focused website Windward Ho!

Google Analytics Alternative