1.3.8 • Published 3 years ago
govee-api v1.3.8
Node-Govee-API
Easily control your govee lights with nodejs!
Installation
Simply use npm install govee-api
inside your node project directory.
Examples
- In this example it just simply turns the light on
const govee = require('govee-api');
govee.initDevice("GOVEE_SUPPLIED_API_KEY", "DEVICE MAC ADDRESS", "DEVICE MODEL");
govee.control.setOn(true);
- In this example it sets the color to red
const govee = require('govee-api');
govee.initDevice("GOVEE_SUPPLIED_API_KEY", "DEVICE MAC ADDRESS", "DEVICE MODEL");
govee.control.setColor(255, 0, 0);