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 holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top