💾 Archived View for shaggypeak.com › glurg › plan9 › 201505010.gmi captured on 2023-07-22 at 17:05:22. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-03-20)
-=-=-=-=-=-=-
So, here's my first attempt at something useful for Plan9. It checks the METAR for a given airport:
#!/bin/rc if (~ $#1 0){ echo 'Usage: metar <ID>' exit } hget https://aviationweather.gov/adds/dataserver_current/current/metars.cache.csv.gz | \ gunzip -c | \ grep -i -e ^$1 | \ awk -F , '{print $1}'