Git Product home page Git Product logo

deluxe's Introduction

deluxe

A simple Philips Hue app.

Travis

Install

Deluxe is provided as a self-contained binary. See the releases page for downloads.

To install Deluxe, just place it on your path.

macOS

wget "https://github.com/njlr/deluxe/releases/download/v0.1.0/deluxe-macos" -O /usr/local/bin/deluxe
chmod +x /usr/local/bin/deluxe
deluxe

Linux

sudo wget "https://github.com/njlr/deluxe/releases/download/v0.1.0/deluxe-linux" -O /usr/bin/deluxe
sudo chmod +x /usr/bin/deluxe
deluxe

You may also want to create a shorter alias:

alias dlx=deluxe

Usage

First, you must connect to the Philips Hue Bridge:

deluxe setup

To view your lights:

deluxe status

# Or just
deluxe

To switch lights on and off:

# Switches lights 1, 2 and 3 on
deluxe on 1 2 3

# Switches light 4 off
deluxe off 4

To set the color of your lights (and switch them on):

# Sets lights 1 and 2 to red
deluxe set 1 2 red

# Sets light 3 to #f5ee6b
deluxe set 3 #f5ee6b

# Sets light 4 to rgb(255, 160, 40)
deluxe set 4 "rgb(255, 160, 40)"

You can also use all in place of a light number:

# Set all lights to purple
deluxe set all purple 

Or a light name:

deluxe set bedside-lamp green

Or even a room name:

deluxe set kitchen cyan 

Colors can also be fetched from Google images; just provide a search string:

deluxe set bedroom "forest green"

Build

yarn install
yarn build
node ./dist/index.js

Develop

yarn babel-node ./src/index.js

deluxe's People

Contributors

njlr avatar

Watchers

James Cloos 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.