You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JSON API to get a screenshot and/or current dominant color. #602
Hi
How often do you plan to execute it? I'm afraid this is the perfect backdoor to kill HyperHDR/RPi with overload as such a potential command is not guarded and averaging over the whole image (or returning the image as a string/base64 encoded in the JSON result) is very time consuming? Alternatively, the average color of the LEDs for the selected instance?
I want to execute this just on certain media_player state changes (Ex: to playing, to pause and track changed) using the built in home assistant color quantizer.
Also like the idea of get the average color of leds for a specific instance instance. It should works well and it is cheaper for the cpu cause i may create a instance with just a few leds to make the math easier.
Activity
awawa-dev commentedon Jul 18, 2023
Hi
How often do you plan to execute it? I'm afraid this is the perfect backdoor to kill HyperHDR/RPi with overload as such a potential command is not guarded and averaging over the whole image (or returning the image as a string/base64 encoded in the JSON result) is very time consuming? Alternatively, the average color of the LEDs for the selected instance?
Cheerpipe commentedon Jul 18, 2023
Hi Awawa, thanks for your fast response.
I want to execute this just on certain media_player state changes (Ex: to playing, to pause and track changed) using the built in home assistant color quantizer.
Also like the idea of get the average color of leds for a specific instance instance. It should works well and it is cheaper for the cpu cause i may create a instance with just a few leds to make the math easier.
awawa-dev commentedon Jul 23, 2023
Implemented in #611