Skip to content
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.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
check_ip_no_auth.py

README.md

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

You can’t perform that action at this time.