hi.. I did some tests... I configured and is working detecting persons and vehicles, but is not getting the snapshot.
with a curl with the timestamp I can get a snapshot without problems:
curl -s -L -H 'X-Cisco-Meraki-API-Key: xxxxx' -d '{"timestamp":"2019-11-11T14:54:27.443Z"}' -X POST -H 'Content-Type: application/json' 'https://nxxx.meraki.com/api/v0/networks/xxxx/cameras/xxxx-xxxx-xxxx/snapshot'
{"url":"https://spn3.meraki.com/stream/jpeg/snapshot/70333350c2323254sasasahZDg3NzQ5ZjZjYTAwNDMxNmUzZTM3MmNm... to the image will expire at 2019-11-11T08:09:18-08:00"}
I can see the post to the meraki api but is no data for that timestamp.
that is the result for the processsnapshot function:
vehicle count: 8
processSnapshot: netID=L_xxxxxxx, camera serial=xxxx-xxxx-xxxx,ts=2019-11-11T14:21:33.557Z, count=0
processSnapshot: netID=L_xxxxxxx, camera serial=xxxx-xxxx-xxxx,ts=2019-11-11T14:21:33.557Z, count=0
error_:
{
status: 400,
statusText: 'Bad Request',
headers: {
server: 'nginx',
date: 'Mon, 11 Nov 2019 14:21:33 GMT',
'content-type': 'application/json; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'cache-control': 'no-cache, no-store, max-age=0, must-revalidate',
pragma: 'no-cache',
expires: 'Fri, 01 Jan 1990 00:00:00 GMT',
'x-frame-options': 'sameorigin',
'x-robots-tag': 'none',
'x-ua-compatible': 'IE=Edge,chrome=1',
'x-request-id': 'b4d7f0bab7hf03447bde69553f6fecccb',
'x-runtime': '0.162265'
},
config: {
url: 'https://nxxx.meraki.com/api/v0/networks/xxxxxxxx/cameras/xxxx-xxxx-xxxx/snapshot',
method: 'post',
data: '{"timestamp":"2019-11-11T14:21:33.557Z"}',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json; charset=utf-8',
'X-Cisco-Meraki-API-Key': 'xxxxxxxx',
'User-Agent': 'axios/0.19.0',
'Content-Length': 40
},
baseURL: 'https://nxxx.meraki.com/api/v0/',
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus]
},
data: { errors: [ 'No video for the specified timestamp' ] }
}