Giter Club home page Giter Club logo

plex-lifx-webhook's People

Contributors

philosowaffle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

plex-lifx-webhook's Issues

Issue with configuration

Hello, I'm not sure if this is still up to date or relevant, however I am getting the following issue.

Traceback (most recent call last):
File "plexlifx.py", line 126, in
default_pause_uuid = scenes[default_pause_theme]
KeyError: 'Warm'

I've tried different themes in the app and that I have found on the web but no success.

Not able to get the script to run properly

I can get the script to work when pausing the video but I can't figure out why I'm getting these errors. The script does not work when playing or resuming the video. I have installed Python 3.10 also all four libs installed, colorthief, flask, numpy and pifx==0.0.3. The plex-lifx-webhook-master config file has been configured.
This is the error I'm getting, any help would be really appreciated.

[2022-04-18 03:02:35,196] ERROR in app: Exception on / [POST]
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "C:\Program Files\Python310\Scripts\plex-lifx-webhook-master\plexlifx.py", line 266, in inbound_request
palette = color_thief.get_palette(color_count=num_colors, quality=color_quality)
File "C:\Program Files\Python310\lib\site-packages\colorthief.py", line 77, in get_palette
cmap = MMCQ.quantize(valid_pixels, color_count)
File "C:\Program Files\Python310\lib\site-packages\colorthief.py", line 218, in quantize
raise Exception('Wrong number of max colors when quantize.')
Exception: Wrong number of max colors when quantize.

[LOGGER]
LogFile: plex_lifx_webhook.log

[SERVER]
FlaskPort: 5000

[PLEX]
IgnorePlayerUUIDs: ""
LocalPlayersOnly: true

[LIFX]
APIKey: " "
Brightness: 0.1
Duration: 1.0
NumColors: 4
ColorQuality: 5
DefaultPlayTheme: Playback
DefaultPauseTheme: Pause
Lights: LEDS

Exception: Wrong number of max colors when quantize.

Hi there, I am trying to run the python script for plex-lifx integration. I have the script running, and can see events coming through from plex, though I get the following error:
Exception: Wrong number of max colors when quantize.

I dont really know what might be causing this. Wondering if you can help. Thanks!

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.