Skip to content

A hack for not getting disconnected every 30 minutes from starbucks

Notifications You must be signed in to change notification settings

jcwilk/auto-starbucks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auto Starbucks

A silly tool built out of annoyance at Starbucks.

Every 30 minutes they force you to get redirected to auth to login again, which just requires pushing a button surrounded by javascript garbage just to try to force you to watch 5 seconds of ads...

...so why not write a script to do it! If your machine has never used WiFi at starbucks before then you'll have to log in once from any browser, just use facebook or whatever, from then on I think it ties your login to your machine's hardware address indefinitely or for months so you should only need to use this script moving forward. This script only covers the "Give Me Wi-Fi" button, not the login. If you're seeing it unable to find the Wi-Fi button over and over then it's likely requiring you to login first... Or your Starbucks behaves differently from mine (I'm in Singapore).

I anticipate that the turnaround time between getting cutoff and the script detecting it and reactivating it is probably on average ~15-20 seconds, you could shorten that with more aggressive timings but I left it a bit long to prevent it from being too spammy since that delay is fine for my purposes (intermittent programming googling while working). If you're doing someting with constant data transfer you'll probably want to try making it more aggressive though it may sever open connections regardless of how quickly it reconnects... Experimentation would be in order.

Usage

bundle install
bundle exec ./do_auth.rb

Just let it run and it will use craigslist as a baseline to detect when it's getting cut off, then reconnect automatically with a bit of output to notify about it.

Contributing

Really? Well if you're that bored then sure, send a PR. If you don't know what that is I can't help you :'(

If you do use my script though please let me know! :)

About

A hack for not getting disconnected every 30 minutes from starbucks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages