X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=v2%2Fsrc%2Fbash%2Fexe%2Fkhatus_sensor_weather.sh;fp=v2%2Fsrc%2Fbash%2Fexe%2Fkhatus_sensor_weather.sh;h=371010f1660c20d81915c5143311aaafe544729b;hb=53d24ad688ea39892dbf3c748c1e40514eeb2763;hp=0000000000000000000000000000000000000000;hpb=0c4f892ec9d0cd7dc87c83c01b52259d0aed1ae3;p=khatus.git diff --git a/v2/src/bash/exe/khatus_sensor_weather.sh b/v2/src/bash/exe/khatus_sensor_weather.sh new file mode 100644 index 0000000..371010f --- /dev/null +++ b/v2/src/bash/exe/khatus_sensor_weather.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e + +dir_bin="$1" +weather_station_id="$2" + +metar -d "$weather_station_id" 2>&1 | "$dir_bin"/khatus_parse_metar_d_output