Visual Email Notification

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).visual-email-notification

Email Checker for Sense HAT (ECFS) Raspberry Pi 3 requires: Python 2.7 (for Sense HAT & IMAPClient) and Nano (for configuration)

Install

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

Settings

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' 

Optional

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

Start

python start.py

How does it work?

ECFS has a simple work flow. After the loading icon:

email-notificationYou have two feedbacks, this:

erreur_1_ktit8bgx8a-png

or

done_1_email-notification

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:

mail_1_tdwv0rjx67-png

Green –  You have done Email.

mailfew_1_qssiuabhrm-png

Yellow – you have more than 1 E-Mail and less than 14 E-Mails.

For more :  Visual Email Notification

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation, and engineering. I have a clear and simple writing style and am skilled in using infographics and diagrams. I am a great researcher and is able to present information in a well-organized and logical manner.

Scroll to Top