0.4.0 • Published 4 years ago
generator-xapi-roomkit-macro-debugging v0.4.0
Yeoman generator for xapi-roomkit-macro-debugging
template
Yeoman generator for template from https://github.com/dev-experience/xapi-roomkit-macro-debugging.
Repository template for xapi
RoomKit macros.
If you are developing xapi
macros, this is for you.
Quickstart
- Install Node.js and NPM.
- Install Visual Studio Code with JavaScript support.
Install Yeoman:
Run
npm install -g yo
.Install current template:
Run
npm install -g generator-xapi-roomkit-macro-debugging
.Create an empty directory.
Scaffold a template into that directory.
- Switch to the directory.
- Run
yo xapi-roomkit-macro-debugging
.
Check out README.md.
- Try to debug sample macro:
- Open the directory in Visual Studio Code.
- Set URL and credentials for your device in the
.env
file. - Open the
macros/1-showVolume.js
. - Press 'F5'.
- Check the output in "Debug Console".
- To create your own macro, make a copy of the
macros/0-emptyMacro.js
.