have a remote camera on unknown IP dial home and connect to server

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
evolotion
Posts: 46
Joined: Mon Aug 01, 2016 9:03 pm

have a remote camera on unknown IP dial home and connect to server

Post by evolotion »

Anyone think of a way to achieve this? have thought could subscribe camera to ddns service and set ZM to connect to it letting it just fault when camera cant be found. however feel there must be a more elegant solution.

ZM server has a good fast connection, static IP, and domain name registered to it so a camera that finds itself on the internet could find the server easy enough.

could have the camera(raspi so can mess about with it) update a text file on the server every 10 minutes with an IP address. and somehow have zoneminder check said file every 10 minutes, if updated in less than 10 minutes attempt to connect to camera, if over 10 minutes dont connect. (would save zm spamming the log file when no cameras present)

the idea is if I wish to add a camera ad-hoc anywhere with an internet it'll get picked up by zm, and recorded in a safe place :)
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: have a remote camera on unknown IP dial home and connect to server

Post by bbunge »

DDNS on the camera would be one way.
Another would be to have the camera FTP images to the Zoneminder server. Then, have Zoneminder check the directory that gets the images. Source type File. You would want the camera to send images with the same file name to overwrite what is there. You may not get blazing fast frame rate but it would work. You may want to consider using tmpfs as the repository for the received images as writing to RAM is faster than a disk.

bb
Post Reply