themactep / thingino-firmware

Open-source firmware for Ingenic SoC IP cameras
https://thingino.com
MIT License
191 stars 55 forks source link

Enhancement Request : "Privacy" Mode #290

Open timkeefer1 opened 1 week ago

timkeefer1 commented 1 week ago

I have a Home Assistant automation that - when I am home - turns off a smart switch that powers one of my cameras. Frigate hates it - I get tons of watchdog, ffmpeg, and video ERROR message in my logs as it keeps retrying the camera. I'm wondering if a pseudo "privacy mode" could be created for Thingino that could return a blank black camera feed. Basically creating a software "shutter" for the camera?

tERB00 commented 1 week ago

Sure. You can use "logo" as a privacy mask. Create an image that fills all of your sensor's output resolution, place it at 0,0 coordinates and there you go. https://github.com/gtxaspec/prudynt-t/blob/master/prudynt.cfg.example

timkeefer1 commented 1 week ago

Sure. You can use "logo" as a privacy mask. Create an image that fills all of your sensor's output resolution, place it at 0,0 coordinates and there you go. https://github.com/gtxaspec/prudynt-t/blob/master/prudynt.cfg.example

That looks like it would work! Now I just need to be able to curl -> shell script to make the cfg changes and reload... is there API docs for prudynt?

tERB00 commented 1 week ago

There is no API but you can inspect what does your browser sending to the camera when you tick "Logo" checkbox on the OSD settings page. Should not be anything too special I reckon.