aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/Weather.py
diff options
context:
space:
mode:
authorprabinpanta0 <pantaprabin30@gmail.com>2025-10-28 16:36:20 +0545
committerprabinpanta0 <pantaprabin30@gmail.com>2025-10-28 16:36:20 +0545
commit1ecc4dd6201aba5c0b0575c7b2d89bf9ff95d6af (patch)
tree2918760486ff53fbb31a666b03c01ea215f88ea4 /config/hypr/UserScripts/Weather.py
parent2d4f945c6ffb850e21d3f2d24dc25087a207068d (diff)
feat(weather): prefer structured wttr.in format, harden cache and icons
- Use wttr.in structured format first (%l, %C, %t) for stable 3-line parsing - Fallback to individual field requests when combined output omits temperature - Keep ASCII fallback as last resort; best-effort extraction of loc/cond/temp - Read/write cache via mapfile to avoid word splitting; validate temp line - Normalize condition string; extend mapping and add substring icon heuristics - Remove accidental double JSON print in default-case; ensure single output
Diffstat (limited to 'config/hypr/UserScripts/Weather.py')
0 files changed, 0 insertions, 0 deletions
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage