Giter VIP home page Giter VIP logo

plex-tp-link-kasa's Introduction

Plex-TP-Link-Kasa

Dim Kasa lights using Plex webhooks

Will dim lights on media playing and brighten lights when pausing or stopping

To use:

  1. Install modules using npm install
  2. Add http://localhost:44010/plex to your Plex webhooks
  3. Open settings.js and add your Kasa lights' name to DEVICE_NAME
  4. Run using npm start in console
  5. Play some media and watch your lights politely dim themselves for you

Note: To set a specific media player to listen to (ex. The TV located in the same room as the lights), play some media on it to get it's UUID in the console, then you can set that UUID in settings.js

plex-tp-link-kasa's People

Contributors

yayza avatar biancjo avatar

Stargazers

Jon Bianco avatar

Watchers

Jon Bianco avatar  avatar

Forkers

thamind

plex-tp-link-kasa's Issues

SyntaxError: Unexpected token '.'

pi@plexpi:~/node_modules/plex-kasa $ npm start

[email protected] start
nodemon server.js

[nodemon] 2.0.19
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node server.js
/home/pi/node_modules/plex-kasa/server.js:43
const data = JSON.parse(req.body?.payload);
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
[nodemon] app crashed - waiting for file changes before starting...

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.