Git Product home page Git Product logo

lighthouse-hue's Introduction

Lighthouse changing the color of Philips Hue light bulbs based on overall report score.

Get started

yarn install

If you've already installed the app and just want to pull the latest deps:

yarn upgrade

Run it

Kiosk mode

To run "kiosk mode", use:

yarn kiosk

This will start a webserver and open two browser windows to the app. One is a kiosk UI (http://localhost:8080?kiosk) that you should drag to a larger monitor and the other is where users input a URL to test Lighthouse (http://localhost:8080).

Standalone mode

To only start a webserver, use:

yarn start

Running stable Chrome

To run a different version of Chrome (e.g. Stable), specify the CHROME_PATH env variable:

CHROME_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" yarn start
CHROME_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" yarn kiosk

Setup it

Create a .hueusername in the root folder and fill it with a username registered on your Hue Bridge. Make sure there's no trailing new line in the file. If you don't have a username:

  1. press the Link Button on the Hue Bridge
  2. run the app (below). Doing so will create a "Lighthouse" user on the bridge.
node index.js <URL>
node index.js --view <URL>
node index.js --output=json --output-path=results.json <URL>

This should launch Chrome and run Lighthouse against the URL that you input.

Alternatively, have the bridge generate a random username for you by following the instructions in the Hue API doc (https://developers.meethue.com/documentation/getting-started), and enter it into .hueusername.

Also, create a .bridgeipaddress in the root folder and fill it with the IP address of the Hue Bridge.

lighthouse-hue's People

Contributors

ebidel avatar micyeung 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.