Created
September 12, 2018 18:52
-
-
Save ThinGuy/8531fcdf12276180268781ba59402fff to your computer and use it in GitHub Desktop.
Location info via web api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sSL https://timezoneapi.io/api/ip|\ | |
jq -r 'keys[0] as $k|.[$k]|to_entries[]|select((.key != "timezone" and .key != "datetime"))|"\(.key): \(.value)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment