An overengineered analog clock designed to show the perfect time every time.
https://PerfectTime.org
Table of Contents
PerfectTime is a highly accurate, highly configurable analog clock built using modern web technologies. The clock is rendered with Three.js and designed to synchronize with the NTP pool, ensuring it displays the most accurate time possible across all devices.
Key features:
- Full compatibility with Android and iOS using Ionic's Capacitor.
- 3D analog clock rendered using Three.js.
- Synchronization with NTP for accurate timekeeping.
- Dynamic design that scales to fit the device.
- Light and dark color schemes.
- Support for 19 different languages.
- Customizable display options for a personalized experience.
To get a local copy up and running, follow these simple steps.
- Node.js
- This was developed with Node.js v20.11.0. Other versions may also work but have not been thoroughly tested.
- Clone the repo
git clone https://github.com/dylanmounts/PerfectTime.git
- Navigate to the repo directory
cd PerfectTime
- Install NPM packages
npm install
- Build the app
npm run build
- Start the app
npm start
- Access the app in your web browser.
- By default, it will be available at http://127.0.0.1:8100.
- This can be changed by setting the
PERFECT_PORT
andPERFECT_HOSTNAME
environment variables.
PerfectTime can be configured using environment variables to suit different deployment environments. Below are the environment variables supported:
- PERFECT_PORT: Specifies the port on which the app runs. If not set, the app defaults to port 8100.
- PERFECT_HOSTNAME: Determines the hostname for the app. Default is 127.0.0.1 when not specified.
- PERFECT_WEB_APP: A boolean (true or false) indicating if the application is running as a web app (desktop browser) or a mobile app (Android or iOS). This affects display and styling configurations unique to mobile devices. Defaults to false.
Additionally, the backend time server will only run if PERFECT_WEB_APP is set to true, since mobile versions rely on the web app's time server to retrieve their perfect time.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Dylan Mounts - dmounts@gmail.com
Project Link: https://github.com/dylanmounts/PerfectTime
- NTP Pool Project for providing a free and easily accessible source for accurate time.
- Atlassian Design System for the clock's color palette.
- othneildrew's Best-README-Template for this README template.