Various updates:

Run only when connected to specified SSID and config file is present
Get WAN IP from the router, otherwise from the internet
use curl instead of wget and 4 spaces instead of tabs
Silently exit on errors, log only connections to no-ip