Camera configuration in scenes

Hello everyone,

I tested the scene configuration last weekend and found it easy to understand and use. Great job Pierre-Gilles!

My goal is to be able to send the last image from the camera at a given time and eventually to only receive the image when I’m not at home. I thought I could set this up using the calendar so that Gladys knows if I’m on vacation, for example. However, I can’t send the last image from the camera via Telegram. Is there a variable to insert in the body of the message sent by the scene that would contain the photo?

Thanks in advance for your help,

Mastho

Thanks! :slight_smile:

This is not yet possible, but it is a planned development!

https://github.com/GladysAssistant/Gladys/issues/826

Hello @Pierre-Gilles,
Is it planned to be able to save images taken at regular intervals to a cloud and then make a timelapse from them?
Additionally, is it possible to use the camera’s motion detectors to set up the shot, and then send it to this cloud or by email…?
And finally, will it be possible to connect and get the image from a USB webcam connected to a port of the Rpi in Gladys?
Thanks in advance for your answers.

What is the purpose? :slight_smile: To better understand your needs.

Which camera model are you using exactly?

I have never tested it but I think it is already possible! In Gladys, we use ffmpeg to read camera images, and apparently you can give ffmpeg a local PATH of a camera instead of a distant URL.

If your camera is available on the USB port /dev/video0 for example, you can put this PATH in Gladys instead of the URL, and it may work :slight_smile: (to be tested)

On vacation, this allows you to know what happened at home, to see the weather it was during the day.

It’s a D-Link_DCS-5222LB motorized, night vision, presence detector.

Indeed, /dev/video0 works, thanks :wink:
However, the stream is not secured by a password.

Ok, could you create a post on the forum in the Feature Requests category (it’s brand new!)

You create a post with a clear title, and everyone on the forum will be able to vote for this feature if it interests people :slight_smile:

This will help me prioritize developments!

Ok! And do you know which protocol the sensors of this camera communicate with? If we want to retrieve the data, the camera must be open on this :slight_smile:

Top! Could you document what you did to make it work? On the forum, or better on the documentation if you can. I’m sure you’re not the only one who wants to do that :slight_smile:

Normal, it’s direct in USB, when you plug a USB mouse into your computer do you need to enter a password for the mouse? :slight_smile:

Hi @pierre-gilles,
I found some documentation and information:
http://gurau-audibert.hd.free.fr/josdblog/wp-content/uploads/2013/09/URL-command-for-DCS-5220-DCS-2120_2007_06_06.pdf
http://gurau-audibert.hd.free.fr/josdblog/wp-content/uploads/2013/09/DCS-910920_CGI_v1-20.pdf

https://www.developpez.net/forums/d1424172/systemes/hardware/achat-conseils/peripheriques/camera-ip-commandes-url-api-dlink-dcs-932l/

So, as indicated, it is possible to make an HTTP request when movement is detected. Once we have the Open API with tokens in Gladys 4, you will be able to create a scene triggered by a movement from your camera :slight_smile: awesome

Hello :slight_smile:

Sorry to bump this message, but, like @gaetanb76, I would have liked to be able to natively use Gladys to react in a scene when motion is detected by a camera.

So:

  • Does the Gladys documentation explain how to proceed (I haven’t found it …)?
  • Is the API described by @pierre-gilles available today for consumption from MotionEyes?

Thanks :slight_smile:

Hi @jean_bruder :slight_smile:

Which camera model do you have?

I think we can open a new thread for your specific case!

Good evening @pierre-gilles :slight_smile:

Each camera has particular specificities so that’s relevant :slight_smile:

Watch out for « NO NAME » models — RTSP implementations are often very approximate and I have plenty of examples of users who got mysterious bugs due to very partial implementations of these protocols ^^

I don’t know if you know Frigate?

It’s a tool that lets you do object/human detection on cameras, and then publish an MQTT message in case of detection.

So it’s compatible with Gladys :slight_smile:

The only constraint is that you need to use a

Hello @pierre-gilles,

I had tested Frigate, but didn’t keep it, because it was too « overkill » (TPU, all that…) for my needs, and replaced it with MotionEyes, which I’m currently using at home (for 4 No-NAME cameras accessed via ONVIF), without however delivering the same result, since it doesn’t use object recognition, but just significant changes in zones (which is

Ok, I looked for some documentation on MotionEye to help you, but I can’t find anything at all… I thought we understood that you could run a script with MotionEye, and in that case it’s quite simple — in the script you just need to publish a message to MQTT to trigger Gladys