diff options
| author | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-28 17:13:29 +0545 |
|---|---|---|
| committer | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-28 17:13:29 +0545 |
| commit | 2c32d1cc6ca9397db2db94bb50ad5238fa75d0c9 (patch) | |
| tree | 49e168f7129a9a242fe9f65cc1358644baf6377c /config/hypr/UserScripts/WeatherWrap.sh | |
| parent | 2847467b4427a02c8b92346e9916186e05e42a41 (diff) | |
feat(weather): URL-encode city, harden file handling, and produce safe JSON/cache output
- URL-encode city (python3 / jq / minimal sed fallback) and use encoded_city for all wttr.in calls
- Quote cachedir/cachefile usages and introduce a file variable for clarity
- Use portable stat (GNU/BSD fallback) and compute cache age robustly
- Replace brittle echo JSON with json_escape + printf to safely escape output
- Ensure .weather_cache is written as a two-line file with a proper trailing newline
Diffstat (limited to 'config/hypr/UserScripts/WeatherWrap.sh')
0 files changed, 0 insertions, 0 deletions
