philosowaffle / plex-lifx-webhook Goto Github PK
View Code? Open in Web Editor NEWA webhook for Plex that changes the color of your LIFX lights to match the main colors of the poster art being played.
A webhook for Plex that changes the color of your LIFX lights to match the main colors of the poster art being played.
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.
Currently when media is paused or stopped, the scene is set immediately. Use the duration property to fade in lights.
Is there any future plan to have this working on Python3 ?
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
Current bug exist in pifx which will be addressed by this pull request. Once it has been merged and published, adjust project to not use custom version currently installed in venv.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.