package
Command Line Interface (CLI) and reference app for Open Translators to Things.
npm install opent2t-cliGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
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.
Get your dev environment set up (PC or Mac):
Install the CLI module
$ npm install opent2t-cliOr, to install globally
$ npm install -g opent2t-cliYou can run a translator locally with the CLI.
npm install opent2t-translator-com-wink-thermostatnode_modules\.bin\opent2t-cli -o opent2t-translator-com-wink-hub -h WinkHubOr, if installed globally
opent2t-cli -o opent2t-translator-com-wink-hub -h WinkHubYou'll be prompted for some info:
? Type in your Wink username
? Type in your Wink password
? Ask for Client ID
? Ask for Client SecretYou should see the output of the CLI and it ends with the following:
Saving onboaringInfo to: ./WinkHub_onboardingInfo.json
Saved!After this, your access token info has been saved so you should not have to do this step again.
node_modules\.bin\opent2t-cli -h WinkHubOr, if installed globally
opent2t-cli -h WinkHubThis will print out the devices that the hub sees and also creates json files so the cli can use this info later.
------ Saving device "152846" to: "opent2t-translator-com-wink-thermostat_device_152846.json"
------ Saving device "1985159" to: "opent2t-translator-com-wink-lightbulb_device_1985159.json"node_modules\.bin\opent2t-cli -h WinkHub -t opent2t-translator-com-wink-thermostat -i 152846 -g ThermostatResURIOr, if installed globally
opent2t-cli -h WinkHub -t opent2t-translator-com-wink-thermostat -i 152846 -g ThermostatResURILet's break this call down:
node_modules\.bin\opent2t-cli -mOr, if installed globally
opent2t-cli -mYou 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:
Launch the reference application
node_modules\.bin\opent2t-uiOr, if installed globally
opent2t-uiThis project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
opent2t
opent2t@microsoft.com
Estimated unpacked size across 65 packages.
19.5 MB+
Includes dependencies.
45.3.2
^1.1.3
14.3.0
^2.9.0
15.1.0
^1.6.1
1.6.5