Lights is my take on Geoff Johnson's Raspberry Pi mains switching tutorial. I basically add a flashier UI and RESTful data using json for use later in a mobile app.