- Notifications
You must be signed in to change notification settings - Fork10
Big Lighthouse Kiosk at Google I/O 2017
ebidel/lighthouse-hue
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Lighthouse changing the colorofPhilips Hue light bulbsbased on overall report score.
yarn install
If you've already installed the app and just want to pull the latest deps:
yarn upgrade
To run "kiosk mode", use:
yarn kiosk
This will start a webserver and open two browser windows to the app. One is akiosk UI (http://localhost:8080?kiosk) that you should drag to a larger monitorand the other is where users input a URL to test Lighthouse (http://localhost:8080).
To only start a webserver, use:
yarn start
To run a different version of Chrome (e.g. Stable), specify theCHROME_PATH
env variable:
CHROME_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" yarn startCHROME_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" yarn kiosk
Create a.hueusername
in the root folder and fill it with a usernameregistered on your Hue Bridge. Make sure there's no trailing new line in the file.If you don't have a username:
- press the Link Button on the Hue Bridge
- 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.