Integrating everything
Now it's your turn to integrate the Google spreadsheet project with the e-mail notifier project. All you have to do is better arrange the events of sending data to Google spreadsheets, logging data locally, and sending the e-mail. You can even try to attach the .csv
files when you send a day's summary. The application of this project is so vast that you can do much more with this code by adding functionalities. By adding multiple sensors with multiple RasPi boards in different corners of your home, you can really get much more data and many more alerts from your home.
If you are installing a RasPi in a remote place, do not forget to add the Python script in crontab
as described in Chapter 3, Measuring Distance Using Ultrasonic Sensors, to start logging the data again when the RasPi boots back.