1.0.8 • Published 2 years ago

wizlib v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

wizlib - a minimal nodejs library written in typescript for interacting with wiz smartlights

import wizlib from "wizlib";

// discover bulbs on the network with the static method
const discoveredBulbs = await wizlib.discover();

// returns an array of objects representing the bulbs found
[
    { ip: "192.168.1.102", state: "on" },
    { ip: "192.168.1.103", state: "on" },
    { ip: "192.168.1.123", state: "off" },
];

// create a bulb instance
const bulb = wizlib.createBulb("192.168.1.102");

// use the various inbuilt methods defined in the api
bulb.turnOn();
bulb.decreaseBrightness();
bulb.setRGB(50, 255, 10);
bulb.increaseRed();
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago