The python version of ipWatch.
ipWatch keeps an eye on my external IP. If it changes then sends an email alert and optionally update CloudFlare DNS.
All pretty basic really.
There are two pieces for ipWatch. The ipWatch app and a server (simple cloud function) to send requests to for getting the current IP address.
Let's build some command line options. Here are some thoughts
- run the test (ip check)
- list current ip from db
- list all ip from db
See nodejs readme for setting up remote function.
Thank you to these projects for their great work! I appreciate you.
Set the following environment variables by using a shell script or a .env file. There is a sample (.env.sample) as a reference.
ENDPOINT_CHK=https://example.com
POSTMARK_TOKEN=--token-value--
DEBUG=brettski:*
EMAIL_TO=
EMAIL_FROM=Notice CloudFlare update not supported in Python version yet.
ipwatch.py is the main file.cd
TO DO: write python/pip installation instructions.
First setup a venv to run things in
then, you at least need to do pip install -r ./requirements.txt.