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

Commit

Permalink
Update docs (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saphyel authored Sep 3, 2017
1 parent 85a0a66 commit 8a8832d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]'
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
```
2 changes: 1 addition & 1 deletion ipteller/ipteller.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from jsonip import JsonIp
from mailer import Mailer

address = Address('~/address.txt')
address = Address('address.txt')
address.load()

provider = JsonIp()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8a8832d

Please sign in to comment.