zenware / huehue Goto Github PK
View Code? Open in Web Editor NEWPython API Client for controlling a Philips Hue Bridge/Lights
License: MIT License
Python API Client for controlling a Philips Hue Bridge/Lights
License: MIT License
Mainly this is for me to have any tool at all that lets me play with the Hue API in a convenient way but I figured why not also include a CLI to control the lights, should be fun.
My initial thoughts are something like the following
huehue list lights, huehue light 1 set color <X>, huehue light 1 set brightness 50; or huehue lights set {'bri': 100, 'hue': 65000}
Commentary from ssh.chat
๐ฎ shazow: zenware: looks ok but -1 to json in cli args
๐ฎ shazow: you prolly want more flags too
๐ฎ shazow: or something like `huehue set light=1 brightness=50`
* biglad left. (After 2.2 hours)
๐ฎ shazow: or maybe a bulk filter interface would be more useful...
๐ฎ shazow: something like "set all lights with brightness <50 to 75"
๐ฎ shazow: but from a cli interface
๐ฎ shazow: huehue COMMAND FILTER VALUES...
๐ฎ shazow: huehue get 'brightness<50'
๐ฎ shazow: huehue set 'brightness<50' brightness=100
๐ฎ shazow: huehue set 'room==living room' brightness==50 'color=#aabbcc'
๐ฎ shazow: basically comparisons (>, ==, etc) are filters, assignments are values
๐ฎ shazow: i guess at that point you want a little logic dsl
๐ฎ shazow: to do operators
๐ฎ shazow: wonder what a good fit for that would be
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.