LED-style situation room clock formatted for iPads. Live example
Forked from schacon/situation-clock, which states:
If you want to build a Situation Room, you'll need some sweet red clocks in the walls... something like this:
- That red/green, LED-style text you'd expect
- Displays current time and location name
- It's a webpage, so it works in your tablet's browser
- Hosted on GitHub Pages
- EPOCH/unix time format support
- Full, native timezone support
- Ability to have multiple clocks per iPad
- Clock(s) dynamically resize to fill screen
- App-ified so it can be saved to the iOS home screen
- Displays GitHub status incidents (or any Statuspage.io page)
- Keeps the screen awake while open (where the Screen Wake Lock API is supported)
- Get an iPad, and fire up Safari
- Visit ben.balter.com/situation-clock in Safari, or fork this repository and open the GitHub Pages published version of your fork
- Click the share button
- Click add to home screen
- Give your situation clock a name
- Open the newly created shortcut
- (optional) use Velcro or similar to mount to the wall
Note: You can also pass a URL parameter of location, e.g., ?location=ZULU, to add an extra clock via the URL. It uses the system timezone.
Clocks are stored in the YAML front matter of index.html. To add/modify a clock, follow the format below:
---
clocks:
- name: "Washington DC"
timezone: America/New_York
- name: "San Francisco"
timezone: America/Los_Angeles
- name: "EPOCH"
timezone: EPOCH
statuspage: kctbh9vrtdwd
---timezoneis any IANA timezone name, orEPOCHfor Unix time. An unrecognized timezone displaysERRfor that clock.statuspageis the Statuspage.io page ID whose incidents are shown as a banner. The default is GitHub's. Remove the key to disable the banner.
Requires Node.js (see .nvmrc). The site is built with Eleventy; src/script.ts is bundled by Vite into assets/script.js.
- Establish your development environment by running
script/bootstrap - Spin up a local version by running
script/server(rebuilds and reloads on change) - Visit localhost:8080 in your favorite browser
Other useful commands:
npm test: type-checknpm run lint: lintnpm run build: build the site into_site/
- Fork the project
- Create a new, descriptively named feature branch
- Make your changes
- Submit a pull request

