diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-16 19:09:20 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-16 19:09:20 +0200 |
| commit | 85807e963e8483dae83dbf59112eabc1a7964387 (patch) | |
| tree | 623f48e690394a90b8c22abccad83647c29df814 /bin | |
| parent | 820b637bffd4231675bb56163991fb938bd9bc79 (diff) | |
| download | conky-theme-udt-85807e963e8483dae83dbf59112eabc1a7964387.tar.gz conky-theme-udt-85807e963e8483dae83dbf59112eabc1a7964387.zip | |
docs: settle weather source on OpenWeatherMap
A polybar backup script for OWM turned up, which beats the weather.com
scraper: it has a working condition mapping. Port the domain knowledge,
not the code.
Worth keeping: the OWM condition-id ranges, day/night selection against
sys.sunrise/sys.sunset, and the Beaufort wind thresholds. Becomes a
table in data.lua.
Not portable: polybar %{F}/%{T} format tokens, hardcoded hex (UDT roles
replace them), bc conversions (Lua arithmetic), one-line output (a
card). So the script shrinks to curl-and-cache and Lua does the rest.
The reference script hardcodes a live API key plus city and country. The
key and location move to ~/.config/udt/weather.env, outside the repo,
same reasoning as roles.conf. Nothing carries a key in-repo, and
weather.env is gitignored so a stray copy cannot be staged.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions
