virtualherejs

0.1.1 • Public • Published

virtualherejs

VirtualHere nodejs library and cli interface.

Requirements

  • node 10 (tested)
  • a virtual usb host controller - vhci_hcd (linux)

Help

$ vh --help
Usage example:
vh allocate --hub vh-server-address --requirements type=phone
vh release --hub vh-server-address

Commands:
  cli.js allocate  allocate devices
  cli.js release   release allocated resources

Options:
  --version    Show version number                                     [boolean]
  --hub        Virtualhere hub address. <address>(:<port>)   [string] [required]
  --deviceMap  device map file                                          [string]
  --help       Show help                                               [boolean]

deviceMap file

Example file:

[
  {
    "name""long device name",
    "type"'dut'
  },
  {
    "serial""123456",
    "type"'dut'
  }
]

Rules maps all devices using above rules:

  • which contains "name" = "long device name" with type: "dut" -property
  • which contains "serial" = "123456" with "type: "dut" -property.

This allows to map extra details to each unique devices or generally for all similar ones.

Dependencies (9)

Dev Dependencies (16)

Package Sidebar

Install

npm i virtualherejs

Weekly Downloads

1

Version

0.1.1

License

ISC

Unpacked Size

1.68 MB

Total Files

16

Last publish

Collaborators

  • jussiva