Skip to content

feat: report temperatures in /api/status - #59

Merged
prokrypt merged 2 commits into
developmentfrom
claude/project-thread-poetck
Sep 28, 2026
Merged

prokrypt merged 2 commits into
developmentfrom
claude/project-thread-poetck

Conversation

@prokrypt

Copy link
Copy Markdown
Owner

Before: /api/status had no temperature readings.

After: /api/status has a temperatures object with chip (ESP32-S3 only), gauge (BQ27220 or CW2017 where present) and panel (UC8179 on the X4 Pro, with its sample age). Sensors a board lacks are omitted.

How: the SDK pin moves to the fork's feat/status-temps, which adds the gauge temperature read and a UC8179 panel temperature read (sampled after a refresh, at most once per 60 s) behind the new FREEINK_UC8179_PANEL_TEMP flag, on for S3 UC8179 boards only. The chip sensor is skipped on the C3 because its driver costs about 3.8 KB of flash. C3 flash +468 B.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd


Generated by Claude Code

Chip (temperatureRead), battery gauge (BQ27220/CW2017) and, on S3 builds
with the UC8179 driver, the panel's on-chip sensor with its sample age.
Sensors a board lacks are omitted. Bumps freeink-sdk to 3c20ecf
(feat/status-temps on the fork, based on ad146a5).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd
Its sensor driver costs ~3.8 KB of flash on a build at 94.3%.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd
@prokrypt
prokrypt merged commit 8475bfe into development Sep 28, 2026
9 checks passed
@prokrypt
prokrypt deleted the claude/project-thread-poetck branch September 28, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants