A graphical application to compare the current time in different cities around the world, built with Python and PyQt6.
- 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
- Python 3.x
- PyQt6
- pytz
- geopy
- timezonefinder
- requests
- matplotlib
- pycountry
- geopandas
- Download current version (only for windows):
https://github.com/Aatman1/pyClockZone/releases
- extract and run clocks.exe
- Clone the repository:
git clone https://github.com/Aatman1/pyClockZone.git
- Install the required packages:
pip install -r requirements.txt
- Run the application:
python clocks.py
- Enter a city name in the input field and click "Add Location" or press Enter to add it to the list.
- Right-click on a location to Delete to remove it from the list.
- Left-click on a location to view its weather forecast.
- 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)
- 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.