From 25cc04e5d12c18a9d865ce702ec3a188e1474911 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Mon, 29 Jun 2020 18:13:51 -0500 Subject: [PATCH] Cleanup sxmo_weather.sh shellscript and make sure shellcheck passes --- scripts/appscripts/sxmo_weather.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/appscripts/sxmo_weather.sh b/scripts/appscripts/sxmo_weather.sh index c809d79..f4baa7a 100755 --- a/scripts/appscripts/sxmo_weather.sh +++ b/scripts/appscripts/sxmo_weather.sh @@ -1,5 +1,5 @@ #!/usr/bin/env sh -[ -z "$SXMO_WEATHERZIPS" ] && SXMO_WEATHERZIPS=" +[ -z "$SXMO_WEATHER_ZIPS" ] && SXMO_WEATHER_ZIPS=" 10025 - NYC 60007 - Chicago 94016 - San Francisco @@ -17,8 +17,8 @@ ZIP=$( pkill svkbd-sxmo LATLON="$(grep "^$ZIP" /usr/share/sxmo/zipcodes_for_weather.csv)" -LAT=$(echo "$LATLON" | cut -d, -f2 | tr -d ' ') -LON=$(echo "$LATLON" | cut -d, -f3 | tr -d ' ') -URL="https://forecast.weather.gov/MapClick.php?lat=${LAT}&lon=${LON}&unit=0&lg=english&FcstType=text&TextType=1" +LAT="$(echo "$LATLON" | cut -d, -f2 | tr -d ' ')" +LON="$(echo "$LATLON" | cut -d, -f3 | tr -d ' ')" +URL='https://forecast.weather.gov/MapClick.php?lat='$LAT'&lon='$LON'&unit=0&lg=english&FcstType=text&TextType=1' st -f Monospace-20 -e w3m "$URL"