Skip to content

docs: document sleep hours config and fix two README inaccuracies#111

Merged
GageLawton merged 1 commit into
mainfrom
docs/pre-release-readme-fixes
May 27, 2026
Merged

docs: document sleep hours config and fix two README inaccuracies#111
GageLawton merged 1 commit into
mainfrom
docs/pre-release-readme-fixes

Conversation

@GageLawton
Copy link
Copy Markdown
Owner

Summary

Three documentation gaps found during the pre-release audit.

1. Sleep hours feature not documented

led.sleep_start / led.sleep_end — added in the last sprint — were missing from both the config.json example and the Configuration section of the README. Added a dedicated LED sleep hours subsection explaining the midnight-wrap behaviour and the -1 disable sentinel, and added the fields to the config example.

2. Curl timeout figure wrong

The architecture table said "10s total timeout" but weather.cpp uses CURLOPT_TIMEOUT = 15L. Corrected to 15 s.

3. LED brightness mismatch in example

The README example showed brightness: 0.4 while config.json on disk (and the Config default) use 0.05. Corrected to 0.05.

Changes

  • README.md: add LED sleep hours section; fix timeout from 10 s → 15 s; fix brightness from 0.4 → 0.05 in example

Test plan

  • Read through the updated Configuration section and confirm all config.json keys shown match what the code actually parses

- Add led.sleep_start / sleep_end to the config.json example and add a
  dedicated "LED sleep hours" section explaining the midnight-wrap
  behaviour and the -1 disable sentinel
- Correct the stated curl timeout from 10 s to 15 s (matches
  CURLOPT_TIMEOUT in weather.cpp)
- Correct brightness in the config example to 0.05 (matches the actual
  default and config.json on disk)

https://claude.ai/code/session_0166Zd59EUgWgYd3FrphQAio
@GageLawton GageLawton self-assigned this May 27, 2026
@GageLawton GageLawton added the documentation Improvements or additions to documentation label May 27, 2026
@GageLawton GageLawton merged commit d514787 into main May 27, 2026
2 checks passed
@GageLawton GageLawton deleted the docs/pre-release-readme-fixes branch May 27, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants