GithubHelp home page GithubHelp logo

plexhaxx / plexwink Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vanstinator/plexwink.bundle

0.0 2.0 0.0 200 KB

Control your Wink lights via Plex!

License: GNU General Public License v2.0

Python 100.00%

plexwink's Introduction

PlexWink

Control your Wink lights via Plex!

I picked up a Wink starter kit last week to automate the lights in my living/tv room with Plex. I'd like to share my script in case anyone else would find it useful.

Behavior The script attaches to the Plex Notification web socket. If it receives a playing notification it checks if it's a video, the client name, and the user who owns the stream. If it matches your criteria it triggers these actions.

  • Playing - Dim the lights, and then shut them off
  • Paused - Dim the lights
  • Stopped - turn the lights on at full brightness
  • Nothing detected - turn the lights on at full brightness

Requirements

The config file is pretty simple. Fill out your plex login credentials, your wink credentials, and your wink API credentials. You can get the API keys by email [email protected] and asking for a set.

PLEX_CLIENTs is the list of names of the clients to monitor. Mine are ['Living Room', 'PlexMediaPlayer']

WINK_ACTION_GROUPS is the list of Wink group names for your light bulbs. Mine are ['Entryway Hallway', 'Living Room']

Both of those parameters are case and white-space sensitive, so match exactly what each respective application has.

Roadmap

  • Wink users should sympathize with this, but sometimes a bulb gets "stuck". So I'm planning to add some logic to check for that and force it to the correct state.
  • Any other user requested things I don't think of.

plexwink's People

Contributors

vanstinator avatar

Watchers

James Cloos avatar andrea lee 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.