Removed default limit of log size

added "?limit=0"
This commit is contained in:
Mario Voigt 2020-07-17 21:32:48 +02:00
parent 364e36b7bb
commit 2244831653

View File

@ -283,7 +283,7 @@ DB_NAME="nuki"
while [ true ]; do
eval "curl -X GET $CURL_HEADER $BASE_URL/smartlock/log -o "$FILE_BASE"_SmartlockLog.json"
eval "curl -X GET $CURL_HEADER $BASE_URL/smartlock/log?limit=0 -o "$FILE_BASE"_SmartlockLog.json"
jq -r "$JQ_CSV" "$FILE_BASE"_SmartlockLog.json > "$FILE_BASE"_SmartlockLog.csv
sed -i 's/true/1/g' "$FILE_BASE"_SmartlockLog.csv
sed -i 's/false/0/g' "$FILE_BASE"_SmartlockLog.csv