Coder Social home page Coder Social logo

woodward / git_hue Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 86 KB

Use a Philips Hue light to show the color of the build in GitHub Actions!

License: MIT License

Shell 3.25% Elixir 96.75%
ci continuous-integration elixir github-rest-api philips-hue philips-hue-api philips-hue-bridge

git_hue's Introduction

GitHue

Description

GitHub Actions CI + Philips Hue Light ⮕ GitHub + Hue ⮕ GitHue

GitHue uses the Elixir HueSDK and the GitHub API to change the color of a Philips Hue light based on the status of a GitHub actions continuous integration build (or CI). The light will be set to green if the build is succsessful, yellow if the build is running, and red if the build fails.

Installation and Usage

There are a number of environment variables to configure; see .envrc for a description. To run:

  • git clone [email protected]:woodward/git_hue.git
  • cd git_hue
  • mix deps.get
  • In the Hue app on your phone, you'll need to assign one of your Hue lights a recognizable name (which goes into the environment variable HUE_LIGHT_NAME)
  • You'll need to get a GitHub personal access token which will be set in the environment variable GITHUB_PERSONAL_ACCESS_TOKEN
  • Configure the rest of the environment variables in .envrc`` by adding private values to .local/envrc`
  • IMPORTANT Press the "link" button on top of the Hue Bridge (i.e., the big button on top)
  • Run iex -S mix

The light should change based on the status of your GitHub action.

git_hue's People

Contributors

woodward 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.