JP Clock
On your display
24-hour clock with Japanese period colours — 深夜 to 夜中.
- Topic
- Miscellaneous
- Includes
- Script
Runs on
- Runs on 32×8 (TC001 & DIY)
- Runs on 52×16 (TC002)
- Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.
Choose your display in the next step.
Script description
JP Clock
Shows the time with a Japanese period label on the 32×8 matrix.
Time format: HH:MM (24-hour) plus a two-kanji period on the right.
Periods follow everyday Japanese sense (uneven lengths), not meteorological definitions.
Example: 14:30 午後 = 2:30 p.m.
Periods
| Hours | Kanji | Romaji | Meaning |
|---|---|---|---|
| 00–03 | 深夜 | shinya | Late night |
| 03–05 | 未明 | mimei | Before dawn |
| 05–08 | 早朝 | sōchō | Early morning |
| 08–11 | 午前 | gozen | Morning / a.m. |
| 11–14 | 正午 | shōgo | Midday |
| 14–16 | 午後 | gogo | Afternoon / p.m. |
| 16–18 | 夕方 | yūgata | Evening |
| 18–21 | 夜間 | yakan | Night |
| 21–24 | 夜中 | yonaka | Midnight hours |
Each period has its own split colours: time-side background, label-side background, and ink.
Digits and period kanji are pixel-drawn on the device
Requirements
- AWTRIX NG with Run scripts enabled (System → save → reboot). Do not hold left+right at boot (that disables scripting).
- Correct local time / NTP.
Install
- Paste the script under Scripts → Save.
- Enable Run scripts, reboot without touching the buttons.
Demo (Apps → ⚙)
| Setting | Default | |
|---|---|---|
| Demo mode | off | Cycles all nine periods (sample mid-slot time). Pauses app rotation while on. |
| Demo seconds | 2 | Seconds per step |
Glyph shapes adapted from the k6x8 bitmap font family (narrow 5 px cells).
Sign in to view and copy the code of this script.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
More scripts in Miscellaneous
Something wrong with this script? Report it.
Have an idea?
Sign in to ask questions and join the conversation.