Skip to content

jpkelly/kivyClock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

kivyClock

A multi-timezone digital clock application built with Kivy for Python. Displays current time for multiple cities simultaneously with NTP time synchronization support.

Features

  • Multi-Timezone Display: Shows time for multiple cities/timezones simultaneously
  • 24-Hour Format: Clean, military-style time display (HH:MM:SS)
  • NTP Time Sync: Automatically syncs with NTP servers on startup
  • Customizable: Easy to add/remove cities and configure timezones
  • Fixed Window Size: Optimized for 800x480 displays (e.g., Raspberry Pi touchscreens)

Requirements

  • Python 3.x
  • Kivy
  • pytz
  • ntplib

Installation

  1. Clone this repository:
git clone https://github.com/jpkelly/kivyClock.git
cd kivyClock
  1. Install dependencies:
pip install kivy pytz ntplib

Usage

Run the application:

python clock.py

Configuration

Edit clock.py to customize the displayed timezones. Modify the clocks_config list in the DigitalClockApp.build() method:

clocks_config = [
    ('San Francisco', 'America/Los_Angeles', True),
    ('Tokyo', 'Asia/Tokyo', True)
]

Available Timezones

Common timezone strings (see full list):

  • America/New_York
  • America/Los_Angeles
  • Europe/London
  • Europe/Berlin
  • Asia/Tokyo
  • Asia/Shanghai
  • Australia/Sydney
  • Pacific/Auckland
  • Africa/Johannesburg
  • America/Sao_Paulo

Window Configuration

The default window size is 800x480 pixels. To change it, modify:

Window.size = (width, height)

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages