Skip to content

Utility to log in to the WiFi on South West Trains services

Notifications You must be signed in to change notification settings

dcarley/swt-wifi-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swt-wifi-login

A command-line utility to log in to the WiFi on South Western Railway (née South West Trains) without using the graphical interface.

Usage

Fetch, build, and install:

go get -u github.com/dcarley/swt-wifi-login

Login:

swt-wifi-login <username> <password>

The portal doesn't always work first time so the utility will keep retrying:

2017/10/06 08:41:49 login failed: Get http://swt.passengerwifi.com/cws/?password=REDACTED&rq=login&username=REDACTED: net/http: timeout awaiting response headers
2017/10/06 08:41:49 sleeping for: 5s
2017/10/06 08:42:02 login successful!

If you're using Mac OS X, you can disable the graphical prompt with:

sudo defaults write \
  /Library/Preferences/SystemConfiguration/com.apple.captive.control \
  Active -boolean false

About

Utility to log in to the WiFi on South West Trains services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages