6 metar
-d "$WEATHER_STATION_ID" 2>&1 \
8 /METAR pattern not found in NOAA data/ {
14 fahrenheit = (celsius * (9 / 5)) + 32;
15 temperature = fahrenheit
22 print temperature "°F"
27 date +'%a %b %d %H:%M:%S'
38 db["weather_temperature"] = $0
53 function chop_off_msg_tag() {
57 function make_bar( position, bar, i) {
58 position[++i] = db["weather_temperature"]
59 position[++i] = db["datetime"]
62 for (j = 1; j <= i; j++) {
63 bar = bar sep position[j]
81 echo "${tag}${MSG_TAG_SEP}$($cmd)" > "$pipe"
91 WEATHER_STATION_ID
='KJFK'
96 spawn fetch_datetime
"$pipe" 'in:DATE_TIME' 1
97 spawn fetch_weather
"$pipe" 'in:WEATHER' $
(( 30 * 60 ))
98 spawn trigger_bar
"$pipe" 'out:BAR' 1
99 read_and_react
"$pipe"
This page took 0.076574 seconds and 4 git commands to generate.