A couple of small projects

I actually completed a couple of small projects this month! For someone who absolutely hates DIY I really enjoy it when I get the chance to physically make something. I think the pressure gets to me when it’s a DIY job, with any mistake immediately obvious to anyone else in the house and potentially very expensive to fix. But if I’m just making something creative for myself or as a gift then I can relax and enjoy it a bit more. It was with this in mind that I approached a gift for my wedding anniversary. 

The finished gift

After some extensive idea browsing I settled on a decorative mile marker signpost. I mulled it over for a few days and figured all it would need was a nice 3D frame to present in and some small cuts of balsa wood to make the sign post. The sign itself would have the towns where we’ve lived and a couple of important holiday locations (where we got engaged and where we spent our honeymoon), along with the distance in miles from our current home.

Unusually for one of my projects, it turned out to be as simple as I hoped and I was pretty pleased with the end result. A sharp knife cut the balsa into shape, a fine liner worked for the sign writing, and some wargaming texture grass for decorating figures added a bit of colour.

All was going really well until the week before our anniversary when my wife mentioned it was six years since our wedding, not the five I’d been certain it was. Which meant this year’s theme should have been iron, not wood. We laughed. Well, I laughed then had to explain what was so funny.

Thankfully despite my failure to count to six, the sentiment was very much appreciated and my wife loved the present in the end!

The second project I managed to finish used a completely different maker discipline, a bit more in my comfort zone. I’ve been playing with the Raspberry Pi computer for a year or two now and while I’ve had a lot of fun I haven’t finished a useful project for it yet. However a couple of weeks of frustrating poor service from Scotrail inspired me to finally put a Raspberry Pi Zero and a Pimoroni Inkyphat eInk screen to good use.

My plan was to have a small screen on my desk at work which would refresh periodically through the day with any service updates from the train operator, specifically for trains on my route home.

Sadly one of those trains was my way home

Scotrail operate a Journey Check website which lists all service updates in a fairly basic view. I could try and strip the data directly from there, but there is a better way. They also have the same page available as an RSS feed.  

I knocked up a short Python script using the Feedparser library to pull the RSS feed for my commuting route and then throw the page title, number of train updates, and the train details into some variables. These are then displayed together on the Inkyphat.  

The result is pretty good, though the limited screen estate of the Inkyphat means I lose some details off the edge. This is a fair trade for readability of the important train times though.  

Lastly I set a crontab to run the script every fifteen minutes and then placed it on my desk when I got to the office.  

Not to miss an opportunity, Scotrail duly cancelled various trains through the day including the one I had planned to take home. It was a bittersweet moment when I came back from lunch to see the screen had updated and my normal train was listed.

For those that might be interested in doing something similar, the code for the Python script is posted below.  

import inkyphat
from PIL import ImageFont
import feedparser

#Set font to use on the Inkyphat
font = ImageFont.truetype("/usr/lib/python3/dist-packages/inkyphat/fonts/Montserrat-Regular.ttf", 12)

#set the URL for the RSS feed - Scotrail's journey check between Aberdeen and Stonehaven in this case

#parse the RSS feed with feedparser

#pack variables with the feed tag data
updates= str(len(f.entries)) + " updates"
service = ""
for train in f.entries:
  service=service + train.title + "\n"


#uncomment two lines below to print output to screen for debugging
#message = head+updates+service+last_update
#print message 

#prepare lines for inkyphat
inkyphat.text((1, 1), head, inkyphat.RED, font)
inkyphat.text((1,10), updates, inkyphat.RED, font)
inkyphat.text((1,20), service, inkyphat.BLACK, font)
inkyphat.text((1,80), last_update, inkyphat.RED, font)

#write to Inkyphat

Music, News, Video, Writing

This week I have mostly been…

I’ve thrown myself down a few creative holes recently and had quite a busy week for putting work online in some form or another.

I recently began publishing articles on Medium to try out that platform and give myself another outlet for some writing which I think would be unsuitable to host here. I think I would like this site to become very informal and just be personal reflections rather than anything too serious or professional.

At the end of last week I posted an article there about how I try and maintain self-belief in the face of anxiety, depression and the mental issues which these conditions inflict on me

Then at the weekend I presented my parents with the gift I’d made for them to congratulate them on their ruby wedding anniversary. It’s a drawing of the family tree which they planted the seeds for forty years ago, along with a short poem I wrote for them

I’m pretty proud of it as someone who is really, really bad at drawing!

After that it was back to music and a project I’m working on throughout 2017 – recording 50 tunes throughout the year in a mix of video and sound recordings. This is an effort to get me learning and writing new music as well as building confidence in myself as a musician again. On Tuesday I posted a video of two tunes played on mandolin – Road to Banff and The Spey In Spate.

Once I’d recorded the mandolin set I left the camera set up and decided to do an impromptu poetry reading. I entered some poems into a major competition towards the end of last year and received confirmation that they’d not made the shortlist this week. Which, while disappointing, does mean they are now free to be entered elsewhere and shared with the world again. One of those poems is Leaving The Woods, which I wrote around the idea of leaving your childhood behind and based on some memories I had of the woods we played in as children.

I also published it via Medium with a bit of background on the poem itself and the stories told within it

Food and drink

Corrigans of Mayfair

Well this year has just flown past! To celebrate our first wedding anniversary we flew down to London for a celebratory getaway.  Neither of us have spent much time there in the past so this was as good a reason as any to go and act all touristy for a few days. The focal point of the trip was a fancy 3 course lunch at Richard Corrigan’s eponymous Mayfair restaurant. Continue reading “Corrigans of Mayfair”