lifx_http_api 0.0.17 copy "lifx_http_api: ^0.0.17" to clipboard
lifx_http_api: ^0.0.17 copied to clipboard

A dart implementation of the LIFX HTTP API for smart LED bulbs.

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 #

  • ✅ (GET) List Lights
  • ✅ (PUT) Set State
  • ❌ (PUT) Set States
  • ❌ (POST) Set Delta
  • ❌ (POST) Toggle Power
  • ❌ (POST) Breathe Effect
  • ❌ (POST) Move Effect
  • ❌ (POST) Morph Effect
  • ❌ (POST) Flame Effect
  • ❌ (POST) Pulse Effect
  • ❌ (POST) Effects Off
  • ❌ (POST) Cycle
  • ❌ (GET) List Scenes
  • ❌ (PUT) Activate Scene
  • ❌ (GET) Validate Color
  • ❌ (POST) Clean

LIFX Device Support #

  • ✅ Bulb
  • ❌ Multizone
  • ❌ Tile

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.
3
likes
150
pub points
4%
popularity

Publisher

unverified uploader

A dart implementation of the LIFX HTTP API for smart LED bulbs.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

cli_repl, dotenv, http, json_annotation

More

Packages that depend on lifx_http_api