nws-forecast-mailer

Fetch and deliver the NWS 48-hour forecast by email
git clone git://src.adamsgaard.dk/nws-forecast-mailer
Log | Files | Refs | README

commit 7cc083bbd0eba702c73bdb2dd3e9ef626abbd6e4
parent eb3057bbaf957254ff489bfd8c13094dcdc86f03
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed, 10 Jan 2018 11:58:57 -0500

Fix Fog alert

Diffstat:
Mforecast_alert.sh | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/forecast_alert.sh b/forecast_alert.sh @@ -13,8 +13,7 @@ out=$(fetch $latitude $longitude) # any fog in the next 48 hours? keyword="Fog" -if echo "$out" | grep "^$keyword" | grep '[0-9]' >/dev/null; then - +if echo "$out" | grep "^$keyword" | grep '[A-Z]' >/dev/null; then message=$(cat <<-END Next 24 hours: @@ -38,5 +37,3 @@ END else echo "No $keyword predicted within the next 48 hours" fi - -