diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-17 09:07:59 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-17 09:07:59 +0200 |
| commit | 2218d1afe5750558f222c048525cb32f8781c260 (patch) | |
| tree | 7bd60102a2dedbae1ebce2b8088bf2644e2009af /widgets/system.lua | |
| parent | 53d39b7212ffe0753d2b10ea39348bc033f06bef (diff) | |
| download | conky-theme-udt-2218d1afe5750558f222c048525cb32f8781c260.tar.gz conky-theme-udt-2218d1afe5750558f222c048525cb32f8781c260.zip | |
feat: add the weather fetch script
Fetches current weather from OpenWeatherMap into a cache file, meant
to run from conky's ${execi 900 ...}. Writes to a temp file in the
same directory as the target and renames atomically, so a killed or
failed fetch never leaves the widget reading a half-written or error
response. Distinguishes HTTP failure from a 200-with-error-body (a
bad key returns the latter for some endpoints, the former here), and
leaves any existing good cache untouched on either kind of failure.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'widgets/system.lua')
0 files changed, 0 insertions, 0 deletions
