Skip to content

aganet/studio-master-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

LED-style Studio Masterclock with NTP Sync in html page

About this clock

I have always been fascinated by studio-style LED clocks, with their sleek and professional appearance often seen in television studios and production environments. Unfortunately, I never had the opportunity to own one myself. After searching extensively for a similar project online and not finding anything that matched my vision, I decided to create one from scratch. This clock is my way of combining my appreciation for studio aesthetics with my passion for programming.

This project is highly versatile and can be used in various ways:

  • As a studio-style LED clock with Raspberry Pi and screens.
  • By ham radio enthusiasts to display custom call signs alongside the clock.

I am sharing this project to help others who might also be interested in having a similar clock. Feel free to use, customize, or contribute to its development!

A fullscreen LED-style masterclock that dynamically displays the current time, synchronizes with an NTP server, and highlights second segments with an interactive visual effect.

master-clock

Features

  • Fullscreen LED Clock: Displays the current time in an LED-style layout.
  • Dynamic Segment Highlighting: Segments light up to indicate seconds passed.
  • Customizable Text: Add a custom message, such as a ham radio call sign, below the clock.
  • NTP Synchronization: Fetches time from an NTP server and displays synchronization status along with the time difference.
  • Responsive Design: Automatically adjusts to any screen size for an optimal experience.

Demo

DEMO

Installation

  1. Clone the repository or download the project:

    git clone https://github.com/your-username/led-masterclock.git
    cd led-masterclock
  2. Open the index.html file in a browser to view the clock:

    open index.html

Customization

Changing the Custom Text

To change the custom text displayed below the clock (e.g., your call sign):

  1. Open the index.html file.
  2. Locate the customText variable in the script:
    let customText = "M0JPK"; // Replace with your text
  3. Update the text to your desired value.

Adjusting the Design

Modify the style section in the index.html file to change the layout, colors, or sizes.

How It Works

  • Clock Rendering: The clock uses the Date object to fetch the local time from the user's system and dynamically updates the time display and segment highlights every second.
  • NTP Sync: Synchronizes with the WorldTimeAPI to ensure accuracy. The time difference between the system clock and the NTP server is displayed in the top-left corner.
  • Precise Timing: Uses setTimeout to synchronize updates with the system clock.

Requirements

  • A modern web browser (Google Chrome, Firefox, Edge, Safari, etc.)
  • Internet connection (required for NTP synchronization)

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a feature branch:
    git checkout -b my-feature-branch
  3. Commit your changes:
    git commit -m "Add new feature"
  4. Push your branch:
    git push origin my-feature-branch
  5. Open a Pull Request.

License

This project is licensed under the MIT License.

Credits

  • WorldTimeAPI for providing free NTP synchronization.
  • The open-source community for inspiration and contributions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages