
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
opent2t-cli
Advanced tools
Command Line Interface (CLI) and reference app for Open Translators to Things.
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-cli
Or, to install globally
$ npm install -g opent2t-cli
You can run a translator locally with the CLI.
npm install opent2t-translator-com-wink-thermostat
node_modules\.bin\opent2t-cli -o opent2t-translator-com-wink-hub -h WinkHub
Or, if installed globally
opent2t-cli -o opent2t-translator-com-wink-hub -h WinkHub
You'll be prompted for some info:
? Type in your Wink username
? Type in your Wink password
? Ask for Client ID
? Ask for Client Secret
You 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 WinkHub
Or, if installed globally
opent2t-cli -h WinkHub
This 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 ThermostatResURI
Or, if installed globally
opent2t-cli -h WinkHub -t opent2t-translator-com-wink-thermostat -i 152846 -g ThermostatResURI
Let's break this call down:
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:
Launch the reference application
node_modules\.bin\opent2t-ui
Or, if installed globally
opent2t-ui
This 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.
FAQs
Command Line Interface (CLI) and reference app for Open Translators to Things.
The npm package opent2t-cli receives a total of 4 weekly downloads. As such, opent2t-cli popularity was classified as not popular.
We found that opent2t-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.