Git Product home page Git Product logo

onvif-integration's Introduction

Service provides management endpoint operations for PTZ cameras

Current service manages PTZ IP camera using ONVIF (Open Network Video Interface) protocol. Internally, it uses Shinobi ONVIF library.

Provided operations

Following operations are implemented:

  1. GET http://127.0.0.1:8880/discover - exposes information about discovered ONVIF devices; operation seems to be working only in local network.

  2. GET http://127.0.0.1:8880/profile - exposes information about the selected and supported profiles.

  3. GET http://127.0.0.1:8880/home - turns camera back to the home position, if device supports current operation.

  4. GET http://127.0.0.1:8880/move?x=1.0&y=-1.0&z=0.5&t=5 - makes the PTZ camera to move with specified axis speeds during 5 seconds. x, y, z values must be within the range [-1.0;1.0]. t - time period in seconds.

    x - pan, y - tilt, z - zoom

  5. GET http://127.0.0.1:8880/position?x=1.0&y=-1.0&z=0.5 - absolute move; values ranges depend on camera model.

How Run the Application

  1. Create .env file in project folder. Specify following configuration parameters:
PORT=8880 # port on which NodeJS service is running
LOGIN=admin # user name for ONVIF endpoint
PASSWORD=qwerty123! # user password for ONVIF endpoint
WARN=Port 80 on camera MUST be accessible in any way!
# even when internal port 80 is mapped to any other value, it must also be mapped to the external 80th port!
CAM_MGMT_URL=http://213.87.92.175/onvif/device_service # onvif management endpoint
  1. npm install - installs all dependencies
  2. npm run start - starts NodeJS server

onvif-integration's People

Contributors

egorzhidkov avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.