# Skyclock

Prayer-times clock over the real sky, for an ESP32 LCD panel. Live at pray.sifxtreme.com

墙上的一块面板，每半分钟换一张天空：颜色跟着太阳实际高度走，白天蓝、黄金时刻橙、入夜后出星星和月亮，月相也是算出来的。

- id: sifxtreme-skyclock
- author: sifxtreme
- repository: https://github.com/sifxtreme/skyclock
- license: MIT
- shape: square
- scenes: home
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/sifxtreme-skyclock/
- html_zh: https://esp32gallery.com/zh/projects/sifxtreme-skyclock/
- json: https://esp32gallery.com/data/catalog/projects/sifxtreme-skyclock.json

## Hardware

Supported hardware: ESP32. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
A wall panel that repaints the sky five times a minute with the next prayer time on it. The picture is drawn on a server, not the device: `skyclock.py` renders an 800×480 PNG in about 50 ms with the sun's real altitude setting the colour, stars and the moon in its phase at night, a draining countdown bar that turns amber at 20 minutes and red at 5, and a 24-hour sun curve carrying all five prayers. A Waveshare ESP32-S3-Touch-LCD-7 on ESPHome just fetches `image_url` every 30 seconds. Times follow ISOC's settings and stayed within a minute of its published timetable across 2026 from Feb 2 to Dec 31.
```

## 中文

```
墙上的一块面板，每半分钟换一张天空：颜色跟着太阳实际高度走，白天蓝、黄金时刻橙、入夜后出星星和月亮，月相也是算出来的。五番拜功的时间画在一条 24 小时日轨上，当前这一番用一根会缩短的条倒计时，剩 20 分钟转琥珀色、剩 5 分钟转红。图不是在板子上画的，家里 Mac 上跑的 skyclock.py 每次请求渲染一张 800×480 的 PNG，约 50 毫秒；Waveshare ESP32-S3-Touch-LCD-7 上的 ESPHome 只负责每 30 秒取一次 image_url。时间参数照 ISOC 的公开表设，2026 年 2 月 2 日到 12 月 31 日，每天和官方表相差不超过 1 分钟。
```
