-
-
Save sscarduzio/05ed0b41d6234530d724 to your computer and use it in GitHub Desktop.
| #!/bin/bash | |
| # CONF | |
| DBG=true | |
| [email protected] | |
| RELOG_PASSW=xxxxxxxxxxxxxxx | |
| # END CONF | |
| IS_LOGGED_IN=$(wget "https://www.btopenzone.com:8443/home" --timeout 30 -O - 2>/dev/null | grep "accountLogoff") | |
| if [ "$IS_LOGGED_IN" ] | |
| then | |
| [[ $DBG ]] && echo "currently logged in. Nothing to do.." | |
| else | |
| [[ $DBG ]] && echo "It's not logged in.. Will log in!" | |
| OUT=$(wget -qO- --post-data "USERNAME=$RELOG_UNAME&PASSWORD=$RELOG_PASSW" "https://btwifi.portal.fon.com/remote?res=hsp-login&HSPNAME=FonBT%3AGB&WISPURL=https%3A%2F%2Fwww.btopenzone.com%3A8443%2FfonLogon&WISPURLHOME=https%3A%2F%2Fwww.btopenzone.com%3A8443&VNPNAME=FonBT%3AGB&LOCATIONNAME=FonBT%3AGB") | |
| ONLINE=$(echo $OUT | grep youre_online ) | |
| if [ "$ONLINE" ] | |
| then | |
| [[ $DBG ]] && echo "You're online!" | |
| else | |
| [[ $DBG ]] && echo "Could not login :(" | |
| fi | |
| fi |
My openwrt service has stopped working a week or so ago, my windows exe was still working until 2 days ago, the raw HTTP Post URL now returns this
"
120
100
Service temporarily unavailable - please try later
"
Thanks @transilluminate It fails on "Error: Authenticating to EE WiFi was unsuccessful" iwinfo shows same wifi interface (wlan-sta0) - so all good there. My old script seems to keep the connection live without the need to login when changed to:
OUT=$(wget -qO - --no-check-certificate --post-data "username=$RELOG_UNAME&password=$RELOG_PASSW" "https://ee-wifi.ee.co.uk:443/tbbLogon ")
Dosent seem to work for me on windows, i have notaced im not getting logged off after 4 hours, last night signed in via web page & went out and this morning checked heating app and it was still connected
@aidanmacgregor
Is that screenshot some sort of new script that works? Can you provide GitHub link pls?
Key issue for me seems to be the rediverted complex landing page for BTwifi home broadband customers.
Any ideas on how to resolve would be appreciated.

Thanks @transilluminate
It fails on "Error: Authenticating to EE WiFi was unsuccessful"
iwinfo shows same wifi interface (wlan-sta0) - so all good there.
My old script seems to keep the connection live without the need to login when changed to:
OUT=$(wget -qO - --no-check-certificate --post-data "username=$RELOG_UNAME&password=$RELOG_PASSW" "https://ee-wifi.ee.co.uk:443/tbbLogon ")