Weather: Difference between revisions

From Public wiki of Kevin P. Inscoe
Jump to navigation Jump to search
Line 10: Line 10:


<pre>
<pre>
#/bin/bash


for WFO in MLB MRX
do
  echo "HWO statement for $WFO..."
  URL="http://forecast.weather.gov/product.php?site=NWS&issuedby=`echo $WFO`&product=HWO&format=txt&version=1&glossary=0"
  curl -s "$URL" | html2text | grep -i "Spotter activation"
  echo " "
done
</pre>
</pre>



Revision as of 16:58, 23 February 2017

This site is being migrated from my previous wiki at http://ke3vin.org/pmwiki.php/Main/Weather

Skywarn

I am a trained Skywarn spotter. See What is Skywarn for more information.

Here is a script I use to alert me on days that spotter activation may be required. The output of the script is sent to via email daily.

The script:

#/bin/bash

for WFO in MLB MRX
do
   echo "HWO statement for $WFO..."
   URL="http://forecast.weather.gov/product.php?site=NWS&issuedby=`echo $WFO`&product=HWO&format=txt&version=1&glossary=0"
   curl -s "$URL" | html2text | grep -i "Spotter activation"
   echo " "
done

The output which I will see in email:

./nws_spotter_activation.sh 
HWO statement for MLB...
Spotter activation will not be needed today.
 
HWO statement for MRX...
Spotter activation will be needed Friday night into early

Observation

Reporting

Forecast