Skip to content

IMPORTANT:Customizing the scripts for your cameras

arjunroychowdhury edited this page Mar 6, 2015 · 3 revisions

Modifying arc_zm_foscamHDmotion.pl

You MUST modify this script so it can talk to your cameras!!!!

Around line 49-76, you will find the data for where arc_zm_trigger.pl is running and your cameras. Please edit them to suit your configuration. You can add as many cameras as needed to the array.

$zm_trigger_ip = '192.168.1.13'; #change this to the IP where ZM is running 
$zm_trigger_port = 6802; # this is the default zm_trigger port
$loop_dur = 2;

@monitors = (
        {       
                name=>'Family Room',            #descriptive name of your monitor. Only used for logging 
                id=>6,                          # zoneminder monitor id        
                ip=>'192.168.1.129',            # IP of this camera
                port=>9990,                    # port of this camera
                user=>'xxxx',                # username auth
                password=>'xxxx',            # password auth
                state=>'off',                   # don't mess with this
                sleep=>3,                       # don't mess with this
                lasttime=>-1,                   # dont mess with this
        },      
        {       
                name=>'Basement',
                id=>4,  
                ip=>'192.168.1.125',
                port=>9991,
                user=>'xxxx',
                password=>'xxxx',
                state=>'off',
                sleep=>3,
                lasttime=>-1,
        },      
);