changes to nws
This commit is contained in:
parent
e1b91a53e1
commit
714b3bd408
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue