Command Line Interface (CLI) for Open Translators to Things. Allows developers to interact with translators during development, testing and debugging. See http://www.opentranslatorstothings.org. This README will help get you started developing in this repo.
The CLI is a work in progress, and we appreciate any help we can get from the community to finish it per the goals listed below.
A way to run a translator locally for development, testing, debugging... or just to play around.
Simple validation test to make sure a translator is well formed before submission to the GitHub repository, e.g. all methods in the schema have been implemented correctly, all required files are present and have the right names/contents, etc.
Extensible in the future to do many more advanced actions with community participation, e.g. deploy to device emulators, live-reload style development, etc.
-i is the id of the specific device you want to talk to
-g is the get RAML method call the cli makes
Run the CLI in interactive mode
node_modules\.bin\opent2t-cli -m
Or, if installed globally
opent2t-cli -m
You can run the CLI in interactive mode for a more guided experience. In interactive mode you will be given menu prompts to perform common tasks such as:
Onboarding a hub
Selecting hubs and devices
Viewing device information
Modifying device state.
Run the graphical reference application
Launch the reference application
node_modules\.bin\opent2t-ui
Or, if installed globally
opent2t-ui
From here you can:
Onboard an installed hub.
Select a hub that has been onboarded.
Interact with the hub devices.
Get information about the state of the hub and devices.