From 41f58faca0ddac855f0a01254b9c8b7770444e0b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 14:32:43 +0200 Subject: fix(weather): fetcher review fixes - quote CITY in weather.env.example and note why - re-geocode when weather-loc lacks a longitude; write it atomically - parse the air body with --rawfile/fromjson? so a bad body drops only the air line - set umask before mkdir so the cache dir is 700 - drop the unneeded set -a/set +a around the source - require at least one digit in the epoch guard Co-Authored-By: Claude Sonnet 5.5 --- weather.env.example | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'weather.env.example') diff --git a/weather.env.example b/weather.env.example index 7996d44..69606c4 100644 --- a/weather.env.example +++ b/weather.env.example @@ -5,8 +5,9 @@ # The forecast comes from Open-Meteo (https://open-meteo.com), which needs no # key. CITY is geocoded once through Open-Meteo's geocoding API; COUNTRY is the # two-letter ISO code that picks the right place among same-named ones. +# This file is sourced by bash, so a name with spaces needs quotes. # UNITS is metric (C, km/h) or imperial (F, mph). -CITY=Example City +CITY="Example City" COUNTRY=XX UNITS=metric -- cgit v1.2.3