lifx 0.2.1 copy "lifx: ^0.2.1" to clipboard
lifx: ^0.2.1 copied to clipboard

Dart 1 only

A simple library to interact with LIFX lights. Currently contains 5 methods used to interact with lights.

example/main.dart

import 'package:lifx/lifx.dart';
import 'dart:io' show Platform;

void main() {
    Map<String, String> envVars = Platform.environment;

    var lifx = new LIFX(envVars["DART_LIFX"], loggingEnabled: false);
    lifx.setState(brightness: 0.5, color: "red").then((res) => print(res));
}
0
likes
35
pub points
0%
popularity

Publisher

unverified uploader

A simple library to interact with LIFX lights. Currently contains 5 methods used to interact with lights.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

convert, hex, http, json_object, test, unittest

More

Packages that depend on lifx