aboutsummaryrefslogtreecommitdiffstats
path: root/lib/weather.lua
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-17 08:23:01 +0200
committerDanilo M. <danix@danix.xyz>2026-09-17 08:23:01 +0200
commitb7692a3c33e6e66261c292d497a8cf1c9b8b07ba (patch)
tree2fa335b4e16d3241edcf507ce12618d40cad943d /lib/weather.lua
parente704369034b444b72ae68d834073adfd0849452f (diff)
downloadconky-theme-udt-b7692a3c33e6e66261c292d497a8cf1c9b8b07ba.tar.gz
conky-theme-udt-b7692a3c33e6e66261c292d497a8cf1c9b8b07ba.zip
docs: add the weather widget design
One vertical card merging idea1.png's two: conditions on top, a sunrise-to-sunset arc at the bottom, with the times at the arc's ends behind sunrise/sunset glyphs. Decisions worth recording rather than rediscovering: - The fetch runs from `${execi}` in conky.text, not a systemd timer, so refresh is tied to the dashboard's lifetime. conky.text is empty in this config because Cairo covers it, so whether execi fires at all was probed rather than assumed: it does, even when the command prints nothing. - Inconsolata Nerd Font already carries the Weather Icons range and the two sunrise/sunset glyphs, so no new font. Confirmed by rendering the codepoints and looking at them; an fc-list query alone had wrongly reported them missing, and a missing glyph in conky is an invisible blank rather than an error. - The cache is written atomically, since the widget reads it on an unrelated 2s cadence and would otherwise parse a half-written file. - A bad key returns HTTP 200 with a JSON error body, so the fetch checks .cod before replacing the cache, and never overwrites good data with an error. - Missing and stale states draw the normal card chrome with a notice. An empty cell was rejected: it looks exactly like a crashed widget. Also ignores .superpowers/, the brainstorming session directory. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'lib/weather.lua')
0 files changed, 0 insertions, 0 deletions