Rolly Robot Alarm Clock
4. The Software
For our software to work, we need to install a few additional components to our Raspberry Pi. You will need to download the .ZIP file below. While there are two versions, the Ultrasonic Sensor is what determines which version you are able to use.
This should be unzipped into a folder on the desktop, the ‘alarm.py’ file opened, and lines 26 and 27 edited. You will need to replace ’email’ with your Google Calender email and ‘password’ with your password and save the file.
- calendar_service.email = ’email’ #your email
- calendar_service.password = ‘password’ #your password
Once the terminal is looking at the correct folder, it will be necessary to run “sudo chmod +x alarm_setup.sh” without the quotes.
Once this script has finished it will be possible to run the command “sudo ./alarm_setup.sh” which will run the installer.
Upon completion, your Rolling Robot is ready to run. If you are still in the directory where the files were unzipped, all that is necessary to run the program is type “python alarm.py”. This will start your robot scanning Google Calender for the phrase “wake1.”