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'
37 db["weather_temperature"] = read_msg()
42 db["datetime"] = read_msg()
55 function make_bar( position, bar, i) {
56 position[++i] = db["weather_temperature"]
57 position[++i] = db["datetime"]
60 for (j = 1; j <= i; j++) {
61 bar = bar sep position[j]
79 echo "${tag}${MSG_TAG_SEP}$($cmd)" > "$pipe"
89 WEATHER_STATION_ID
='KJFK'
94 spawn fetch_datetime
"$pipe" 'in:DATE_TIME' 1
95 spawn fetch_weather
"$pipe" 'in:WEATHER' $
(( 30 * 60 ))
96 spawn trigger_bar
"$pipe" 'out:BAR' 1
97 read_and_react
"$pipe"
This page took 0.070099 seconds and 4 git commands to generate.