New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

millheat-api

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

millheat-api

API for Mill heaters

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
3
50%
Maintainers
2
Weekly downloads
 
Created
Source

millheat-api

Api for communication with Mill heaters through MillNorway API

Installation

npm install millheat-api

Usage

const Mill = require('millheat-api');
const mill = new Mill('username', 'password', opts);

// opts = {
//    logger: (optional, default: console),
//    serviceEndpoint: (optional, string),
// }

// List homes
const homes = await mill.getHomes();

// List indepenent devices
const independentDevices = await mill.getIndependentDevices(homeId);

// List rooms
const rooms = await mill.getRooms(homeId);

// List devices by type
const room = await mill.getHouseDevicesByType(homeId);

// Get device
const device = await mill.getDevice(deviceId);

// Set temperature
await mill.setTemperature(deviceId, temperature);

// Set independent control
await mill.setIndependentControl(deviceId, enable);

// Set power
await mill.setPower(deviceId, on, independentOrIndividualOperationMode);

Keywords

mill

FAQs

Package last updated on 21 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts