Zero‑Config Hardware Monitor for a Remote Server Behind CGNAT
说明与用途
PeekESP 通过 ESP32 显示屏和 Cloudflare Worker 实现对位于 CGNAT 后的远程服务器的零配置监控。
问题
Monitoring a home server behind CGNAT without VPN or port forwarding was impossible; SSH access was unreliable and required manual checks.
结果
PeekESP provides instant, zero‑config monitoring of remote machines behind CGNAT, eliminating the need for VPNs or port forwarding.
工作流
- 1. Deploy a Cloudflare Worker with a Durable Object to act as a relay.
- 2. Flash the ESP32 with PeekESP firmware (Arduino IDE/PlatformIO, LVGL 8.3).
- 3. On first boot, the device displays a 10‑character code (e.g., K7M2-P4QX-9R).
- 4. Enter the code into the desktop app; the app derives stream ID and auth tokens independently.
- 5. The server runs a lightweight Python agent (dependency‑free, DietPi) that pushes metrics to the Worker.
- 6. The ESP32 polls the Worker for updates and renders them on its display.
- 7. For multiple machines, use the same code and swipe between them via the device button.
证据
Both ends dial out to a Cloudflare Worker on the free tier using a Durable Object. The server pushes, the display polls, and neither needs an inbound port.
Setup takes one code. The device shows 10 characters on first boot (e.g., K7M2-P4QX-9R), you type them into the desktop app, and the stream ID and auth tokens are derived independently on each side.
- 记录日期: 2026-09-10T17:31:17.352Z