Skip to content

manuti/Check_IP_and_send_email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Is mandatory to change propoerly the email config section in the Python script and YOU MUST ACTIVATE "INSECURE APPS IN GMAIL

################################################
###### Remember to set all constants here ######
################################################
FIXED_IP = '10.0.1.2'
IP_FILEPATH = '/home/pi/current_ip.txt'
SMTP_USERNAME = 'YOUR_SENTDER_EMAIL_ADDRESS@gmail.com'
SMTP_PASSWORD = 'YOUR_PASSWORD'
SMTP_RECIPIENT = 'YOUR_RECERTOR_EMAIL_ADDRESS@gmail.com'
SMTP_SERVER = 'smtp.gmail.com'
SSL_PORT = 465
################################################

this is originally and complete work of Morrolan https://gist.github.com/Morrolan

https://gist.github.com/3201741

About

This script emails you the IP address if it detects an ethernet address other than it's usual address # that it normally has, i.e. on your home network.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages