Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to call surveillance Station Face Result API #64

Open
celevra opened this issue Jul 11, 2021 · 1 comment
Open

how to call surveillance Station Face Result API #64

celevra opened this issue Jul 11, 2021 · 1 comment

Comments

@celevra
Copy link
Contributor

celevra commented Jul 11, 2021

Hi,

how to run this API Call:

GET /webapi/entry.cgi?
api="SYNO.SurveillanceStation.Face.Result"&version="1"&method="List"&blIncludeSnapshot=false&blInclu
deRegisteredFace=false&filter={"start_date_ts":1593446400000,
"end_date_ts":1594051200000,"ignore_bad_quality":true}&limit=1&&slaveDsParam={"0":
{"max_id":88731, "start":0}}

described here on Page 540 https://global.download.synology.com/download/Document/Software/DeveloperGuide/Package/SurveillanceStation/All/enu/Surveillance_Station_Web_API.pdf

thried this:

syno.ss.Face.Result({'method':'List','blIncludeSnapshot': true, 'blIncludeRegisteredFace': true}, function(err,res){
    console.log(res)
});

with this result:

/node/faces.js:22
syno.ss.Face.Result({'method':'List','blIncludeSnapshot': true, 'blIncludeRegisteredFace': true}, function(err,res){
             ^

TypeError: Cannot read property 'Result' of undefined
    at Object.<anonymous> (/node/faces.js:22:14)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
@dotWee
Copy link

dotWee commented Nov 14, 2021

Did you get it to work?

Since those are newer API methods and this library a bit outdated, you probably need to research & add the Face API definitions to SurveillanceStation.api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants