Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | ||
3 | set -e | |
4 | ||
5 | dir_bin="$1" | |
6 | weather_station_id="$2" | |
7 | ||
8 | curl \ | |
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 |