Custom overlay for Dahua cameras #16252
Replies: 2 comments 4 replies
-
Moving this to the Show and Tell category. Nice work! |
Beta Was this translation helpful? Give feedback.
-
Really interesting, quite a few use cases I can think of based on your inspiration! Perhaps this is a possible feature request for Frigate itself to show an overlay in the WebUI (as opposed to adding on to the stream which presumably requires re-encoding). With HTTP and MQTT APIs to set the text, location, styling. That way it would be camera independent, lightweight, and customisable within the bounds of HTML/CSS. And it could potentially have direct access to Frigate variables. What do you think @hawkeye217 - open to a PR for something like that? I would probably just do it via MQTT and the sender would need to set retain on messages to ensure it persisted across Frigate restarts. Probably wouldn't get too clever with styling either. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I just spent a good few hours getting this working, so I thought I would post up as it's something I've wanted to do for a while.
Using the API you can overlay any value from Home Assistant onto your Dahua camera. I'm overlaying temp and RH. It's very simple once I worked it out, but there is a lot of trial and error involved with the Dahua API.
I'm using a shell command. You can't have spaces in the string you're trying to overlay otherwise it won't work. The vertical bar is a line break. I made sensor templates to add the °C and % symbols, then I have an automation to run the shell command when the temp or RH changes. It's working on my 2 Dahua cameras.
Beta Was this translation helpful? Give feedback.
All reactions