Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 889 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 889 Bytes

Qblinks Quantum Cloud XIM Driver for Plug/Smartthings

Prepare

  1. Run 'npm install'.
  2. Add AWS_REGION=us-east-2 into shell environment variables.
  3. Add auth_url=https://authdev.qblinks.com/api into shell environment variables.
  4. Add xim_url=https://ximdev.qblinks.com/api into shell environment variables.
  5. Add ./bin and .bin/unit-test into shell PATH variable.
  6. Using Qblinks Clound account and password to login and get valid Quantum Token.
  7. Get OAuth URL and proceed OAuth processes on Browser.
  8. Apply authenticate method.

Test Locally

  1. Modify MY_QUANTUM_TOKEN in .xim_config file as a valid Quantum Token.
  2. Modify MY_DEVICE_ID in .xim_config file as a valid Device ID.
  3. Create test data in event-samples folder.
  4. Run quantum-local script to test driver and method locally.
quantum-local -l index.js -h handler -e event-samples/discovery.js -t 15