diff options
| author | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-28 16:36:20 +0545 |
|---|---|---|
| committer | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-28 16:36:20 +0545 |
| commit | 1ecc4dd6201aba5c0b0575c7b2d89bf9ff95d6af (patch) | |
| tree | 2918760486ff53fbb31a666b03c01ea215f88ea4 /config/hypr/UserScripts/Weather.py | |
| parent | 2d4f945c6ffb850e21d3f2d24dc25087a207068d (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
