Skip to content

feat: show dew point for one-line format %e - #1310

Merged
chubin merged 5 commits into
chubin:masterfrom
jcole666:fix/oneline-dew-point-1288
Nov 22, 2026
Merged

chubin merged 5 commits into
chubin:masterfrom
jcole666:fix/oneline-dew-point-1288

Conversation

@jcole666

Copy link
Copy Markdown
Contributor

Fixes #1288

Description

The one-line format documents %e as dew point, but the renderer left it as a literal %e because the placeholder was not registered. current_condition also has no dew point field.

This adds the e specifier and fills dew point from the hourly slot closest to the observation time. If hourly data is missing, it falls back to a Magnus estimate from temperature and humidity. Units follow %t (°C by default, °F with ?u / imperial / USCS).

Testing

Added unit tests in internal/renderer/oneline/render_test.go. I did not run go test ./internal/renderer/oneline/ on this machine.

@chubin
chubin merged commit 3873fd2 into chubin:master Nov 22, 2026
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.

dew point data not shown

2 participants