lifx-api-server
Description
A library/server that mimicks the official LIFX API using the local LAN protocol.
Offline API Supported Methods:
- List Lights
- Set State
- Set States
How to use library
Add the following line to your cargo.toml:
lifx-api-server = "0.1.0"
Example:
extern crate lifx_api_server;
// Now you can use curl to access the api
// curl -X PUT "http://localhost:8089/v1/lights/all/state" -H "Authorization: Bearer xxx" -d "color=kelvin:9000"
// or with rust using lifx-rs......see example below
lifx-rs example:
extern crate lifx_rs as lifx;
License
Released under Apache 2.0 or MIT.
Support and follow my work by:
Buying my dope NTFs:
Checking out my Github:
Following my facebook page:
Subscribing to my Patreon:
Or donating crypto:
- ADA: addr1qyp299a45tgvveh83tcxlf7ds3yaeh969yt3v882lvxfkkv4e0f46qvr4wzj8ty5c05jyffzq8a9pfwz9dl6m0raac7s4rac48
- ALGO: VQ5EK4GA3IUTGSPNGV64UANBUVFAIVBXVL5UUCNZSDH544XIMF7BAHEDM4
- ATOM: cosmos1wm7lummcealk0fxn3x9tm8hg7xsyuz06ul5fw9
- BTC: bc1qh5p3rff4vxnv23vg0hw8pf3gmz3qgc029cekxz
- ETH: 0x7A66beaebF7D0d17598d37525e63f524CfD23452
- ERC20: 0x7A66beaebF7D0d17598d37525e63f524CfD23452
- XLM: GCJAUMCO2L7PTYMXELQ6GHBTF25MCQKEBNSND2C4QMUPTSVCPEN3LCOG
- XTZ: tz1SgJppPn56whprsDDGcqR4fxqCr2PXvg1R