/timezone_service

A simple docker image for getting IP timezone

Primary LanguagePython

Timezone Service

This service provides the time zone of an IP address. It is implemented as an HTTPS endpoint using Flask and uses https://ipgeolocation.io to retrieve the time zone of the given IP address.

Requirements

Getting Started

  1. Clone the repository and navigate to the project directory:

    git clone https://github.com/Miller-5/timezone_service.git
    cd timezone_service
  2. Build the Docker container:

    docker build -t timezone_service .
  3. Run the docker container and provide your ipgeolocation.io API key:

    • Replace [your-api-key] with the key you got from ipgeolocation.io
    docker run -p 5000:443 --env IPGEOLOCATION_API_KEY=[your-api-key] timezone_service
  4. Access the service at https://127.0.0.1:5000/timezone?ip=[required-ip]