Picture Glance Card: camera_image with custom update interval #11281
-
The requestDo not hardcode the Currently "Picture Glance Card" has two modes to display the camera feed: using a static image or a live feed. With a live feed you get a video stream of your camera, but the downside is that it's very resource intensive (it's a real video). The other option is a static image. However the problem here is that the update interval is hardcoded to be 10 seconds, and for a camera feed a delay of 10 seconds might be too slow. The alternativesApart from switching to the live stream mode (too bandwidth and CPU intensive for my use case) I'm not aware of any other alternatives. Also apparently there aren't any custom component that can be used as a workaround Additional informationThis is a rewrite of the previous issue #6040 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
This was PR'd here and turned down. I don't think this card will be any different |
Beta Was this translation helpful? Give feedback.
-
Thanks for linking #5466, I wasn't aware that a PR have been already made. It's unfortunate that it was rejected though. |
Beta Was this translation helpful? Give feedback.
-
I agree. There's nothing wrong with having it default to 10s but the idea that someone would set that low enough that it slows down their system without them knowing that's why, seems pretty thin. Anyone looking to set a higher refresh rate would almost certainly check out the new refresh rate immediately after changing it, and would notice sluggish performance. |
Beta Was this translation helpful? Give feedback.
-
There is another related picture card behavior that needs to be addressed before this can be a quality enhancement. After a view with picture cards is opened, each picture card is updated every update interval (10 seconds). The picture cards are not updated in the background when navigating off the view's tab... So far so good... however when switching back to the view with picture cards, the images are stale and will not be updated until a full update interval has elapsed. Not good, regardless of the update interval setting. Picture glance card images should refresh when coming into view if the update interval has elapsed while the card was running in the background. For example, a 5 minute update interval may promote UI stability and be adequate for a persistent object surveillance use case, but a wait of 5 minutes to view updated images after switching tabs to check for objects on demand would not be functional. In this scenario, unless the tab stays in view for at least 5 minutes, the card images will remain stale |
Beta Was this translation helpful? Give feedback.
There is another related picture card behavior that needs to be addressed before this can be a quality enhancement.
After a view with picture cards is opened, each picture card is updated every update interval (10 seconds). The picture cards are not updated in the background when navigating off the view's tab... So far so good... however when switching back to the view with picture cards, the images are stale and will not be updated until a full update interval has elapsed. Not good, regardless of the update interval setting.
Picture glance card images should refresh when coming into view if the update interval has elapsed while the card was running in the background.
For example, a 5 min…