A notification and check system for Gmail on Raspberry Pi 3 & Sense HAT. The aim is to use the Sense HAT module as a notifier of the state of your inbox. It works perfectly with Gmail and Inbox by Google. Nevertheless, it is theoretically compatible with all email servers using IMAP without advanced connections (other than Login/Password).
Email Checker for Sense HAT (ECFS) Raspberry Pi 3 requires: Python 2.7 (for Sense HAT & IMAPClient) and Nano (for configuration)
Pull or extract the repository where you want on your Raspberry: https://github.com/wdelenclos/Projet_ECFS
Install required elements
Open your command line and, before launching any script, install the following python libraries and apt:
pip install imapclient sudo apt-get update sudo apt-get install sense-hat sudo reboot
Now you can configure ECFS (currently the comments are in French because I'm French):
sudo nano start.py
Find the following required variables and put your own values in:
HOSTNAME = 'imap.gmail.com' USERNAME = 'username' PASSWORD = 'password'
You can also modify some other values, such as if you want show logs in the terminal:
LOG = True
Choose the folders to modify:
MAILBOX = 'Inbox'
Check mail every x seconds:
MAIL_CHECK_FREQ = 20
How does it work?
ECFS has a simple work flow. After the loading icon:
You have two feedbacks, this:
If you see the red cross, you have a problem – check your config values. If not, perfect, the terminal must show a congratulation message.
At this moment, some possibilities:
Green – You have done Email.
Yellow – you have more than 1 E-Mail and less than 14 E-Mails.
For more : Visual Email Notification