0.2.1 • Published 3 months ago

millheat-js v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Mill Open API Client for JavaScript

Javacript library to ease the use of the Mill Open API V2

Install

npm install millheat-js

Examples

import { Client } from "millheat-js";

let client = new Client({
  username: "",
  password: "",
});


let hl = await client.getHouses();
console.log("selectHomeList", hl);

let i1 = await client.getDevicesForHouse("YOUR-HOUSE-ID");
console.log("getDevicesForHouse",  JSON.stringify(i1,null,2));

let i2 = await client.getIndependentDevicesForHouse("YOUR-HOUSE-ID")
console.log("getIndependentDevicesForHouse", JSON.stringify(i2,null,2));