Coder Social home page Coder Social logo

twitchtohue's Introduction

Twitch to Hue

An application to visualise follows and hosts with a Phillips Hue controller and bulb, via Streamlabs.

WARNING This is very rough and ready, it's not user friendly at this point at all.

Building

Build it with maven.

mvn package

Output will be in target/, move it to where ever.

Configuring

Create a file in same directory as the jar called twitchtohue.properties.

hue.address=IP-ADDRESS
hue.token=HUE_TOKEN
hue.lightId=18
hue.onTime=6000
http.port=22222

IP Address

Change the IP-ADDRESS to that of your Hue controllers address, exercise for the reader to identify that, it's too complicated to have written here.

Hue Token

To generate a HUE_TOKEN, connect to http://IP-ADDRESS/debug/clip.html.

In the URL box, replace the content with just /api.

In the Message Body, put {"devicetype":"twitchtohue"}.

Press the Button on your Hue controller, then click POST.

In the response you should see a "username": "HUE_TOKEN"", grab the token without the ".

Light ID

In CLIP, change the URL to /api/HUE_TOKEN/lights (replacing the HUE_TOKEN with the one you just found out).

Clear the Message Body, and click GET.

Assuming you have named your bulbs (what kind of a nerd are you after all?), find the name of the bulb you want, then refer to it's ID number which will be at the start of that bulbs section.

Streamlabs

Go to your alert box in the dashboard, click the Follows section, find Enable Custom HTML/CSS, scroll to the bottom of the code and insert:

<img src="http://localhost:22222/follow/{name}" style="visibility: hidden" />

Go the same for Hosting, use this HTML:

<img src="http://localhost:22222/host/{name}" style="visibility: hidden" />

Running

Start twitchtohue before you stream with:

java -jar twitchtohue-0.0.1-SNAPSHOT.jar

Enjoy.

twitchtohue's People

Contributors

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