bartbutenaers / node-red-contrib-onvif-nodes

Node Red nodes for communicating with OnVif compliant IP devices
Apache License 2.0
65 stars 25 forks source link

Onvif-Device not with different Port #19

Closed Christchoper closed 3 years ago

Christchoper commented 3 years ago

It is not possible to specify a port in the Onvif config node. My camera listens to port 8000. I tried with IPadress:8000 but no connection is possible. Error Msg: node: Kamera msg : error "Error: getaddrinfo ENOTFOUND 192.168.10.245:8000"

bartbutenaers commented 3 years ago

Hi @Christchoper, Have you seen this on the readme page:

image

I assume you use the old version from NPM ? Bart

Christchoper commented 3 years ago

Hi Bart, Thank you for your quick reply. Unfortunately I am not able to install git on my RaspberryMatic (CCU3). Can you maybe help me there. Best regards, Chris

bartbutenaers commented 3 years ago

I have installed the latest beta version on npm:

image

So you should be able to install it like this:

npm install node-red-contrib-onvif-nodes
Christchoper commented 3 years ago

I have now uninstalled beta4 and tried to install the new version. Unfortunately I get an error:

_root@homematic-raspi:~# cd /usr/local/addons/redmatic/var root@homematic-raspi:/usr/local/addons/redmatic/var# npm install node-red-contri b-onvif-nodes npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno ENOENT npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t https://github.com/agsh/onvif.git npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /tmp/npm-cache/_logs/2020-12-18T11_17_07788Z-debug.log

bartbutenaers commented 3 years ago

The "latest" version on npm is version 0.0.1-beta.12, so not sure why you get that old version. I think you can install the latest version like this:

npm install node-red-contrib-onvif-nodes@0.0.1-beta.12
Christchoper commented 3 years ago

Thank you very much for the advice. Unfortunately, that does not work either. I tried it on my CCu3 and on my test environment. I have sent you the error log in the attachment. Can you find anything there that points to the problem? Thanks for your help.

2020-12-18T12_34_15_580Z-debug.log

bartbutenaers commented 3 years ago

For me this works fine:

image

I have run out of creativity... If I were you, it would ask your question on the Node-RED forum. Since there is a lot of npm knowledge available in the community...

bartbutenaers commented 3 years ago

This problem was solved via Discourse