24.3.28 • Published 1 month ago

@dwe.ai/dwe-os-1 v24.3.28

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
1 month ago

DWE OS

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 @dwe.ai/dwe-os-1

Usage

Running

Start the server: dwe-os-1 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-os-1').serve();
24.3.28

1 month ago

24.3.1

2 months ago

24.2.29

2 months ago

0.2.9

2 months ago

0.2.8

2 months ago