49524837f339e48cc5214f665697d34051eb1cdb
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 produce_datetime
"$pipe" 'in:DATE_TIME' 1
95 spawn produce_weather
"$pipe" 'in:WEATHER' $
(( 30 * 60 ))
96 spawn produce_bar_req
"$pipe" 'out:BAR' 1
This page took 0.064363 seconds and 3 git commands to generate.