aboutsummaryrefslogtreecommitdiffstats
path: root/weather.env.example
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-18 14:32:43 +0200
committerDanilo M. <danix@danix.xyz>2026-10-18 14:32:43 +0200
commit41f58faca0ddac855f0a01254b9c8b7770444e0b (patch)
tree1119c65ef76486096b8308954270407b1ccbdf23 /weather.env.example
parent28a3edc57047c2d8176e1cc726308c70f34ebc2e (diff)
downloadconky-theme-udt-41f58faca0ddac855f0a01254b9c8b7770444e0b.tar.gz
conky-theme-udt-41f58faca0ddac855f0a01254b9c8b7770444e0b.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'weather.env.example')
-rw-r--r--weather.env.example3
1 files changed, 2 insertions, 1 deletions
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