Sleep function for Ubuntu with Web interface written in Python