Shift X2 status from legacy to archived
[khatus.git] / x2 / src / bash / exe / khatus_sensor_weather.sh
index 371010f..adff357 100644 (file)
@@ -5,4 +5,11 @@ set -e
 dir_bin="$1"
 weather_station_id="$2"
 
-metar -d "$weather_station_id" 2>&1 | "$dir_bin"/khatus_parse_metar_d_output
+curl \
+    --silent \
+    --show-error \
+    -X GET \
+    -H "accept: application/vnd.noaa.obs+xml" \
+    "https://api.weather.gov/stations/${weather_station_id}/observations/latest?require_qc=false" \
+| hxpipe \
+| "$dir_bin"/khatus_parse_noaa_api
This page took 0.029131 seconds and 4 git commands to generate.