Testing: metar group keys

This commit is contained in:
Shahram Najm 2023-10-27 17:58:48 +01:00
parent 38d6569e36
commit a2628b6dac
1 changed files with 5 additions and 0 deletions

View File

@ -35,4 +35,9 @@ export METAR_MONTH=4
${tools_dir}/metar_get -n ls $metar_file >/dev/null
${tools_dir}/metar_get -w count=1/2/3 -p CCCC,latitude,longitude,dateTime,elevation,temperature,dewPointTemperature,qnh $metar_file
# Decode a 'group' key as int and double
result=$( ${tools_dir}/metar_get -p visibilityInMetres:i,visibilityInMetres:d -w count=1 $metar_file )
[ "$result" = "6000 6000" ]
# Clean up
rm -f $fLog