Skip to content

Project with emphasis on computer networking. The focus of this project was sending emails from a raspberry with TPC/IP protocols. To trigger the mechanism used to send the emails, one moisture sensor was used on a vase. Once no moisture was detected, the email would be automatically sent.

Notifications You must be signed in to change notification settings

joaomcordeiro/e-plant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

ePlant, is Raspberry Pi System that with an email notifier that warns you if your plant needs water.

Most common reasons hoousehold plants die are related to constant high humidity levels.

Light conditions in households arent as good as in a greenhouse, making photosynthesis harder and, conconsequently, harder for the roots to absorb all the water

This inspires the growth of bacteria that leads to so called "root rot" and kills your plant by killing the roots.

How to use ePlant? Easy!

On moisture.py file "channel" represents the pin on thr Pi. Here, GPIO Pin 21 (Pin 40) was used as you can see in channel = 21 (line 6)

On send.py file there more to it than in moisture.py.

SMTPLib was the python library used for sending emails

server = smtplib.SMTP('smtp-mail.outlook.com',587) ----> This is the info needed to set Outlook. If your not using Outlook, beware using Google might not be as straightforward. As of May 2022, Google no longer allows the use of GMail in less secure app.

sender = "INSERT EMAIL THAT WILL SENT IT"

recipient = "INSERT EMAIL THAT WILL RECEIVE IT"

bcc = "INSERT EMAIL THAT WILL RECEIVE IT" -----> not mandatory

sender_password = "INSERT SENDERS PASSWORD"

And that's it! You're all set!

BONUS

You can also insert your own HTML body in order to fully costumize the email!

About

Project with emphasis on computer networking. The focus of this project was sending emails from a raspberry with TPC/IP protocols. To trigger the mechanism used to send the emails, one moisture sensor was used on a vase. Once no moisture was detected, the email would be automatically sent.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages