bsrequest v1.0.3
Synopsis
This is a Tool for accessing the API of Betterspace (https://betterspace360.com)
Code Example
var bs=new BSrequest(host,username,password); bs.getRoomTemp("4711",(temp)=>console.log(temp));
Motivation
This Tool is to simplify the access to the Betterspace API.
Installation
npm install bsrequest
API Reference
getRoomTemp(roomId,callback) Gets the actual Temperature for Room with ID roomId getDesiredTemp(roomId,callback) Gets the desired Temperature for Room with ID roomId setDesiredTemp(roomId,temperature) Sets the desired Temperature for Room with ID roomId getPath(path,callback) sends GET-Request to API-path postPath(path,param) sends POST-Request to API-Path with param putPath(path,param) sends PUT-Request to API-Path with param getRooms(callback) Gets the Information about all Rooms getUnits(callback) Gets the Information about all Units