Commit | Line | Data |
---|---|---|
f37162a4 SK |
1 | #! /bin/sh |
2 | ||
3 | set -e | |
4 | ||
654ea6e2 SK |
5 | dir_bin="$1" |
6 | weather_station_id="$2" | |
f37162a4 | 7 | |
57ed1a64 | 8 | curl \ |
dd5287c6 SK |
9 | --silent \ |
10 | --show-error \ | |
57ed1a64 SK |
11 | -X GET \ |
12 | -H "accept: application/vnd.noaa.obs+xml" \ | |
13 | "https://api.weather.gov/stations/${weather_station_id}/observations/latest?require_qc=false" \ | |
14 | | hxpipe \ | |
15 | | "$dir_bin"/khatus_parse_noaa_api |