scripts: use "adddata" instead of "addjsondata".

This commit is contained in:
Martin Preuss
2025-03-19 23:22:26 +01:00
parent 95d589b126
commit 7a045abcc2
2 changed files with 2 additions and 2 deletions

View File

@@ -32,6 +32,6 @@ fi
# b475386c-30cc-453a-b3b7-1d17ace13595 for Aller at Celle
#
if ( curl -s -S https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/$STATION_ID/W/currentmeasurement.json -o $JSONFILE ); then
$AQHOME_TOOL addjsondata -J $JSONFILE -c pegel -d ""$WATER_NAME/$LOCATION"" -N "current" -v "@value" -U "cm"
$AQHOME_TOOL adddata -J $JSONFILE -c pegel -d ""$WATER_NAME/$LOCATION"" -N "current" -v "@value" -U "cm"
fi