b4284 / metarv

command-line utility provides weather by decoding METAR, written in Vala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

metarv -- cli tool that provides weather from METAR codes.

Large parts of the software is not implemented yet, but preliminary uses
should be functional.

The file stations.gz is what I extracted from NOAA's website, of which the
url is http://weather.noaa.gov/data/nsd.txt . One might find the nearest
metar station from the list.

====

Usage:
  metarv [OPTION...] - provides weather conditions decoded from METAR codes.

Help Options:
  -h, --help                Show help options

Application Options:
  -s, --site=<name>         specify metar station.
  -t, --output=type         output type: [general|raw|format] (default: general).
  -f, --format=<string>     formatted string. use '--format help' for detail.
  -i, --imperial            use imperial units. (only affect the 'general' output type)
  -c, --cache               only use local cache, do not connect
  -u, --update              only update cache, do nothing else

====

Available formatting options:

 Site infomation:
  4-letter name  : %short_name%
  Full name      : %full_name%
  Country        : %country%
  Longtitude     : %longitude%
  Latitude       : %latitude%

 Weather infomation:
  Raw metar code : %raw%
  Local Time     : %time_<pattern>_end% (eg: "%time_%F %R_end%", consult `man strftime`)
  Temperature    : %temp_[c | f]%
  Dew point      : %dew_[c | f]%
  Wind speed     : %wind_sp_[mps | mph | kt | kmph]
  Wind gust      : %wind_gu_[mps | mph | kt | kmph]
  Wind direction : %wind_dirt%
  Wind variation : %wind_vary%
  Pressure       : %pres_[hpa | inhg | bar | psi]%
  Visibility     : %vis_[imperial | metric]%
  Phenomena      : %phenomena% (rain, snow, etc)
  Sky condition  : %sky_cond% (what cloud at what feet, etc)

Format string has to be quoted, otherwise the program won't parse.

====

台灣目前只有七個站仍在播報(清單上有 >20 個):

RCAY 岡山
RCDC 屏東南機場
RCIC ??? 
RCKU 嘉義
RCKH 高雄
RCSS 松山
RCTP 中正紀念堂

About

command-line utility provides weather by decoding METAR, written in Vala

License:GNU General Public License v3.0


Languages

Language:Vala 97.1%Language:Makefile 2.9%