When asking Gladys to display the stream from a camera, you need to call it by the « room name » where it is located. The problem is that when you have multiple cameras in the same room, Gladys only sends the stream from one camera and always the same one. Therefore, it would be preferable to call this stream by the « camera name » to avoid any ambiguity, and the cherry on top would be to obtain all the streams from the cameras located in the same room when you ask Gladys to show you the cameras in that room. This would allow you to retrieve images from the cameras and send them via Telegram, for use as an alarm (for example, displaying the room in case of intrusion). Gladys would need to refresh the camera before sending it to have an image at time T.
@Psoy : I just ran some tests by adding the camera « selection » system by name via the Gladys chat
I managed to make it so that :
it displays the image when called by name,
it displays all the images when called by the room.
For now, it only sends the image that was stored; I need to do more tests to send the « live » image.
And I couldn’t test with Telegram because my test instance doesn’t have that integration.
I’m building a docker image « delogzway/gladys:chat_display_camera_by_name » (it will be built in about 1h).
Feel free to give me feedback.
Good evening @Lokkye
It doesn’t work for me:
I have, for the test, 2 cameras, one is called camgarage and the other camjardin. I put them in the same room: the living room.
1st request :
I’ve just made some fixes. And I’ve just built a new Docker image (don’t forget to docker pull delogzway/gladys:chat_display_camera_by_name).
I used your configuration again to make sure it works.
Hello @Lokkye
Thank you, but I’m currently traveling and won’t be able to test for a few days. As soon as I’m back, I’ll do a docker pull image and retest everything, thanks again
Hello, @Lokkye
I’m back, I’ve just tested the cameras and they work great — when I call a camera by its name it displays correctly in Telegram, and when I call the room, Telegram shows me all the cameras in that room.
Great work, thank you once again for all the improvements you bring us