aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-16 19:09:20 +0200
committerDanilo M. <danix@danix.xyz>2026-09-16 19:09:20 +0200
commit85807e963e8483dae83dbf59112eabc1a7964387 (patch)
tree623f48e690394a90b8c22abccad83647c29df814 /widgets
parent820b637bffd4231675bb56163991fb938bd9bc79 (diff)
downloadconky-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 'widgets')
0 files changed, 0 insertions, 0 deletions