Giter VIP home page Giter VIP logo

huehue's People

Contributors

zenware avatar

Stargazers

 avatar  avatar

Watchers

 avatar

huehue's Issues

What should the CLI Interface on this look like?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.