{"_id":"@dwe.ai/dwe-os-1","_rev":"7-3cdc1f0850ae7b79de5a99e7f27f8498","name":"@dwe.ai/dwe-os-1","dist-tags":{"latest":"24.3.28"},"versions":{"24.3.1":{"name":"@dwe.ai/dwe-os-1","author":{"name":"DeepWater Exploration Inc."},"license":"GPL-3.0","os":["linux"],"version":"24.3.1","description":"Web Based UVC Control Driver for the DeepWater Exploration exploreHD and HDCam","main":"lib/index.js","bin":{"dwe-os-1":"bin/index.js"},"scripts":{"build":"cd client && npm run build","prepack":"npm run build","install":"cd camera_controls && make","start":"node bin/index.js","format":"npx prettier --write \"lib/**/*.{js,jsx,ts,tsx}\" && npx prettier --write \"client/**/*.{js,jsx,ts,tsx}\" && npx prettier --write \"bin/**/*.{js,jsx,ts,tsx}\" && npx prettier --write \"examples/**/*.{js,jsx,ts,tsx}\"","test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"@dwe.ai/v4l2camera":"^1.2.3","express":"^4.18.2","gstreamer-superficial":"^1.7.4","node-persist":"^4.0.1","node-wifi":"^2.0.16","socket.io":"^4.7.4","usb-detection":"^4.14.2","yargs":"^17.7.2"},"contributors":[{"name":"Brandon Stevens","email":"team@dwe.ai","url":"https://github.com/brandonhs"},{"name":"Kunal Singla","email":"team@dwe.ai","url":"https://github.com/tekunalogy"}],"_id":"@dwe.ai/dwe-os-1@24.3.1","gitHead":"8018b2aa8f05ccc1de84fb7739816e71b5f31a4c","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-4iTT/vEV3RXOcOtJb3idO/aBV1WE4hXYGu/KvJKoFtcsDXtfbM88p0MBDZczG7wJnZm8LULCgxcQO7trhCMBjg==","shasum":"d5a5dd6fb9ef0b06aba15a0840b658064556d001","tarball":"https://registry.npmjs.org/@dwe.ai/dwe-os-1/-/dwe-os-1-24.3.1.tgz","fileCount":64,"unpackedSize":1072295,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6eqAToOUIV4rJinytyro4vdqyh6ZlNppQRi3fDE77VAiBufTqdgKkVT8hL3jSSMn43WX9IYbnALrL9ND7/vAhefw=="}]},"_npmUser":{"name":"dweadmin","email":"team@dwe.ai"},"directories":{},"maintainers":[{"name":"dweadmin","email":"team@dwe.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dwe-os-1_24.3.1_1709320924700_0.33962673457002057"},"_hasShrinkwrap":false},"24.3.28":{"name":"@dwe.ai/dwe-os-1","author":{"name":"DeepWater Exploration Inc."},"license":"GPL-3.0","os":["linux"],"version":"24.3.28","description":"Web Based UVC Control Driver for the DeepWater Exploration exploreHD and HDCam","main":"lib/index.js","bin":{"dwe-os-1":"bin/index.js"},"scripts":{"build":"cd client && npm run build","prepack":"npm run build","install":"cd camera_controls && make","start":"node bin/index.js","format":"npx prettier --write \"lib/**/*.{js,jsx,ts,tsx}\" && npx prettier --write \"client/**/*.{js,jsx,ts,tsx}\" && npx prettier --write \"bin/**/*.{js,jsx,ts,tsx}\" && npx prettier --write \"examples/**/*.{js,jsx,ts,tsx}\"","test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"@dwe.ai/v4l2camera":"^1.2.3","express":"^4.18.2","gstreamer-superficial":"^1.7.4","node-persist":"^4.0.1","node-wifi":"^2.0.16","socket.io":"^4.7.4","usb":"^2.12.1","yargs":"^17.7.2"},"contributors":[{"name":"Brandon Stevens","email":"team@dwe.ai","url":"https://github.com/brandonhs"},{"name":"Kunal Singla","email":"team@dwe.ai","url":"https://github.com/tekunalogy"}],"_id":"@dwe.ai/dwe-os-1@24.3.28","gitHead":"00db956e9278635685a9f7d632d15472dc14f7a5","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-T1wx6fd5UZ9108R5ajoy4LqmRR3x5LMCx2H+vW66zONQQiablqOd+KwOYfM1GuBNR13mT32Jl28DsnVBxK2urA==","shasum":"5e6878ecc7e52dea418ee35aff3f57084b71ca0e","tarball":"https://registry.npmjs.org/@dwe.ai/dwe-os-1/-/dwe-os-1-24.3.28.tgz","fileCount":64,"unpackedSize":1072417,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEaBvWcJh/pGiltCKaeQNOXWng4lXJ4XTyAcWXKZ8SJuAiEApCJfpurmHVZ1dxfR+w6AAk6F+qlMr+7S/y06wWSpfdA="}]},"_npmUser":{"name":"dweadmin","email":"team@dwe.ai"},"directories":{},"maintainers":[{"name":"dweadmin","email":"team@dwe.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dwe-os-1_24.3.28_1711661832545_0.5073019782384507"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-01T02:22:07.523Z","0.2.8":"2024-03-01T02:22:07.847Z","modified":"2024-03-28T21:37:12.954Z","0.2.9":"2024-03-01T03:14:45.272Z","24.2.29":"2024-03-01T03:53:08.081Z","24.3.1":"2024-03-01T19:22:04.935Z","24.3.28":"2024-03-28T21:37:12.772Z"},"maintainers":[{"name":"dweadmin","email":"team@dwe.ai"}],"description":"Web Based UVC Control Driver for the DeepWater Exploration exploreHD and HDCam","contributors":[{"name":"Brandon Stevens","email":"team@dwe.ai","url":"https://github.com/brandonhs"},{"name":"Kunal Singla","email":"team@dwe.ai","url":"https://github.com/tekunalogy"}],"author":{"name":"DeepWater Exploration Inc."},"license":"GPL-3.0","readme":"<a href=\"https://dwe.ai/\">\n    <img src=\"https://docs.dwe.ai/_static/dwe_transparent.png\" alt=\"DWE Logo\" title=\"DeepWater Exploration\" align=\"right\" height=\"60\" />\n</a>\n\n# DWE OS\n\nControl system for the DeepWater Exploration exploreHD and HDCam. Additional streaming functionality is available for all UVC compatible H264 devices.\n\n## Install\n\nOn linux devices:\n\n`sudo apt install libudev-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev`\n\n`sudo npm install -g @dwe.ai/dwe-os-1`\n\n## Usage\n\n**Running**\n\nStart the server: `dwe-os-1 start [port=5000] [host=0.0.0.0]`\n\n*[pm2](https://www.npmjs.com/package/pm2) is recommended for auto-start*\n\n**JavaScript Example**\n\nUsing an exploreHD:\n```js\nconst { DeviceManager } = require('./index');\n\nvar deviceManager = new DeviceManager();\nvar exploreHD;\n\nasync function init() {\n    // device manager events\n    await deviceManager.startMonitoring();\n\n    exploreHD = deviceManager.getExploreHD(0);\n    if (!exploreHD) {\n        console.log('No exploreHD found!');\n        deviceManager.stopMonitoring();\n        return;\n    }\n\n    console.log(`Found exploreHD at ${exploreHD.devicePath}, ${exploreHD.info.name}: ${exploreHD.info.manufacturer}`);\n\n    await exploreHD.setDriverOptions({\n        h264: true,\n        vbr: false,\n        bitrate: 5 // 5 Mbps\n    });\n    await exploreHD.addStream('127.0.0.1'); // start a local stream\n}\n\ninit();\n```\n\nRunning the server:\n```js\nrequire('dwe-os-1').serve();\n```\n","readmeFilename":"README.md"}