LIFX HTTP API
NOTE: This library is currently a WIP and therefore unstable, and should not be used for any production environments.
A dart implementation of the LIFX HTTP API. This package also provides classes for LIFX devices and device properties.
A CLI REPL is available at bin/cli.dart
.
Usage
You'll need a LIFX Personal Access Token to interact with the LIFX HTTP API. You can generate one with your LIFX Cloud account here: https://cloud.lifx.com/settings
See example/main.dart
on how to pass this token to the dart client.
LIFX HTTP API Implementation Checklist
x
(GET) List Lightsx
(PUT) Set State
LIFX Device Support
x
Bulb
Repl
This library also ships with a command line REPL to use the library. To use it:
- Copy the .env example:
cp .env.example .env
- Add your LIFX Developer API key to the .env file
- Run
dart run bin/cli.dart
- Run
help
in the REPL to get a list of available commands.
Libraries
- cli
- client
- lifx_http_api
- This library provides a client to interface with the LIFX HTTP API as well as some classes for LIFX devices, device properties, and API responses.
- logging
- models