README
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"
withtype: "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.