ONVIF library for NVT (Network Video Transmitter) devices.
MIT License
Published by hawkeye64 over 6 years ago
Updated because of Hoek (via Request) security vulnerability
Published by hawkeye64 over 6 years ago
Fixes an issue in snapshot module if a network error occurred while getting a snapshot, the application could cause an unintended exception.
Published by hawkeye64 over 6 years ago
Forgot to bump version for NPM.
Published by hawkeye64 over 6 years ago
Fixes a small bug where cameras were being cached before a valid connection.
Published by hawkeye64 over 6 years ago
Hikvision, TrendNET and Pelco are working with Events!
Use pullStart() and pullStop() to start and end the event loop. Pass no arguments to use defaults and get all events and use the event emitter to receive the events:
const OnvifManager = require('onvif-nvt')
OnvifManager.connect('10.10.1.60', 80, 'username', 'password')
.then(results => {
let camera = results
// if the camera supports events, the module will already be loaded.
if (camera.events) {
camera.events.on('messages', messages => {
console.log('Messages Received:', messages)
})
camera.events.on('messages:error', error => {
console.error('Messages Error:', error)
})
// start the event loop that polls for events using defaults
camera.events.startPull()
// call stop() to end the event loop
// camera.events.stopPull()
}
})
Published by hawkeye64 over 6 years ago
This is a major fix to an assumption that the code would be used for monitoring a single camera. All pertinent areas of code were adjusted so that multiple cameras can be monitored at the same time. The only singleton now is the let OnvifManager = require('onvif-nvt').
Published by hawkeye64 over 6 years ago
The saving of xml files was being placed into a folder by camera name. However, some ONVIF services have overlapping methods which was causing some of the xml to be overwritten. The xml is not being saved by camera name and then service (subfolder) to avoid this situation. Jest tests were updated.
Published by hawkeye64 over 6 years ago
This release has Discovery, PTZ, Events, Media, Core and Analytics functionality. 1st Production release!