HTTP client for Huawei E5186 mobile broadband router.
This script assumes router has 'admin' user account.
Edit the router's password to variable passwordSHA256 (as SHA256 hexdigest) -or- set your password with command line option -s.
You can convert your plaintext password to SHA256 hexdigest with following command:
echo -n 'router password' | shasum -a 256
By default this script assumes your router's internal IP-address is 192.168.8.1. Use -t option to set an alternative address/hostname.
python3 huawei-e5186-http-client.py -h
python3 huawei-e5186-http-client.py show traffic
python3 huawei-e5186-http-client.py show traffic TotalUpload TotalDownload
python3 huawei-e5186-http-client.py sendsms message your_phone_number_here
python3 huawei-e5186-http-client.py reboot
python3 huawei-e5186-http-client.py data on
python3 huawei-e5186-http-client.py data off