From 8a8832d73595fcc11803899e547390c72edbd50f Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Date: Sun, 3 Sep 2017 19:43:18 +0100 Subject: [PATCH] Update docs (#5) --- README.md | 15 ++++++++++++++- ipteller/ipteller.py | 2 +- setup.py | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c07d0ec..19dbeca 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,20 @@ You need to add your gmail details as environment variables using `GMAIL_USER` a Execute: `pip install --user -r dev-requirements.txt` ### Publish your package -Execute: `python setup.py sdist;twine upload dist/*` +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: +```bash +export GMAIL_USER='someone@gmail.com' +export GMAIL_PASS='Password' +``` + +and then in execute `crontab -e` and add this line at the end: +```bash +SHELL=/bin/bash +0 * * * * source /etc/profile.d/ipteller.sh;~/.local/lib/python2.7/site-packages/ipteller/ipteller.py +``` diff --git a/ipteller/ipteller.py b/ipteller/ipteller.py index c25c044..3d4e482 100644 --- a/ipteller/ipteller.py +++ b/ipteller/ipteller.py @@ -5,7 +5,7 @@ from jsonip import JsonIp from mailer import Mailer -address = Address('~/address.txt') +address = Address('address.txt') address.load() provider = JsonIp() diff --git a/setup.py b/setup.py index 9560df8..4eb2ee1 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='ipteller', - version='1.0.2', + version='1.0.3', description='Sends an email when your IP address changes', url='http://github.com/Saphyel/ipteller', author='Saphyel',