Shell script / web app for Raspberry Pi alarm system