(18.01.2023, 13:53)admin Wrote: This is a copy/paste issue. Remove all leading spaces and it will work. The previous example might also work if modified:This look to works fine, log rom event below :
Code:<?
require('apps')
upload()
vars = getvars()
for key, value in pairs(vars) do
log(key, value)
end
* arg: 1
* string: event
* arg: 2
* string: {"packetCounter":"0",
"datetime":"20230119 101832000",
"plateText":"\u0050\u0030\u004c\u0049\u0043\u0049\u0045",
"plateCountry":"POL",
"plateConfidence":"0.843826",
"carState":"new",
"geotag":{"lat": 49,"lon": 17},"imageType": "plate","plateImageType": "png","plateImageSize": "0","carMoveDirection":"unknown",
"timeProcessing":"0",
"timeDetection":"20230119 101832000",
"plateCoordinates":[737, 137, 63, 20],
"carID":"698",
"GEOtarget":"/mnt/opensdk/html/NumberOkEdgeHanwha/images/images/2023119101833_58189/2023119101833_58189lp_P0LICIE.png",
"datetimezone":"2023-01-19T10:18:32+0100",
"carVerticalDirection":"unknown",
"recognitionZone":"1",
"imagesURI":["/home/setup/opensdk/html/NumberOkEdgeHanwha/images/images/2023119101833_58189/2023119101833_58189lp_P0LICIE.png","/home/setup/opensdk/html/NumberOkEdgeHanwha/images/images/2023119101833_58189/2023119101833_58189lp_P0LICIE.jpeg"],
"plateASCII":"P0LICIE",
"plateUnicode":"\u0050\u0030\u004c\u0049\u0043\u0049\u0045",
"sensorProviderID":"1"
}
(19.01.2023, 09:23)2MAX Wrote:(18.01.2023, 13:53)admin Wrote: This is a copy/paste issue. Remove all leading spaces and it will work. The previous example might also work if modified:This look to works fine, log rom event below :
Code:<?
require('apps')
upload()
vars = getvars()
for key, value in pairs(vars) do
log(key, value)
end
* arg: 1
* string: event
* arg: 2
* string: {"packetCounter":"0",
"datetime":"20230119 101832000",
"plateText":"\u0050\u0030\u004c\u0049\u0043\u0049\u0045",
"plateCountry":"POL",
"plateConfidence":"0.843826",
"carState":"new",
"geotag":{"lat": 49,"lon": 17},"imageType": "plate","plateImageType": "png","plateImageSize": "0","carMoveDirection":"unknown",
"timeProcessing":"0",
"timeDetection":"20230119 101832000",
"plateCoordinates":[737, 137, 63, 20],
"carID":"698",
"GEOtarget":"/mnt/opensdk/html/NumberOkEdgeHanwha/images/images/2023119101833_58189/2023119101833_58189lp_P0LICIE.png",
"datetimezone":"2023-01-19T10:18:32+0100",
"carVerticalDirection":"unknown",
"recognitionZone":"1",
"imagesURI":["/home/setup/opensdk/html/NumberOkEdgeHanwha/images/images/2023119101833_58189/2023119101833_58189lp_P0LICIE.png","/home/setup/opensdk/html/NumberOkEdgeHanwha/images/images/2023119101833_58189/2023119101833_58189lp_P0LICIE.jpeg"],
"plateASCII":"P0LICIE",
"plateUnicode":"\u0050\u0030\u004c\u0049\u0043\u0049\u0045",
"sensorProviderID":"1"
}