# Vasttrafik Bus Stop Display

Unofficial ESP32 departure display for Västtrafik stops in Sweden: live departures, clock and temperature, set up from your phone

挂在走廊墙上的一块小屏，专门告诉你下一班公交还有几分钟。

- id: brunoffornari-vasttrafik-bus-stop-display
- author: brunoffornari
- repository: https://github.com/brunoffornari/vasttrafik-bus-stop-display
- license: MIT
- shape: square
- scenes: home, tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/brunoffornari-vasttrafik-bus-stop-display/
- html_zh: https://esp32gallery.com/zh/projects/brunoffornari-vasttrafik-bus-stop-display/
- json: https://esp32gallery.com/data/catalog/projects/brunoffornari-vasttrafik-bus-stop-display.json

## Hardware

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

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

## English

```
A hallway screen that knows when your bus leaves: it lists upcoming departures from a Västtrafik stop in Sweden, keeping the operator's real line colours, folding delays into the minutes and marking cancelled runs. Beside it sit a clock with a blinking colon that handles summer and winter time, and a temperature pulled from Open-Meteo without a key. Brightness fades with the time of day until a tap wakes it for 30 seconds. Setup happens on a phone through the BusStop-Setup hotspot — WiFi, the Västtrafik key and the stop — so no secret lives in the sketch. Lose the internet and it counts down anyway, showing No connection; lose WiFi for 15 minutes and the setup page opens by itself. It needs a 3.5-inch 480x320 ST7796 board with GT911 touch, and only covers Västtrafik stops.
```

## 中文

```
挂在走廊墙上的一块小屏，专门告诉你下一班公交还有几分钟。它按 Västtrafik 的实时数据列出站点即将到站的班次，用运营商原本的线路配色，延误算进分钟数里，取消的班次会标出来。旁边一个冒号会闪的时钟，夏令时冬令时自动处理；温度从 Open-Meteo 取，不用 key。屏幕亮度随时段渐变，点一下全亮 30 秒。设置全在手机上完成：连 BusStop-Setup 热点，选 WiFi、填 Västtrafik 的 key、挑站点，所以代码里不留密钥。断网时它照样倒数，只是标一句「无连接」；WiFi 断满 15 分钟，设置页会自己弹出来。硬件要 3.5 英寸 480x320、ST7796 屏加 GT911 触摸的板子，也只认这一家运营商。
```
