ad-media-lights-sync icon indicating copy to clipboard operation
ad-media-lights-sync copied to clipboard

[Feature Request] adding camera entity to geet pictures

Open thundergreen opened this issue 3 years ago • 2 comments

Hello,

I have Hyperion running for my ambilight. This platform adds a camera with the actual picture processed by ambilight. This updates the picture much faster than the 10 seconds of media player. Would it be possible to use camera iso media_player?

Seems working but possible to decrease the intervall to scan?

Problem with cam is that the url does not change. Media_player seems changing the url?

Maybe it would be nice having a way to pull / update the pic to proceed every x seconds?

thundergreen avatar Mar 10 '22 12:03 thundergreen

Hi @thundergreen,

Like you said: The app listen for url changes in order to update the lights.

For a camera to work with it, it would need an interval scan, and that would be a completely different approach, but yes, it could be possible.

We could add two new fields in the configuration file like so:

cameras:
  - camera_one
camera_scan_interval: 3 # in seconds

While I currently don't have a use case for that, I would be open to a pull request if you want.

ericmatte avatar Aug 25 '22 17:08 ericmatte

Hello well I dont know how to change the code .would like to test this indeed if ,ou would add this

What do you think ?

Eric Matte @.***> schrieb am Do., 25. Aug. 2022, 19:44:

Hi @thundergreen https://github.com/thundergreen,

Like you said: The app listen for url changes in order to update the lights.

For a camera to work with it, it would need an interval scan, and that would be a completely different approach, but yes, it could be possible.

We could add two new fields in the configuration file like so:

cameras:

  • camera_onecamera_scan_interval: 3 # in seconds

While I currently don't have a use case for that, I would be open to a pull request if you want.

— Reply to this email directly, view it on GitHub https://github.com/ericmatte/ad-media-lights-sync/issues/51#issuecomment-1227580182, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFUA77LNJ6QMG3JHEHPIULV26WHXANCNFSM5QMPAA6A . You are receiving this because you were mentioned.Message ID: @.***>

thundergreen avatar Aug 25 '22 18:08 thundergreen

Closing due to inactivy, and as I don't plan to write this feature in the near future. Feel free to reopen if needed.

ericmatte avatar Nov 26 '22 02:11 ericmatte