# millheat-js

> Javascript client to ease the use of the Mill Open API V2

Latest version **0.2.1** (published 2024-01-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install millheat-js
pnpm add millheat-js
yarn add millheat-js
bun add millheat-js
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2024-01-25 |
| First published | 2022-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 32 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bernt-Johan Bergshaven |
| Maintainers | bbergshaven |
| Keywords | millheat, iot, iiot |

## Links

- npm: https://www.npmjs.com/package/millheat-js
- Repository: https://github.com/bbergshaven/millheat-js
- Homepage: https://github.com/bbergshaven/millheat-js#readme
- Issues: https://github.com/bbergshaven/millheat-js/issues
- npm.io page: https://npm.io/package/millheat-js

## Dependencies (2)

- [node-fetch](https://npm.io/package/node-fetch.md) ^3
- [abort-controller](https://npm.io/package/abort-controller.md) ^3.0.0

## Recent versions

- 0.2.1 (latest) — 2024-01-25
- 0.2.0 — 2024-01-25
- 0.1.0 — 2024-01-25
- 0.0.3 — 2022-10-18
- 0.0.2 — 2022-10-12
- 0.0.1 — 2022-10-12

## README

# Mill Open API Client for JavaScript

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


## Install

```
npm install millheat-js
```

## Examples

```js
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));

```

---
_Source: https://npm.io/package/millheat-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
