News for hackers. Stuff that matters.
Re:Windy.com by 1vuio0pswjnm7 on Friday September 10, 2021 @07:41PM (#28488091)
"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/&nbsp;.*top>//;s/<.*//p;}'"
 
For example, Orcas Island

     curl -Ls https://www.airnav.com/airports/get?s=orcas|sed -n '/<TR>.*WX/{s/.*=right>//;s/&nbsp;.*top>//;s/<.*//p;}' 
or, without the redirect

     curl -s https://www.airnav.com/airports/KORS|sed -n '/<TR.*WX/{s/.*=right>//;s/&nbsp;.*top>//;s/<.*//p;}'

There are no comments on this comment yet.