Properly comment out unfinished rain checking

This commit is contained in:
Michael Bradley 2024-05-12 20:37:54 -04:00
parent a46f230d9d
commit abd24916e8

View file

@ -9,11 +9,11 @@ if [ ! -f "$API_KEY_FILE" ]; then
fi fi
CACHE_DIR="$XDG_CACHE_HOME/openweathermap" 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 #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" # curl 'https://api.openweathermap.org/data/2.0/weather/PR0/'"$(~/scripts/geolocation.sh tile)"'?appid='"$(cat "$API_KEY_FILE")" -s -o "$RAIN_FILE"
fi #fi
ONE_CALL_FILE="$CACHE_DIR/onecall.json" ONE_CALL_FILE="$CACHE_DIR/onecall.json"