![Download VideoSolo Video Converter Ultimate 2.3.20](https://cdn1.cdnme.se/5447227/9-3/20_64e61dfc9606ee7f8b257166.png)
You can optionally set a duration which will fade on (or off) over the given duration in seconds.ĭuration : float (Fade to the given state over a duration of seconds. Physically powered off lights are ignored.Ĭallback(body) : function (Body contains server response status if any) function setPower(selector, state, duration, cb) Turn off lights if they are on, or turn them on if they are off. Selector : string (See official selector documentations here) Most endpoints accept selectors when performing actions. Properties such as id, label, group and location can be used in selectors. Gets lights belonging to the authenticated account.
![download lifx api download lifx api](https://www.beaconlighting.com.au/media/catalog/category/218_LIFX.jpg)
![download lifx api download lifx api](https://downloads.linksys.com/support/assets/image/316724/sf316724-008_en_v2.png)
(Official REST Documentation Here) function listLights(selector, callback) The function parameters and default values are like the ones in the official documentations for REST but made easier into functions. Once the object is created you can use the function in it to control the lights. Var lifx = new lifxObj("ACCESS TOKEN HERE") Once installed you can instantiate your object and pass your access token. Install the module from npm ~ npm install lifx-api
![download lifx api download lifx api](https://windows-cdn.softpedia.com/screenshots/Lumia-Stream_4.png)
LIFX's Official REST API NodeJs Wrapper to control the lightbulb
![Download VideoSolo Video Converter Ultimate 2.3.20](https://cdn1.cdnme.se/5447227/9-3/20_64e61dfc9606ee7f8b257166.png)