agsh / onvif

ONVIF node.js implementation

Home Page:http://agsh.github.io/onvif/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetStatus fails due to unsupported zoom

bartbutenaers opened this issue · comments

Dear,

I have a Panasonic VT-164 camera, which has limited PTZ support (pan and tilt are supported but not zoom).

When I call getStatus, I get an error: "Cannot read property '$' of undefined"

The full stack trace:

image

The response of getStatus is OK, however the error is caused by the res.position.zoom which is undefined:

image

Would appreciate if somebody could fix this.

Thanks in advance !!
Bart Butenaers

Dear,

Panasonic's missing zoom functionality causes other errors.
When calling getConfigurationOptions this exception is raised:

image

Now the problem is caused by sp['absoluteZoomPositionSpace'] being undefined:

image

I assume the same problem will also occur when using relative, continious, ...

Bart

Have you implemented a workaround that you want to merge into the main project?

Hi Roger (@RogerHardiman ),

To be honest I got the impression that this project wasn't actively maintained anymore, so I stopped my developments to integrate this node into the Node-RED IOT framework.

But if you are still interested, I can resume my work next year and create a pull request.

Hope to hear from you again soon!
Bart

You are right that there is not much going on with the library right now.
In my case I made all the changes I needed to the library to support a few of my projects and have not been doing any active development work.

I use use the library in my "ONVIF Audit" tool which scans the network and take a JPEG snapshot from each camera and I did have to make some changes this morning to fix an issue with a HikVision camera.

So when you are ready we can have a look at the Panasonic camera.
It would be good to fix the problem.

Thanks
Roger

Ok Roger,
good to know you are still hanging out here :-) I will try to create a pull request in the beginning of next year.
Thanks!
Bart

great.
Also if you can make the camera available via the internet (just port forwarding Port 80) then I can connect from here. You'd need to PM me the details.
Roger

Hi
Do you still have the camera. If you can give me some remote access I can take a look and fix the problem.
Thanks
Roger

Hi Roger,
thanks for the response! And BTW thanks for fixing the event stream. Will try to test it as soon as possible. My Onvif developments have been un hold for more than a year ;-(
Will get back to you soon!
Bart

Have just pushed commit ca10a0c which is the first fix for your Panasonic camera, it changes getSystemDateAndTime to try with authentication.
I now get this in Example2.js for your camera...

Info: = {"manufacturer":"Panasonic","model":"BL-VT164","firmwareVersion":1.45,"serialNumber":"xxxxxx","hardwareId":"00"}

I have imported lodash into the project. Now I can use their _get command to safely check a path to item in an object is valid and insert a default value if is not valid.
This lets me check if a camera has Zoom without lots of if statements.

Anyway getStatus is now fixed and tested with a few cameras in the office.
Just have getConfigurationOptions to do next.

getConfigurationOptions is fixed in commit edeede6
getStatus was fixed in commit b6de685