Skip to content

Enter a list of cities that compare time and display weather in each location and click to view forecast in any city in the list

Notifications You must be signed in to change notification settings

Aatman1/pyClockZone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World Clock Comparison Logo

A graphical application to compare the current time in different cities around the world, built with Python and PyQt6.

World Clock Comparison

Features

  • Add and remove cities from the list
  • Automatically detect the timezone of each city
  • Display the current time and weather condition in each city, including the timezone offset from the previous city
  • Show the time difference between cities
  • Toggle between 12-hour and 24-hour time formats
  • Graphical clock face for each city
  • Country shape display for each location
  • Flag image for each country
  • Weather forecast for each location (on left-click)
  • Remove loction from the list (on right-click)
  • Weather forcast appears in seperate window, showing forcast in 3 hour increments showing weather condition, temperature, humidity, wind speed, wind direction, and percipitation chance, percipitation amount

Requirements

  • Python 3.x
  • PyQt6
  • pytz
  • geopy
  • timezonefinder
  • requests
  • matplotlib
  • pycountry
  • geopandas

Installation

  1. Download current version (only for windows):
    https://github.com/Aatman1/pyClockZone/releases
    
  2. extract and run clocks.exe

OR

  1. Clone the repository:
    git clone https://github.com/Aatman1/pyClockZone.git
    
  2. Install the required packages:
    pip install -r requirements.txt
    
  3. Run the application:
    python clocks.py
    

Usage

  1. Enter a city name in the input field and click "Add Location" or press Enter to add it to the list.
  2. Right-click on a location to Delete to remove it from the list.
  3. Left-click on a location to view its weather forecast.
  4. Use the "12/24 Hr" button to toggle between 12-hour and 24-hour time formats. (up to 15s delay for action to take effect)

Notes

  • The application uses the Nominatim geocoding service to determine the latitude and longitude of each city.
  • The TimezoneFinder library is used to determine the timezone of each city based on its coordinates.
  • Weather forecast data is fetched from the OpenWeatherMap API.
  • Country shapes and flags are displayed using teuteuf and flagicons.
  • The application has a dark mode interface for better visibility.

About

Enter a list of cities that compare time and display weather in each location and click to view forecast in any city in the list

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published