Code for Raspberry Pi / WebIOPi project