telegramopenwrt icon indicating copy to clipboard operation
telegramopenwrt copied to clipboard

IP-Cameras support

Open BesPav opened this issue 2 years ago • 4 comments

Hello, Alex!

I have found your bot very useful to provide multiple user access to surveillance camera in the hall of the our house. Unfortunately i can't properly set its configuration. Please, be kind to provide a little bit detailed guide!

Is your feature request related to a problem? Please describe. I'm searching for as simple as possible way to provide multi-user access to surveillance ip-camera on demand and/or motion detection. Telegram provide the best possible user experience and offsite video caching in case of emergency.

Describe the solution you'd like This bot can be brilliantly shine solution to surveillance world. Lightweight, simple and user-friendly.

Describe alternatives you've considered Standalone software from Dahua, Omny, Synology, QNAP and etc.

Additional context Using such a bot each can install just an openwrt router with cheap 3G modem and ip-camera to easily surveillance needed remoted space.

BesPav avatar Jun 11 '22 11:06 BesPav

Hi @BesPav

What kind of camera do you use ?

I dont know your knowledge about programming, but if you read the file usr/lib/telegramopenwrt/plugins/cam_movie you will get the details to understand how "camera plugin" works. My camera is a "jpeg" type, so i readed the documentation about the camera, and developed the "script/plugin" that get the movie.

If you provide your camera model and manufactor, maybe i can found the documentation and develop a plugin to your camera.

alexwbaule avatar Jul 13 '22 22:07 alexwbaule

Hi, Alex! First of all - thank you for answering and for your help.

I have a differant cameras in my home and garage equipment, the models are following: LTV CNE-922 48 https://ltv-cctv.ru/links-page/ip-videokamery/ltv-cne-922-48/

OMNY minibullet5EZ-WDU 2880 https://shop.nag.ru/catalog/16713.ip-videonablyudenie/40177.ip-videokamery/40887.omny-minibullet5ez-wdu-2880

I supose both are local brands while cameras itself are some huge OEM manufacturer.

My skills in bash are limited, but i really impressed how easy and lightweight can be access to camera image. So i really want to implement such a way based on just a router.

BesPav avatar Aug 04 '22 10:08 BesPav

Hi, Alex! I found the right settings in the more modern of the cameras and corrected your code accordingly.

Снимок экрана 2022-08-18 в 16 17 55

Great Thanks for such a simple and elegant solution.

My other system uses Synology NAS + SynoAI and Deepstack in Docker -> upload recognized images to Telegram. But this is a much more expensive solution than just an OpenWRT Router.

BesPav avatar Aug 18 '22 13:08 BesPav

hi @BesPav

sorry by the delay.

You can open a Pull Request, adding this camera as a plugin, doing it in bash script.

Check the plugins/cam_* files to get an example how to do.

alexwbaule avatar Sep 05 '22 11:09 alexwbaule