Giter Site home page Giter Site logo

lights's Introduction

Lights

A Clojure program to set your Hue lights to various, randomly generated color palettes. Palettes shift continuously over time, trying to avoid becoming too white. Great for cocktail parties, or "I'm not sure what I want right now".

You can group bulbs by naming them (e.g.) "Hall light 1", "Hall light 2", .... These lights will be identified as a cluster, and assigned similar colors.

You'll also find a v small implementation of part of the Hue v2 API in here, and a surprisingly complete colorspace conversion library. Might be worth pulling these out into other libraries later---if you'd like to do this, email [email protected]

Getting Started

Auth

To set up the app, run lein run auth. It'll automatically discover a Hue bridge on your network. If you'd like to pass a specific bridge, provide its IP like so:

lein run auth --address 10.0.0.20

Auth will ask you to press your bridge's button, and generate credentials used to interact with the lights. These credentials are saved in .config.edn in the current directory.

Running

To have a party:

lein run party

To change the lights every 5 seconds, run:

lein run party -i 5

License

Copyright © 2015-2024 Kyle Kingsbury

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

lights's People

Contributors

aphyr avatar

Stargazers

Yevhen Bobrov avatar Jussi Räsänen avatar  avatar Barton Rhodes avatar Emma Humphries avatar

Watchers

 avatar  avatar

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.