Figure 6. Google Docs temperature log.
print(“picture capture FAILURE!”)
Get back into the Python interpreter and try out the
new function. Pass any name.jpg you want to the function
and it should spit out a viewable picture. From the
command line, you can use a program
called “fbi” to view the file (sudo apt-get
install fbi to install). Now, we can add a
call to this function in our
temp_monitor.py script and send a
picture of an emergency over email.
def gdoc_update(data, row):