Script has bashisms
Check date every 30, rather than 3, seconds

To save battery