This module exposes all necessary modules to establish a secure and encrypted connection to a Loxone Miniserver.
LxCommunicator can be installed using npm (npm i lxcommunicator
) or bower (bower install lxcommunicator
)
- Loxone Electronics GmbH doesn't provide any support for this module
- Please submit an issue or file an pull request if you find any issue
Native | Supported |
---|---|
Node.js | [x] |
Browserify | [x] |
Browser | Supported |
---|---|
Safari (Mobile) | [x] |
Chrome (Mobile) | [x] |
Firefox | [x] |
Edge | [x] |
IE | [ ] |
Example: ./test/index.js
Note for Browserify
Please make sure Browserify is correctly configured!
- Add LxCommunicator as a local module
npm install lxcommunicator --save
- Require LxCommunicator
var LxCommunicator = require('lxcommunicator');
Example: ./test/index.html
- Add LxCommunicator as a local module
npm install lxcommunicator --save
- Reference
LxCommunicator~Browser.js
in yourindex.html
<script src="{PATH_TO_LXCOMMUNICATOR}/LxCommunicator~Browser.min.js"></script>
- LxCommunicator is exposed as a global object
Please take a look in the ./test
folder and run npm test
to run ./test/index.js
in Node.js
- Execute the
browserify.js
script, it will create the browser modules
node ./browserify.js
Go to ./vendor/Debug.js
and adopt the flags to your needs.
Note:
Don't forget to execute the browserify script everytime you make a change in this module!