Replace `metar` with custom parser of NOAA XML API
[khatus.git] / x2 / src / bash / exe / khatus_sensor_weather.sh
CommitLineData
f37162a4
SK
1#! /bin/sh
2
3set -e
4
654ea6e2
SK
5dir_bin="$1"
6weather_station_id="$2"
f37162a4 7
57ed1a64
SK
8curl \
9 -X GET \
10 -H "accept: application/vnd.noaa.obs+xml" \
11 "https://api.weather.gov/stations/${weather_station_id}/observations/latest?require_qc=false" \
12| hxpipe \
13| "$dir_bin"/khatus_parse_noaa_api
This page took 0.028987 seconds and 4 git commands to generate.