scripts: use "adddata" instead of "addjsondata".
This commit is contained in:
@@ -30,5 +30,5 @@ fi
|
|||||||
# 106 for Fuhse/Wathlingen
|
# 106 for Fuhse/Wathlingen
|
||||||
#
|
#
|
||||||
if ( curl -s -S https://bis.azure-api.net/PegelonlinePublic/REST/station/$STATION_ID/datenspuren/parameter/1/tage/-1?key=9dc05f4e3b4a43a9988d747825b39f43 -o $JSONFILE ); then
|
if ( curl -s -S https://bis.azure-api.net/PegelonlinePublic/REST/station/$STATION_ID/datenspuren/parameter/1/tage/-1?key=9dc05f4e3b4a43a9988d747825b39f43 -o $JSONFILE ); then
|
||||||
$AQHOME_TOOL addjsondata -J $JSONFILE -c pegel -d "$WATER_NAME/$LOCATION" -N "current" -v "@getPegelDatenspurenResult/Parameter/Datenspuren/AktuellerMesswert" -U "@getPegelDatenspurenResult/Parameter/Einheit"
|
$AQHOME_TOOL adddata -J $JSONFILE -c pegel -d "$WATER_NAME/$LOCATION" -N "current" -v "@getPegelDatenspurenResult/Parameter/Datenspuren/AktuellerMesswert" -U "@getPegelDatenspurenResult/Parameter/Einheit"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -32,6 +32,6 @@ fi
|
|||||||
# b475386c-30cc-453a-b3b7-1d17ace13595 for Aller at Celle
|
# 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
|
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
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user