Wancheck is a nifty (hacky) solution to dealing with hosts confined to dynamic IPs. It monitors a given host's internet-facing IP, notifying the user by text message upon any change.
Wancheck has two dependencies: twilio
and dnspython
. They can be installed
via PIP like so:
pip install -r requirements.txt
For now, this program is only designed to integrate with the Twilio API.
To connect it to your account, modify config.py
:
- Set
twilio_account_sid
to your Twilio account SID - Set
twilio_auth_token
to your Twilio auth token - Set
phone_source
to the phone number you wish to receive notifications from - Set
phone_target
to the phone number you wish the notifications to be sent to
wancheck
's IP test interval is set to 1
by default, meaning it will check
every second. To change this, modify the check_interval
parameter in
config.py
.
To run wancheck:
python wancheck.py