changes to nws

This commit is contained in:
randomuser 2021-05-11 14:52:01 -05:00
parent e1b91a53e1
commit 714b3bd408
1 changed files with 1 additions and 3 deletions

View File

@ -55,7 +55,7 @@ weather () {
textmessage "ZFP" textmessage "ZFP"
} }
textmessage () { textmessage () {
curl --fail "https://forecast.weather.gov/product.php?site=NWS&issuedby=$(kstrip ${NWS_ZONE})&product=${1}&format=TXT&version=1" | \ curl --silent --fail "https://forecast.weather.gov/product.php?site=NWS&issuedby=$(kstrip ${NWS_ZONE})&product=${1}&format=TXT&version=1" | \
sed -n '/<!-- \/\/ CONTENT STARTS HERE -->/,/<\/pre>/p' | \ sed -n '/<!-- \/\/ CONTENT STARTS HERE -->/,/<\/pre>/p' | \
grep -v "a href" | \ grep -v "a href" | \
grep -v '<!-- // CONTENT STARTS HERE -->' | \ grep -v '<!-- // CONTENT STARTS HERE -->' | \
@ -84,8 +84,6 @@ case $1 in
[ $# -eq 2 ] && mosaid $2 || \ [ $# -eq 2 ] && mosaid $2 || \
err "two args required" err "two args required"
;; ;;
"z"*)
;;
"s"*) "s"*)
[ $# -eq 2 ] && setzone $2 || \ [ $# -eq 2 ] && setzone $2 || \
err "two args required" err "two args required"