Skip to content

Gives you the time at a place (country, city, address...)

Notifications You must be signed in to change notification settings

juanborre/alfred-time-anywhere

Repository files navigation

alfred-time-anywhere

Alfred workflow that will show you the time anywhere in the planet.

Alfred Time Anywhere gif

You can search for any country/city/village/address.

The information displayed is:

Time (days difference if any)   (Timezone, UTC offset)   (hours difference with local time)
Address

Alfred Time Anywhere img

Run it with time <your place>. You can change the keyword by opening Alfred and double clicking on the workflow script.

You can install download the latest version in the releases page.

How it works

The script uses the Python Geopy package in order to find the GPS coordinates of the place you type.

Then, it will do a query to the ipgeolocation API in order to find the time and the timezone.

There are other approaches using other Python packages but either the workflow size was too big due to the dependencies or the response time was too long. This solution seems to find a sweetspot between the two.

Configuration

The workflow works out of the box with a default API_KEY for the ipgeolocation API.

The API has a request limit so, if you stick with using the workflow, I suggest that you make your own to let space for other people and not to be rate limited yourself.

You can set your own API_KEY in the workflow configuration.

Making a developer API_KEY is free of charge as of today.

You can choose between 12/24 hours format with the selector. (07:12 PM vs 19:12)

Enjoy! 👋

About

Gives you the time at a place (country, city, address...)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages