Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.
/ ipteller Public archive

[Legacy] Sends an email when your IP address changes

License

Notifications You must be signed in to change notification settings

Saphyel/ipteller

Repository files navigation

IP teller

Intro

This app saves your public IP and send a report when is different.

By default generates a cron job that checks every hour your public IP against the page jsonip if is different will send you an email with the new IP.

Config

You need to add your gmail details as environment variables using GMAIL_USER and GMAIL_PASS (check the docker-compose.yml). The account that you specify will be the sender and receiver of the email.

Dev

Execute: pip install --user -r dev-requirements.txt

Publish your package

Execute: python setup.py sdist;twine upload dist/*;rm dist/*

Run tests

Execute: behave

Cron

Create a file in /etc/profile.d/ipteller.sh with the variables:

export GMAIL_USER='[email protected]'
export GMAIL_PASS='Password'
export IP_PROVIDER='jsonip'

and then in execute crontab -e and add this line at the end:

SHELL=/bin/bash
0 * * * * source /etc/profile.d/ipteller.sh;~/.local/lib/python2.7/site-packages/ipteller/ipteller.py