Client-side code for use with the Xmas-Pi project