You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@deepwaterexploration/dwe-controls

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepwaterexploration/dwe-controls

Web Based UVC Control Driver for the DeepWater Exploration exploreHD and HDCam


Version published
Weekly downloads
382
decreased by-2.8%
Maintainers
1
Created
Weekly downloads
 

Readme

Source
DWE Logo

dwe-controls

Control system for the DeepWater Exploration exploreHD and HDCam. Additional streaming functionality is available for all UVC compatible H264 devices.

Install

On linux devices:

sudo apt install libudev-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev

sudo npm install -g @deepwaterexploration/dwe-controls

Usage

Running

Start the server: dwe-controls start [port=5000] [host=0.0.0.0]

pm2 is recommended for auto-start

JavaScript Example

Using an exploreHD:

const { DeviceManager } = require('./index');

var deviceManager = new DeviceManager();
var exploreHD;

async function init() {
    // device manager events
    await deviceManager.startMonitoring();

    exploreHD = deviceManager.getExploreHD(0);
    if (!exploreHD) {
        console.log('No exploreHD found!');
        deviceManager.stopMonitoring();
        return;
    }

    console.log(`Found exploreHD at ${exploreHD.devicePath}, ${exploreHD.info.name}: ${exploreHD.info.manufacturer}`);

    await exploreHD.setDriverOptions({
        h264: true,
        vbr: false,
        bitrate: 5 // 5 Mbps
    });
    await exploreHD.addStream('127.0.0.1'); // start a local stream
}

init();

Running the server:

require('dwe-controls').serve();

Keywords

FAQs

Package last updated on 06 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc