Skip to content

Instantly share code, notes, and snippets.

@ablyler
Last active January 23, 2019 23:29
Show Gist options
  • Save ablyler/870822 to your computer and use it in GitHub Desktop.
Save ablyler/870822 to your computer and use it in GitHub Desktop.
Creates alias that outputs the current local TAFs
alias taf="curl -s https://aviationweather.gov/adds/dataserver_current/httpparam\?dataSource\=tafs\&requestType\=retrieve\&format\=xml\&stationString\=karb,kdtw,kjxn,klan,kozw,kyip,kttf,konz,kdet,ktol,kgrr,kbtl,kmui\&hoursBeforeNow\=1\&mostRecentForEachStation\=true | xml2 | grep 'raw_text' | sed 's/\/response\/data\/TAF\/raw_text\=//' | sort"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment