Python Script

Author Gravatar Image MIKEY SKLAR
Now you're ready to write the code to check your gmail IMAP email (using feedparser) and light up the red or green LEDs 

Copy and paste the following text starting with cat << ! > and ending with the ! and paste that into your SSH window to paste all of the code into a new file called
Don't forget to set the username and password to match your gmail account! You can edit the file after the fact using the simple text editor nano, that is run nano  to make simple edits

Next up, we'll make the file into an application (executable), type chmod +x

Finally you can run the script! Type in sudo ./ 

Send yourself some emails to see the green LED light up!
Last updated on 2015-03-04 at 11.28.03 AM Published on 2012-07-29 at 03.58.38 PM