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

Scroll to Top
Read previous post:
Raspberry Pi 3 on sale at $35
Raspberry Pi 3 on sale at $35

Another update: I managed to miss Baruyr Mirican and Darshan Gopal from the Broadcom test engineering team off the list...

Close