From abd24916e84f8bbe0737633172d3a5ad3408d3a5 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Sun, 12 May 2024 20:37:54 -0400 Subject: [PATCH] Properly comment out unfinished rain checking --- scripts/get-weather.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/get-weather.sh b/scripts/get-weather.sh index 68b81d6..d0ba996 100755 --- a/scripts/get-weather.sh +++ b/scripts/get-weather.sh @@ -9,11 +9,11 @@ if [ ! -f "$API_KEY_FILE" ]; then fi CACHE_DIR="$XDG_CACHE_HOME/openweathermap" -RAIN_FILE="$CACHE_DIR/rain" +#RAIN_FILE="$CACHE_DIR/rain" -if [ ! -f "$RAIN_FILE" ] || [ "$(find "$RAIN_FILE" -mmin +10)" ]; then - curl 'https://api.openweathermap.org/data/2.0/weather/PR0/'"$(~/scripts/geolocation.sh tile)"'?appid='"$(cat "$API_KEY_FILE")" -s -o "$RAIN_FILE" -fi +#if [ ! -f "$RAIN_FILE" ] || [ "$(find "$RAIN_FILE" -mmin +10)" ]; then +# curl 'https://api.openweathermap.org/data/2.0/weather/PR0/'"$(~/scripts/geolocation.sh tile)"'?appid='"$(cat "$API_KEY_FILE")" -s -o "$RAIN_FILE" +#fi ONE_CALL_FILE="$CACHE_DIR/onecall.json"