Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Set up garden-room-lights, tested weekly against a fake WLED strip

说明与用途

使用 Python 脚本在花园房间自动化 WLED 灯带控制,并通过假 WLED 服务器进行每周 CI 测试,验证 API 调用和时间表覆盖。

问题

Automating WLED strip lighting schedules on a garden room while ensuring reliable operation without physical LEDs during CI tests.

结果

The script reliably applies the correct color and brightness for each phase, covers all 24 hours without gaps, and CI tests confirm functionality even without physical LEDs.

工作流

  • Clone repo
  • Copy devices.example.json to devices.json
  • Run python3 gardenroom.py status to verify devices
  • Run python3 gardenroom.py apply --dry-run to simulate changes
  • Run python3 gardenroom.py apply to apply schedule
  • Set up a 10‑minute cron job to trigger the script

证据

GitHub has no LED strips, so the check runs against a fake WLED unit: a 54-line Python server that answers the same three JSON calls the script makes and records what it was sent.

来源

The README was wrong ... It uses the machine's clock. Harmless on my box, which is on UK time anyway, but on a server set to UTC your evening scene would land an hour late all summer.

来源

Python 3.10+, no packages, at least one WLED strip: ... git clone ... cp devices.example.json devices.json ... python3 gardenroom.py status ... python3 gardenroom.py apply --dry-run ... python3 gardenroom.py apply

来源

  • 记录日期: 2026-11-03T10:13:56.062Z