Codebase for the raspberry pi headsup curtain switch