I used to use this little macOS script at coffee shops.
https://gist.github.com/nixpulvis/d83c0ae70a4c3a06797b