Skip to content

BlingRomance/quantum_xim_plug_smartthings

 
 

Repository files navigation

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

About

Qblinks Quantum Cloud XIM Driver plug/smartthings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.9%
  • Shell 4.9%
  • Groovy 3.2%