Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saphyel/ipteller
[Legacy] Sends an email when your IP address changes
https://github.com/saphyel/ipteller
ip-lookup python raspberry-pi
Last synced: about 2 months ago
JSON representation
[Legacy] Sends an email when your IP address changes
- Host: GitHub
- URL: https://github.com/saphyel/ipteller
- Owner: Saphyel
- License: mit
- Archived: true
- Created: 2017-08-22T12:30:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T22:49:29.000Z (about 7 years ago)
- Last Synced: 2024-09-28T00:44:26.250Z (about 2 months ago)
- Topics: ip-lookup, python, raspberry-pi
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
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:
```bash
SHELL=/bin/bash
0 * * * * source /etc/profile.d/ipteller.sh;~/.local/lib/python2.7/site-packages/ipteller/ipteller.py
```