Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Quiet hours: time windows with no or fewer screen refreshes (M4)

未关闭
#299 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
backend

调研方向

Start with src/paperpi/scheduler.py and src/paperpi/config.py, then read the existing scheduler tests that use a pretend clock. Trace how scheduled screen writes and clean_every work before deciding how quiet windows affect them. Done means multiple daily or weekly windows, including ones that cross midnight, limit screen writes as specified, and are applied on config reload; the open behavior questions need answers first.

由索引模型根据 Issue 内容生成。

描述

Idea from txoof (2026-10-23), after the 9.7" ran 21 hours as a service: fewer screen refreshes at times nobody looks, to spare the screen.

What

Quiet hours: one or more time windows in which the screen doesn't change, or changes only once or twice an hour.

Sketch:

[[display.quiet]]
from = "23:00"
to = "07:00"
writes_per_hour = 0      # 0: no screen changes; 1 or 2: at :00 (and :30)

[[display.quiet]]
from = "13:00"
to = "14:00"
days = ["sat", "sun"]    # optional; default every day
writes_per_hour = 1
  • Several windows; a window may cross midnight; the Pi's local time, so summer and winter time are handled.
  • During a window only screen writes are limited; plugins keep fetching (see open point 3), so the first picture after the window is current.
  • The hourly full clear (clean_every) is skipped during a window and done once at its end.
  • With 1 or 2 writes per hour, each write shows the plugin that is current at that moment.
  • Health check: no change needed (healthy doesn't require a recent screen write).
  • Applied at config reload. The web form (M5) comes later, separately.

Open points (ask txoof one at a time)

  1. With 0 writes the last picture stays, possibly a clock with the wrong time. At the start of a window: show "Quiet until 07:00", go blank, or keep the last picture?
  2. May a music plugin that starts playing break through quiet hours (as it interrupts other plugins now, #284)?
  3. Do plugins also stop fetching in a window (fewer network requests), or only stop drawing?

Size

About 400–600 lines in one PR: config, scheduler, tests with the pretend clock, docs.

Area

core (src/paperpi/scheduler.py, src/paperpi/config.py), docs.

主要语言
Python
星标
205
派生
17
平均合并
3 小时 49 分钟
30 天内合并 PR
89

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

txoof/PaperPi 的其他 Issue

查看 txoof/PaperPi 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。