3 ms·
"If you want to know what the weather is at a given location, find a nearby airport, get their ATIS (or AWOS or ASOS) phone number and you can call and get a re
by 1vuio0pswjnm7 5y ago
"If you want to know what the weather is at a given location, find a nearby airport, get their ATIS (or AWOS or ASOS) phone number and you can call and get a real-time report that is extremely accurate."
To get the phone number:
curl -Ls https://www.airnav.com/airports/get?s="$1"|sed -n '/<TR>.*WX/{s/.*=right>//;s/ .*top>//;s/<.*//p;}'"
For example, Orcas Island
curl -Ls https://www.airnav.com/airports/get?s=orcas|sed -n '/<TR>.*WX/{s/.*=right>//;s/ .*top>//;s/<.*//p;}'
or, without the redirect
curl -s https://www.airnav.com/airports/KORS|sed -n '/<TR.*WX/{s/.*=right>//;s/ .*top>//;s/<.*//p;}'