# Kraków Departure Board

连接实时交通数据、用电子墨水屏显示克拉科夫公交发车信息。

Departure board for MPK Kraków. Built with ESP32 (ESP-IDF), TTSS API, and e-paper display.

连接实时交通数据、用电子墨水屏显示克拉科夫公交发车信息。

- id: jludzik-esp32-epaper-krk-departure-board
- author: jludzik
- repository: https://github.com/jludzik/esp32-epaper-krk-departure-board
- license: MIT
- shape: epaper
- scenes: art
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/jludzik-esp32-epaper-krk-departure-board/
- html_zh: https://esp32gallery.com/zh/projects/jludzik-esp32-epaper-krk-departure-board/
- json: https://esp32gallery.com/data/catalog/projects/jludzik-esp32-epaper-krk-departure-board.json

## Hardware

ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.

ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。

## English

```
Live departure times for Kraków's MPK on a 4.2-inch 400x300 e-paper panel wired to an ordinary ESP32. The Waveshare e-paper library, made for Raspberry Pi and Jetson, was ported down to ESP-IDF and split into components for the panel, HTTP and JSON, NTP and Wi-Fi; a finite state machine recovers from errors and an MVC split keeps layout away from data. Wi-Fi is provisioned from the ESP SoftAP Provisioning phone app after reading a PIN off the screen, and a button held at boot wipes NVS. It was written as a university project, and the build instructions ask for a large single-app partition and for skipping TLS certificate verification against the MPK API, marked as testing only.
```

## 中文

```
把克拉科夫 MPK 的实时发车信息放到一块 4.2 英寸 400×300 墨水屏上，主控是普通 ESP32。Waveshare 那套原本给树莓派和 Jetson 的墨水屏库被移植到 ESP-IDF，拆成面板、HTTP 与 JSON、NTP、Wi-Fi 几个组件；主循环用有限状态机做错误恢复，界面和数据按 MVC 分开。第一次上电屏幕显示 PIN，用手机上的 ESP SoftAP Provisioning 配网，开机时按住按键几秒会清掉 NVS 恢复出厂。这是大学课程作业，编译前要在 menuconfig 里选大容量单 app 分区，还要打开跳过 HTTPS 证书校验去访问 MPK 的接口，文档自己标注那项仅供测试。
```
