1 struct current_weather
{
3 int month
; /* 0, 1 - 12 */
4 int date
; /* -1, 1 - 31 (GMT) */
5 short time
; /* -1, 0000 - 2359 */
6 short temp
; /* 999, -210 - 390 (degrees C) */
7 signed char rh
; /* -1, 0 - 100 (%) */
8 short winddir
; /* -1, 0 - 16 (direction) */
9 short windspeed
; /* -1, 0 - MAX (knots) */
10 float pressure
; /* -1, 0 - MAX (inHg) */
11 short heatindex
; /* 999, -99 - 199 (degrees F) */
12 short windchill
; /* 999, -99 - 199 (degrees F) */
13 signed char sky
; /* -1, 0-4 (condition) */
14 signed char vis
; /* 7, 1-7 (status code) */
15 signed char obs
; /* 0, 0-3 (type) */
16 signed char frz
; /* 0, 0, 33, 66, 99 (intensity) */
17 signed char snow
; /* 0, 0, 33, 66, 99 (intensity) */
18 signed char rain
; /* 0, 0, 33, 66, 99 (intensity) */
19 signed char tstorm
; /* 0, 0, 33, 66, 99 (intensity) */
20 double moon
; /* NAN, -1 - 1 (percent and wax/wane) */
23 extern struct current_weather current
;
25 void init_metar(void);
26 void update_metar(int force
);
27 void metar_cleanup(void);