Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

toonapi

fvdm15Unlicense0.3.1

Quby / Eneco Toon API (unofficial)

api, domotica, eneco, quby, smarthome, temperature, thermostat, toon, toonapi

readme

toonapi

Node.js package for Eneco/Quby Toon API (unofficial)

npm Build Status Dependency Status Coverage Status

Beta notice

This package is not ready for production while it is in the v0.x.x version range. Once it's released as v1.0.0 or higher it is stable for production uses.

Installation

npm i toonapi --save

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to http://unlicense.org

Author

Franklin van de Meent

changelog

0.3.1 (2016-7-12)

Bug Fixes
  • errors: Catch all three kinds of xml errors (6ce10d71)

0.3.0 (2016-7-12)

Documentation Changes
  • readme: Added link to npm package (053cf96d)
New Features
  • request: Get accessToken when needed (670d7e64)
Bug Fixes
  • errors: Renamed message var (86e4c7e1)
  • main: Catch all xml API errors (050ce45b)
  • response:
    • Default empty body to obj.success true (3f9dbc63)
    • Default empty body to empty object (71aad0fc)
Tests
  • main:
    • Check data.success value (abe01f92)
    • Added method devices.update (ac13328a)
    • Run oauth.getTokenFromPassword after other methods (09496cab)
    • Fixed missing cache object (80b2deb6)
    • Fixed minor typos (52781c48)
    • Added method devices.device.get test (4a5a5f07)
    • Check device uuid, cache list (68ed9610)
    • Fixed wrong method name in last commit (16e2d9b6)
    • Added method devices.list test (6e77a6ca)

0.2.0 (2016-7-9)

Chores
  • cleanup: Removed trailing spaces (2fc11a97)
  • methods: Renamed method function names (54062313)
Documentation Changes
New Features
  • errors: Added error endpoint missing (d19659a4)
  • oauth: Added method getTokenFromPassword (5252d4ba)
  • setup: Added username and password settings (d1d2e921)
Bug Fixes
  • pushEvent: Fixed bad request path (93e8b81c)
  • devices: Fixed bad request path (56c9d986)
  • consumption: Fixed bad request path (1411fca1)
  • temperature: Fixed request paths (cb07a91b)
  • errors: Fixed missing body for invalid response (3de07430)
  • display: Fixed status API path (1bc3088c)
  • oauth: Disable Authorization header (35ff3a9b)
  • response:
  • setup: Fixed fatal error when object is missing (3b4930d6)
  • methods: Fixed agreements API path (6e57de0d)
  • reponse: Consistent return (a03c3ead)
Refactors
  • main:
    • Moved methods to app object (9ffdfa6a)
    • Removed unavailable agreements.update method (fdb595ba)
    • Cleaner object props assignment (152dd2d7)
  • temperature: Removed method temperature.update (e8d9b02d)
  • errors:
  • request:
    • Added setting to disable Authorization header (81c93781)
    • Added request headers setting (bc5244af)
  • oauth:
    • Refresh and revoke tokens are required (3dae02fc)
    • Removed methods that are not ready (b9ad921f)
    • Clean up getToken (bf683d34)
  • methods: Split agreements into .list and .update (aedd23a6)
Code Style Changes
  • methods: Method .agreements clean up (c1e0b599)
Tests