.\" Man page generated from reStructuredText. . .TH "ZONEMINDER" "1" "Sep 24, 2022" "" "ZoneMinder" .SH NAME zoneminder \- ZoneMinder Documentation . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH USER GUIDE .SS Introduction .sp Welcome to ZoneMinder, the all\-in\-one security camera solution for Linux with GPL License. .sp Commercial "security systems" are often designed as a monitoring system with little attention to recording quality. In such a system, locating and exporting relevant video can be challenging and often requires extensive human intervention. ZoneMinder was designed to provide the best possible record quality while allowing easy searching, filtering and exporting of security footage. .sp ZoneMinder is designed around a series of independent components that only function when necessary, limiting any wasted resource and maximising the efficiency of your machine. An outdated Pentium II PC can have multiple recording devices connected to it, and it is able to track one camera per device at up to 25 frames per second, which drops by approximately half for each additional camera on the same device. Additional cameras on devices that do not interact with other devices can maintain the 25 frame rate per second. Monitoring several cameras will not overload the CPU as frame processing is designed to synchronise with capture. .sp A fast video interface core, a user\-friendly and comprehensive PHP based web interface allows ZoneMinder to be efficient, friendly and most importantly useful. You can control and monitor your cameras from home, at work, on the road, or a web\-enabled cell phone. It supports variable web capabilities based on available bandwidth. The web interface also allows you to view events that your cameras have captured, which can be archived, reviewed or deleted. The web application directly interacts with the core daemons ensuring full co\-operation at all times. ZoneMinder can also be installed as a system service to reboot a system remotely. .sp The core of ZoneMinder is the capture and analysis of images and a highly configurable set of parameters that eliminate false positives whilst ensuring minimum loss of footage. For example, you can define a set of \(aqzones\(aq for each camera of varying sensitivity and functionality. This eliminates zones that you don\(aqt wish to track or define areas that will alarm if various thresholds are exceeded in conjunction with other zones. .sp ZoneMinder is free under GPL License, but if you do find it useful, then please feel free to visit \fI\%https://zoneminder.com/donate/\fP and help us fund our future improvements. .SS Components .sp ZoneMinder is not a single monolithic application but is formed from several components. These components primarily include executable compiled binaries which do the main video processing work, perl scripts which usually perform helper and/or external interface tasks and php web scripts which are used for the web interface. .SS System Overview .sp Depicted below is a high level diagram of the ZoneMinder system with key components [image] .sp A brief description of each of the principle components follows. .SS Binaries .INDENT 0.0 .TP \fBzmc\fP This is the ZoneMinder Capture daemon. This binary\(aqs job is to sit on a video device and suck frames off it as fast as possible, this should run at more or less constant speed. .TP \fBzma\fP This is the ZoneMinder Analysis daemon. This is the component that goes through the captured frames and checks them for motion which might generate an alarm or event. It generally keeps up with the Capture daemon but if very busy may skip some frames to prevent it falling behind. .TP \fBzms\fP This is the ZoneMinder Streaming server. The web interface connects with this to get real\-time or historical streamed images. It runs only when a live monitor stream or event stream is actually being viewed and dies when the event finishes or the associate web page is closed. If you find you have several zms processes running when nothing is being viewed then it is likely you need a patch for apache (see the Troubleshooting section). A non\-parsed header version of zms, called nph\-zms, is also installed and may be used instead depending on your web server configuration. .TP \fBzmu\fP This is the ZoneMinder Utility. It\(aqs basically a handy command line interface to several useful functions. It’s not really meant to be used by anyone except the web page (there\(aqs only limited \(aqhelp\(aq in it so far) but can be if necessary, especially for debugging video problems. .UNINDENT .SS PHP .sp As well as this there are the web PHP files in the web directory. Currently these consist of a single skin with Classic and Flat styles. .INDENT 0.0 .TP \fBClassic\fP Original ZoneMinder skin .TP \fBFlat\fP An updated version of Classic skin, retaining the same layout with a more modern style. Originally a skin this is now just a CSS style. .UNINDENT .SS Perl .sp Finally some perl scripts in the scripts directory. These scripts all have some configuration at the top of the files which should be viewed and amended if necessary and are as follows. .INDENT 0.0 .TP \fBzmpkg.pl\fP This is the ZoneMinder Package Control script. This is used by the web interface and service scripts to control the execution of the system as a whole. .TP \fBzmdc.pl\fP This is the ZoneMinder Daemon Control script. This is used by the web interface and the zmpkg.pl script to control and maintain the execution of the capture and analysis daemons, amongst others. You should not need to run this script yourself, although you can use it to start/top individual ZM processes. .TP \fBzmfilter.pl\fP This script controls the execution of saved filters and will be started and stopped by the web interface based on whether there are filters that have been defined to be autonomous(background). This script is also responsible for the automatic uploading of events to a 3rd party server. Prior to 1.32 there was one zmfilter.pl process. In 1.32 onwards we start a zmfilter.pl process for each background filter so that the processing time of one filter doesn\(aqt delay the processing of another filter. .TP \fBzmaudit.pl\fP This script is used to check the consistency of the event file system and database. It can delete orphaned events, i.e. ones that appear in one location and not the other as well as checking that all the various event related tables are in line. It can be run interactively or in batch mode either from the command line or a cron job or similar. In the zmconfig.pl there is an option to specify fast event deletes where the web interface only deletes the event entry from the database itself. If this is set then it is this script that tidies up the rest. We do not recommend fast event deletion and we do not recommend having zmaudit.pl run in the background. It is a very ram cpu and disk io intensive program, constantly scanning every event. Please run it manually or from a cron job on weekends or something. .TP \fBzmwatch.pl\fP This is a simple script purely designed to keep an eye on the capture daemons and restart them if they lockup. It has been known for sync problems in the video drivers to cause this so this script makes sure that nothing important gets missed. .TP \fBzmupdate.pl\fP Currently this script is responsible for checking whether a new version of ZoneMinder is available and other miscellaneous actions related to upgrades and migrations. It is also intended to be a ‘one stop shop’ for any upgrades and will execute everything necessary to update your installation to a new version. .TP \fBzmvideo.pl\fP This script is used from the web interface to generate video files in various formats in a common way. You can also use it from the command line in certain circumstances but this is not usually necessary. .TP \fBzmx10.pl\fP This is an optional script that can be used to initiate and monitor X10 Home Automation style events and interface with an alarm system either by the generation of X10 signals on ZoneMinder events or by initiating ZoneMinder monitoring and capture on receipt of X10 signals from elsewhere, for instance the triggering of an X10 PIR. For example I have several cameras that don’t do motion detection until I arm my alarm system whereupon they switch to active mode when an X10 signal is generated by the alarm system and received by ZoneMinder. .TP \fBzmtrigger.pl\fP This is an optional script that is a more generic solution to external triggering of alarms. It can handle external connections via either internet socket, unix socket or file/device interfaces. You can either use it ‘as is’ if you can interface with the existing format, or override connections and channels to customise it to your needs. The format of triggers used by zmtrigger.pl is as follows "|||||" where .INDENT 7.0 .IP \(bu 2 \(aqid\(aq is the id number or name of the ZM monitor. .IP \(bu 2 \(aqaction\(aq is \(aqon\(aq, \(aqoff\(aq, \(aqcancel\(aq or ‘show’ where \(aqon\(aq forces an alarm condition on, \(aqoff\(aq forces an alarm condition off and \(aqcancel\(aq negates the previous \(aqon\(aq or \(aqoff\(aq. The ‘show’ action merely updates some auxiliary text which can optionally be displayed in the images captured by the monitor. Ordinarily you would use \(aqon\(aq and \(aqcancel\(aq, \(aqoff\(aq would tend to be used to suppress motion based events. Additionally \(aqon\(aq and \(aqoff\(aq can take an additional time offset, e.g. on+20 which automatically \(aqcancel\(aqs the previous action after that number of seconds. .IP \(bu 2 \(aqscore\(aq is the score given to the alarm, usually to indicate it\(aqs importance. For \(aqon\(aq triggers it should be non\-zero, otherwise it should be zero. .IP \(bu 2 \(aqcause\(aq is a 32 char max string indicating the reason for, or source of the alarm e.g. \(aqRelay 1 open\(aq. This is saved in the ‘Cause’ field of the event. Ignored for \(aqoff\(aq or \(aqcancel\(aq messages. .IP \(bu 2 \(aqtext\(aq is a 256 char max additional info field, which is saved in the ‘Description’ field of an event. Ignored for \(aqoff\(aq or \(aqcancel\(aq messages. .IP \(bu 2 \(aqshowtext\(aq is up to 32 characters of text that can be displayed in the timestamp that is added to images. The ‘show’ action is designed to update this text without affecting alarms but the text is updated, if present, for any of the actions. This is designed to allow external input to appear on the images captured, for instance temperature or personnel identity etc. .UNINDENT .sp Note that multiple messages can be sent at once and should be LF or CRLF delimited. This script is not necessarily intended to be a solution in itself, but is intended to be used as ‘glue’ to help ZoneMinder interface with other systems. It will almost certainly require some customisation before you can make any use of it. If all you want to do is generate alarms from external sources then using the ZoneMinder::SharedMem perl module is likely to be easier. .TP \fBzmcamtool.pl\fP This optional script is new for the upcoming 1.27 release of ZoneMinder. It is intended to make it easy to do the following: bring in new ptz controls and camera presets, convert existing monitors into presets, and export custom ptz controls and presets. For the initial release, this script is not integrated into the UI and must be called from the command line. Type \(aq\(aqzmcamtool.pl \-\-help\(aq\(aq from the command line to get an explanation of the different arguments one can pass to the script. .TP \fBzmcontrol\-*.pl\fP These are a set of example scripts which can be used to control Pan/Tilt/Zoom class cameras. Each script converts a set of standard parameters used for camera control into the actual protocol commands sent to the camera. If you are using a camera control protocol that is not in the shipped list then you will have to create a similar script though it can be created entirely separately from ZoneMinder and does not need to named as these scripts are. Although the scripts are used to action commands originated from the web interface they can also be used directly or from other programs or scripts, for instance to implement periodic scanning to different presets. .TP \fBzmtrack.pl\fP This script is used to manage the experimental motion tracking feature. It is responsible for detecting that an alarm is taking place and moving the camera to point to the alarmed location, and then subsequently returning it to a defined standby location. As well as moving the camera it also controls when motion detection is suspended and restored so that the action of the camera tracking does not trigger endless further alarms which are not justified. .TP \fBzm\fP This is the (optional) ZoneMinder init script, see below for details. .TP \fBzmeventnotification.pl\fP This is an optional 3rd party real time event notification server that also provides push notifications for zmNinja as well as machine learning powered object/face\-detection. Please see \fI\%Event Notification Server Documentation\fP for more details (Note that the machine learning components are optional, and are developed in Python3) .UNINDENT .sp Finally, there are also a number of ZoneMinder perl modules included. These are used by the scripts above, but can also be used by your own or 3rd party scripts. Full documentation for most modules is available in ‘pod’ form via ‘perldoc’ but the general purpose of each module is as follows. .INDENT 0.0 .TP \fBZoneMinder.pm\fP This is a general ZoneMinder container module. It includes the Base.pm, Config.pm Debug.pm, Database.pm, and SharedMem.pm modules described below. It also exports all of their symbols by default. If you use the other modules directly you have request which symbol tags to import. .TP \fBZoneMinder/Base.pm\fP This is the base ZoneMinder perl module. It contains only simple data such as version information. It is included by all other ZoneMinder perl modules .TP \fBZoneMinder/Config.pm\fP This module imports the ZoneMinder configuration from the database. .TP \fBZoneMinder/Debug.pm\fP This module contains the defined Debug and Error functions etc, that are used by scripts to produce diagnostic information in a standard format. .TP \fBZoneMinder/Database.pm\fP This module contains database access definitions and functions. Currently not a lot is in this module but it is included as a placeholder for future development. .TP \fBZoneMinder/Event.pm\fP This module contains functions to load, manipulate, delete, copy, move events. .TP \fBZoneMinder/Filter.pm\fP This module contains functions to load, execute etc filters. .TP \fBZoneMinder/SharedMem.pm\fP This module contains standard shared memory access functions. These can be used to access the current state of monitors etc as well as issuing commands to the monitors to switch things on and off. This module effectively provides a ZoneMinder API. .TP \fBZoneMinder/ConfigAdmin.pm\fP This module is a specialised module that contains the definition, and other information, about the various configuration options. It is not intended for use by 3rd parties. .TP \fBZoneMinder/Control/*.pm\fP These modules contain implementations of the various PTZ protocols. .TP \fBZoneMinder/Trigger/*.pm\fP These modules contain definitions of trigger channels and connections used by the zmtrigger.pl script. Although they can be used ‘as is’, they are really intended as examples that can be customised or specialised for different interfaces. Contributed modules for new channels or connections will be welcomed and included in future versions of ZoneMinder. .UNINDENT .SS Getting Started .sp After installation of Zoneminder you should now be able to load the ZoneMinder web frontend. By default this will be with the Classic skin, below is an example of the page you should now see. [image] .SS Setting Timezone .sp Previous versions of ZoneMinder required the user to set up Timezone correctly in \fBphp.ini\fP\&. This is no longer the case. Starting 1.34, ZoneMinder allows you to specify the TimeZone in the UI. Please make sure it is set up correctly. The Timezone can be changed by selecting \fBOptions\->System\->Timezone\fP [image] .SS Enabling Authentication .sp We strongly recommend enabling authentication right away. There are some situations where certain users don\(aqt enable authentication, such as instances where the server is in a LAN not directly exposed to the Internet, and is only accessible via VPN etc., but in most cases, authentication should be enabled. So let\(aqs do that right away. .INDENT 0.0 .IP \(bu 2 Click on the Options link on the top bar of the web interface .IP \(bu 2 You will now be presented with a sidebar full of options. Click on the "System" link .UNINDENT [image] .INDENT 0.0 .IP \(bu 2 The relevant portions to change are marked in red above .IP \(bu 2 Enable OPT_USE_AUTH \- this automatically switches to authentication mode with a default user (more on that later) .IP \(bu 2 Select a random string for AUTH_HASH_SECRET \- this is used to make the authentication logic more secure, so please generate your own string and make sure it is sufficiently randomized and long. Note that if you plan to use APIs with ZoneMinder (needed by zmNinja/other apps), it is mandatory that you have this field populated .IP \(bu 2 The other options highlighed above should already be set, but if not, please make sure they are .IP \(bu 2 Note that if you are planning to use zmNinja and plan to use ZM authentication, you must also: .INDENT 2.0 .IP \(bu 2 set \fBAUTH_RELAY\fP to hashed .IP \(bu 2 Enable \fBAUTH_HASH_LOGINS\fP .UNINDENT .IP \(bu 2 Click on Save at the bottom and that\(aqs it! The next time you refresh that page, you will now be presented with a login screen. Job well done! .UNINDENT [image] .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 The default login/password is "admin/admin" .UNINDENT .UNINDENT .SS Understanding the Web Console .sp Before we proceed, lets spend a few minutes understanding the key functions of the web console. For the sake of illustration, we are going to use a populated zoneminder configuration with several monitors and events. [image] .sp This screen is called the "console" screen in ZoneMinder and shows a summary of your monitors, associated events and more information. .INDENT 0.0 .IP \(bu 2 \fBA\fP: The options menu lets you configure many aspects of ZoneMinder. Refer to options\&. .IP \(bu 2 \fBB\fP: This brings up a color coded log window that shows various system and component level logs. This window is useful if you are trying to diagnose issues. Refer to logging\&. .IP \(bu 2 \fBC\fP: ZoneMinder allows you to group monitors for logical separation. This option lets you create new groups, associate monitors to them and edit/delete existing groups. .IP \(bu 2 \fBD\fP: Filters are a powerful mechanism to perform actions when certain conditions are met. ZoneMinder comes with some preset filters that keep a tab of disk space and others. Many users create their own filters for more advanced actions like sending emails when certain events occur and more. Refer to filterevents\&. .IP \(bu 2 \fBE\fP: The Cycle option allows you to rotate between live views of each configured monitor. .IP \(bu 2 \fBF\fP: The Montage option shows a collage of your monitors. You can customize them including moving them around. .IP \(bu 2 \fBG\fP: Montage Review allows you to simultaneously view past events for different monitors. Note that this is a very resource intensive page and its performance will vary based on your system capabilities. .IP \(bu 2 \fBH\fP: Audit Events Report is more of a power user feature. This option looks for recording gaps in events and recording issues in mp4 files. .IP \(bu 2 \fBI\fP: This is the user you are currently logged in as. .IP \(bu 2 \fBJ\fP: ZoneMinder allows you to maintain "run states". If you click on the "Running" text, ZoneMinder brings up a popup that allows you to define additional "states" (referred to as runstates). A runstate is essentially a snapshot that records the state of each monitor and you can switch between states easily. For example, you might have a run state defined that switches all monitors to "monitor" mode in which they are not recording anything while another state that sets some of the monitors to "modect". Why would you want this? A great example is to disable recording when you are at home and enable when you are away, based on time of day or other triggers. You can switch states by selecting an appropriate state manually, or do it automatically via cron jobs, for example. An example of using cron to automatically switch is provided in the FAQ\&. More esoteric examples of switching run states based on phone location can be found \fI\%here\fP\&. .UNINDENT .sp Here is an example of multiple run states that I\(aqve defined. Each one of these runstates changes the mode of specific monitors depending on time of day and other conditions. Use your imagination to decide which conditions require state changes. [image] .INDENT 0.0 .IP \(bu 2 \fBK\fP: This line shows you system health information .IP \(bu 2 \fBL\fP: This defines how Zoneminder will record events. There are various modes. In brief Modect == record if a motion is detected,Record = always record 24x7, Mocord = always record PLUS detect motion, Monitor = just provide a live view but don\(aqt record anytime, Nodect = Don\(aqt record till an external entity via zmtrigger tells Zoneminder to (this is advanced usage). .IP \(bu 2 \fBM\fP: This is the "source" column that tells you the type of the camera \- if its an IP camera, a USB camera or more. In this example, they are all IP cameras. Green means the monitor is running. Red means there is something wrong with that camera. .IP \(bu 2 \fBN\fP: This is the core of ZoneMinder \- recording events. It gives you a count of how many events were recorded over the hour, day, week, month. .IP \(bu 2 \fBO\fP: These are the "Zones". Zones are areas within the camera that you mark as \(aqhotspots\(aq for motion detection. Simply put, when you first configure your monitors (cameras), by default Zoneminder uses the entire field of view of the camera to detect motion. You may not want this. You may want to create "zones" specifically for detecting motion and ignore others. For example, lets consider a room with a fan that spins. You surely don\(aqt want to consider the fan moving continuously a reason for triggering a record? Probably not \- in that case, you\(aqd leave the fan out while making your zones. .IP \(bu 2 \fBP\fP: This is a "visual filter" which lets you \(aqfilter\(aq the console display based on text you enter. While this may not be particularly useful for small systems, ZoneMinder is also used in mega\-installations will well over 200+ cameras and this visual filter helps reduce the monitors you are seeing at one time. .UNINDENT .SS Adding Monitors .sp Now that we have a basic understanding of the web console, lets go about adding a new camera (monitor). For this example, lets assume we have an IP camera that streams RTSP at LAN IP address 192.168.1.33. .SS Note .sp This is meant to be a simple example. For a more detailed explanation of other options available when creating a monitor, please see /userguide/definemonitor .sp The first thing we will need to know is how to access that camera\(aqs video feed. You will need to consult your camera\(aqs manual or check their forum. Zoneminder community users also have a frequently updated list right \fI\%here\fP that lists information about many cameras. If you don\(aqt find your list there and can\(aqt seem to find it elsewhere, feel free to register and ask in the \fI\%user forums\fP\&. .sp The camera we are using as an example here is a Foscam 9831W which is a 1280x960 RTSP camera, and the URL to access it\(aqs feed is \fIusername:password@IPADDRESS:PORT/videoMain\fP .sp Let\(aqs get started: .sp Click on the "Add" button below: [image] .sp This brings up the new monitor window: [image] .INDENT 0.0 .IP \(bu 2 We\(aqve given it a name of \(aqGarage\(aq, because, well, its better than Monitor\-1 and this is my Garage camera. .IP \(bu 2 There are various source types. As a brief introduction you\(aqd want to use \(aqLocal\(aq if your camera is physically attached to your ZM server (like a USB camera, for example), and one of \(aqRemote\(aq, \(aqFFMpeg\(aq, \(aqLibvlc\(aq or \(aqcURL\(aq for a remote camera (not necessarily, but usually). For this example, let\(aqs go with \(aqFFMpeg\(aq. .UNINDENT .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 As a thumb rule, if you have a camera accessible via IP and it does HTTP or RTSP, start with FFMpeg first and libvlc if it doesn\(aqt work (/userguide/definemonitor covers other modes in more details). If you are wondering what \(aqFile\(aq does, well, ZoneMinder was built with compatibility in mind. Take a look at \fI\%this post\fP to see how file can be used for leisure reading. .UNINDENT .UNINDENT .INDENT 0.0 .IP \(bu 2 In this example, the Function is \(aqModect\(aq, which means it will start recording if motion is detected on that camera feed. The parameters for what constitutes motion detected is specific in definezone .IP \(bu 2 In Analysis FPS, we\(aqve put in 5FPS here. Note that you should not put an FPS that is greater than the camera FPS. In my case, 5FPS is sufficient for my needs .UNINDENT .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 Leave Maximum FPS and Alarm Maximum FPS \fBempty\fP if you are configuring an IP camera. In older versions of ZoneMinder, you were encouraged to put a value here, but that is no longer recommended. Infact, if you see your feed going much slower than the feed is supposed to go, or you get a lot of buffering/display issues, make sure this is empty. If you need to control camera FPS, please do it directly on the camera (via its own web interface, for example) .UNINDENT .UNINDENT .INDENT 0.0 .IP \(bu 2 We are done for the General tab. Let\(aqs move to the next tab .UNINDENT [image] .INDENT 0.0 .IP \(bu 2 Let\(aqs select a protocol of RTSP and a remote method of RTP/RTSP (this is an RTSP camera) .IP \(bu 2 Note that starting ZM 1.34, GPUs are supported. In my case, I have an NVIDIA GeForce GTX1050i. These \fBcuda\fP and \fBcuvid\fP parameters are what my system supports to use the NVIDIA hardware decoder and GPU resources. If you don\(aqt have a GPU, or don\(aqt know how to configure your ffmpeg to support it, leave it empty for now. In future, we will add a section on how to set up a GPU .UNINDENT .sp \fBNOTE\fP: It is entirely possible that \fBcuda\fP and \fBcuvid\fP don\(aqt work for you and you need different values. Isaac uses \fBcuda\fP in \fBDecoderHWAccelName\fP and leaves \fBDecoderHWAccelDevice\fP empty. Try that too. .INDENT 0.0 .INDENT 3.5 .SS Todo .sp add GPU docs .UNINDENT .UNINDENT .sp That\(aqs pretty much it. Click on Save. We are not going to explore the other tabs in this simple guide. .sp You now have a configured monitor: [image] .sp And then, finally, to see if everything works, if you click on the garage monitor you just added, you should be able to see its live feed. If you don\(aqt, inspect your webserver logs and your ZoneMinder logs to see what is going on. .SS Switching to another theme .INDENT 0.0 .INDENT 3.5 .SS Todo .sp Fix theme text after I clearly understand that System\->CSS is doing .UNINDENT .UNINDENT .sp When you first install ZoneMinder, you see is what is called a "classic" skin. Zoneminder has a host of configuration options that you can customize over time. This guide is meant to get you started the easiest possible way, so we will not go into all the details. However, it is worthwhile to note that Zoneminder also has a \(aqflat\(aq theme that depending on your preferences may look more modern. So let\(aqs use that as an example of introducing you to the Options menu .INDENT 0.0 .IP \(bu 2 Click on the Options link on the top right of the web interface in the image above .IP \(bu 2 This will bring you to the options window as shown below. Click on the "System" tab and then select the "flat" option for CSS_DEFAULT as shown below .UNINDENT [image] .INDENT 0.0 .IP \(bu 2 Click Save at the bottom .UNINDENT .sp Now, switch to the "Display" tab and also select "Flat" there like so: [image] .sp Your screen will now look like this: .sp Congratulations! You now have a modern looking interface. [image] .SS Conclusion .sp This was a quick \(aqGetting Started\(aq guide where you were introduced to the very basics of how to add a monitor (camera). We\(aqve skipped many details to keep this concise. Please refer to /userguide/definemonitor for many other customization details. .SS Defining Monitors .sp To use ZoneMinder properly you need to define at least one Monitor. Essentially, a monitor is associated with a camera and can continually check it for motion detection and such like. .sp You can access the monitor window by clicking on the "Add New Monitor" button, or by clicking on the "Source" column of a predefined monitor. [image] .sp There are a small number of camera setups that ZoneMinder knows about and which can be accessed by clicking on the ‘Presets’ link. Selecting one of the presets will fill in the monitor configuration with appropriate values but you will still need to enter others and confirm the preset settings. Here is an example of the presets window: [image] .sp The options are divided into a set of tabs to make it easier to edit. You do not have to ‘save’ to change to different tab so you can make all the changes you require and then click ‘Save’ at the end. The individual options are explained in a little more detail below, .SS Monitor Tab .INDENT 0.0 .TP .B Name The name for your monitor. This should be made up of alphanumeric characters (a\-z,A\-Z,0\-9) and hyphen (\-) and underscore(_) only. Whitespace is not allowed. .TP .B Server Multi\-Server implementation allows the ability to define multiple ZoneMinder servers sharing a single database. When servers are configured this setting allows you nominate the server for each monitor. .TP .B Source Type This determines whether the camera is a local one attached to a physical video or USB port on your machine, a remote network camera or an image source that is represented by a file (for instance periodically downloaded from a alternate location). Choosing one or the other affects which set of options are shown in the Source tab. .TP .B Function This essentially defines what the monitor is doing. This can be one of the following; .INDENT 7.0 .INDENT 3.5 .INDENT 0.0 .IP \(bu 2 None – The monitor is currently disabled. No streams can be viewed or events generated. Nothing is recorded. .IP \(bu 2 Monitor – The monitor is only available for live streaming. No image analysis is done so no alarms or events will be generated, and nothing will be recorded. .IP \(bu 2 Modect – or MOtion DEteCTtion. All captured images will be analysed and events generated with recorded video where motion is detected. .IP \(bu 2 Record – The monitor will be continuously recorded. Events of a fixed\-length will be generated regardless of motion, analogous to a conventional time\-lapse video recorder. No motion detection takes place in this mode. .IP \(bu 2 Mocord – The monitor will be continuously recorded, with any motion being highlighted within those events. .IP \(bu 2 Nodect – or No DEteCTtion. This is a special mode designed to be used with external triggers. In Nodect no motion detection takes place but events are recorded if external triggers require it. .UNINDENT .UNINDENT .UNINDENT .sp Generally speaking it is best to choose ‘Monitor’ as an initial setting here. .TP .B Enabled The enabled field indicates whether the monitor should be started in an active mode or in a more passive state. You will nearly always want to check this box, the only exceptions being when you want the camera to be enabled or disabled by external triggers or scripts. If not enabled then the monitor will not create any events in response to motion or any other triggers. .TP .B Linked Monitors This field allows you to select other monitors on your system that act as triggers for this monitor. So if you have a camera covering one aspect of your property you can force all cameras to record while that camera detects motion or other events. You can either directly enter a comma separated list of monitor ids or click on ‘Select’ to choose a selection. Be very careful not to create circular dependencies with this feature however you will have infinitely persisting alarms which is almost certainly not what you want! To unlink monitors you can ctrl\-click. .UNINDENT .sp Maximum FPS .INDENT 0.0 .INDENT 3.5 .sp \fBWARNING:\fP .INDENT 0.0 .INDENT 3.5 Unless you know what you are doing, please leave this field empty, especially if you are configuring a network camera. More often than not, putting a value here adversely affects recording. .UNINDENT .UNINDENT .sp On some occasions you may have one or more cameras capable of high capture rates but find that you generally do not require this performance at all times and would prefer to lighten the load on your server. This option permits you to limit the maximum capture rate to a specified value. This may allow you to have more cameras supported on your system by reducing the CPU load or to allocate video bandwidth unevenly between cameras sharing the same video device. This value is only a rough guide and the lower the value you set the less close the actual FPS may approach it especially on shared devices where it can be difficult to synchronise two or more different capture rates precisely. This option controls the maximum FPS in the circumstance where no alarm is occurring only. .sp This feature is limited and will only work under the following conditions: .INDENT 0.0 .IP 1. 3 Local cameras .IP 2. 3 Remote (IP) cameras in snapshot or jpeg mode \fBonly\fP .UNINDENT .sp Using this field for video streams from IP cameras will cause undesirable results when the value is equal to or less than the frame rate from the camera. Note that placing a value higher than the camera\(aqs frame rate is allowed and can help prevent cpu spikes when communication from the camera is lost. .UNINDENT .UNINDENT .sp Alarm Maximum FPS .INDENT 0.0 .INDENT 3.5 .sp \fBWARNING:\fP .INDENT 0.0 .INDENT 3.5 Unless you know what you are doing, please leave this field empty, especially if you are configuring a network camera. More often than not, putting a value here adversely affects recording. .UNINDENT .UNINDENT .sp If you have specified a Maximum FPS it may be that you don’t want this limitation to apply when your monitor is recording motion or other event. This setting allows you to override the Maximum FPS value if this circumstance occurs. As with the Maximum FPS setting leaving this blank implies no limit so if you have set a maximum fps in the previous option then when an alarm occurs this limit would be ignored and ZoneMinder would capture as fast as possible for the duration of the alarm, returning to the limited value after the alarm has concluded. Equally you could set this to the same, or higher (or even lower) value than Maximum FPS for more precise control over the capture rate in the event of an alarm. .sp \fBIMPORTANT:\fP This field is subject to the same limitations as the Maximum FPS field. Ignoring these limitations will produce undesriable results. .UNINDENT .UNINDENT .INDENT 0.0 .TP .B Reference Image Blend %ge Each analysed image in ZoneMinder is a composite of previous images and is formed by applying the current image as a certain percentage of the previous reference image. Thus, if we entered the value of 10 here, each image’s part in the reference image will diminish by a factor of 0.9 each time round. So a typical reference image will be 10% the previous image, 9% the one before that and then 8.1%, 7.2%, 6.5% and so on of the rest of the way. An image will effectively vanish around 25 images later than when it was added. This blend value is what is specified here and if higher will make slower progressing events less detectable as the reference image would change more quickly. Similarly events will be deemed to be over much sooner as the reference image adapts to the new images more quickly. In signal processing terms the higher this value the steeper the event attack and decay of the signal. It depends on your particular requirements what the appropriate value would be for you but start with 10 here and adjust it (usually down) later if necessary. .TP .B Triggers This small section lets you select which triggers will apply if the run mode has been set to ‘triggered’ above. The most common trigger is X10 and this will appear here if you indicated that your system supported it during installation. Only X10 is supported as a shipped trigger with ZoneMinder at present but it is possible that other triggers will become available as necessary. You can also just use ‘cron’ jobs or other mechanisms to actually control the camera and keep them completely outside of the ZoneMinder settings. The zmtrigger.pl script is also available to implement custom external triggering. .UNINDENT .SS Source Tab .SS FFmpeg .INDENT 0.0 .INDENT 3.5 This is the \fBrecommended\fP source type for most modern ip cameras. .UNINDENT .UNINDENT .INDENT 0.0 .TP .B Source Path Use this field to enter the full URL of the stream or file your camera supports. This is usually an RTSP url. There are several methods to learn this: .INDENT 7.0 .INDENT 3.5 .INDENT 0.0 .IP \(bu 2 Check the documentation that came with your camera .IP \(bu 2 Look for your camera in the hardware compatibility list in the \fI\%hardware compatibility wiki\fP .IP \(bu 2 Try ZoneMinder\(aqs new ONVIF probe feature .IP \(bu 2 Download and install the \fI\%ONVIF Device Manager\fP onto a Windows machine .IP \(bu 2 Use Google to find third party sites, such as ispy, which document this information .UNINDENT .UNINDENT .UNINDENT .TP .B Source Colours Specify the amount of colours in the captured image. 32 bit is the preferred choice here. Unlike with local cameras changing this has no controlling effect on the remote camera itself so ensure that your camera is actually capturing to this palette beforehand. .TP .B Capture Width/Height Make sure you enter here the same values as they are in the remote camera\(aqs internal setting. .TP .B Keep aspect ratio As per local devices. .TP .B Orientation As per local devices. .UNINDENT .SS LibVLC .INDENT 0.0 .INDENT 3.5 The fields for the LibVLC source type are configured the same way as the ffmpeg source type. We recommend only using this source type if issues are experienced with the ffmpeg source type. .UNINDENT .UNINDENT .SS cURL .SS Local .INDENT 0.0 .TP .B Device Path/Channel Enter the full path to the device file that your camera is attached to, e.g. /dev/video0. Some video devices, e.g. BTTV cards support multiple cameras on one device so in this case enter the channel number in the Channel box or leave it at zero if you\(aqre using a USB camera or one with just one channel. Look in Supported Hardware section, how to see if your capture card or USB webcam is supported or not, and what extra settings you may have to do, to make it work. .TP .B Device Format Enter the video format of the video stream. This is defined in various system files (e.g. /usr/include/linux/videodev.h) but the two most common are 0 for PAL and 1 for NTSC. .TP .B Capture Palette Finally for the video part of the configuration enter the colour depth. ZoneMinder supports a handful of the most common palettes, so choose one here. If in doubt try 32 bit colour first, then 24 bit colour, then grey. If none of these work very well, and your camera is local, then YUV420P or one of the others probably will. There is a slight performance penalty when using palettes other than 32, 24, or grey palettes as an internal conversion is involved. Recent versions of ZoneMinder support 32bit colour. This capture palette provides a performance boost when used on all modern Intel\-based processors. .TP .B Capture Width/Height The dimensions of the video stream your camera will supply. If your camera supports several just enter the one you\(aqll want to use for this application, you can always change it later. However I would recommend starting with no larger than 320x240 or 384x288 and then perhaps increasing and seeing how performance is affected. This size should be adequate in most cases. Some cameras are quite choosy about the sizes you can use here so unusual sizes such as 197x333 should be avoided initially. .TP .B Keep aspect ratio When typing in the dimensions of monitors you can click this checkbox to ensure that the width stays in the correct ratio to the height, or vice versa. It allows height to be calculated automatically from width (or vice versa) according to preset aspect ratio. This is preset to 4:3 but can be amended globally via the Options\->Config\->ZM_DEFAULT_ASPECT_RATIO setting. Aside from 4:3 which is the usual for network and analog cameras another common setting is 11:9 for CIF (352x288) based sources. .TP .B Orientation If your camera is mounted upside down or at right angles you can use this field to specify a rotation that is applied to the image as it is captured. This incurs an additional processing overhead so if possible it is better to mount your camera the right way round if you can. If you choose one of the rotation options remember to switch the height and width fields so that they apply, e.g. if your camera captures at 352x288 and you choose ‘Rotate Right’ here then set the height to be 352 and width to be 288. You can also choose to ‘flip’ the image if your camera provides mirrored input. .UNINDENT .SS Remote .INDENT 0.0 .TP .B Remote Protocol Choices are currently HTTP and RTSP. Before RTSP became the industry standard, many ip cameras streamed directly from their web portal. If you have an ip camera that does not speak RTSP then choose HTTP here. \fBIf you camera does speak RTSP then you should change your source type to ffmpeg instead of selecting RTSP here.\fP The Remote \-> RTSP method is no longer being maintained and may go away at some point in the future. .TP .B Remote Method When HTTP is the Remote Protocol, your choices are Simple and Regexp. Most should choose Simple. When RTSP is the Remote Protocol, your choices are RTP/Unicast, RTP/Multicast, RTP/RTSP, RTP,RTSP,HTTP. Try each of these to determine which works with your camera. Most cameras will use either RTP/Unicast (UDP) or RTP/RTSP (TCP). .TP .B Remote Host/Port/Path Use these fields to enter the full URL of the camera. Basically if your camera is at \fBhttp://camserver.home.net:8192/cameras/camera1.jpg\fP then these fields will be camserver.home.net, 8192 and /cameras/camera1.jpg respectively. Leave the port at 80 if there is no special port required. If you require authentication to access your camera then add this onto the host name in the form :@.com. This will usually be 32 or 24 bit colour even if the image looks black and white. Look in Supported Hardware > Network Cameras section, how to obtain these strings that may apply to your camera. .TP .B Remote Image Colours Specify the amount of colours in the captured image. Unlike with local cameras changing this has no controlling effect on the remote camera itself so ensure that your camera is actually capturing to this palette beforehand. .TP .B Capture Width/Height Make sure you enter here the same values as they are in the remote camera\(aqs internal setting. .TP .B Keep aspect ratio As per local devices. .TP .B Orientation As per local devices. .UNINDENT .sp For an example to setup a MPEG\-4 camera see: How_to_Setup_an_Axis211A_with_MPEG\-4_streaming .SS File .INDENT 0.0 .TP .B File Path Enter the full path to the file to be used as the image source. .TP .B File Colours Specify the amount of colours in the image. Usually 32 bit colour. .TP .B Capture Width/Height As per local devices. .TP .B Keep aspect ratio As per local devices. .TP .B Orientation As per local devices. .UNINDENT .SS WebSite .sp This Source Type allows one to configure an arbitrary website as a non\-recordable, fully interactive, monitor in ZoneMinder. Note that sites with self\-signed certificates will not display until the end user first manually navigates to the site and accpets the unsigned certificate. Also note that some sites will set an X\-Frame option in the header, which discourages their site from being displayed within a frame. ZoneMinder will detect this condition and present a warning in the log. When this occurs, the end user can choose to install a browser plugin or extension to workaround this issue. .INDENT 0.0 .TP .B Website URL Enter the full http or https url to the desired website. .TP .B Width (pixels) Chose a desired width in pixels that gives an acceptable appearance. This may take some expirimentation. .TP .B Height (pixels) Chose a desired height in pixels that gives an acceptable appearance. This may take some expirimentation. .TP .B Web Site Refresh If the website in question has static content, optionally enter a time period in seconds for ZoneMinder to refresh the content. .UNINDENT .SS Storage Tab .sp The storage section allows for each monitor to configure if and how video and audio are recorded. .INDENT 0.0 .TP .B Save JPEGs Records video in individual JPEG frames. Storing JPEG frames requires more storage space than h264 but it allows one to view an event anytime while it is being recorded. .INDENT 7.0 .IP \(bu 2 Disabled – video is not recorded as JPEG frames. If this setting is selected, then "Video Writer" should be enabled otherwise there is no video recording at all. .IP \(bu 2 Frames only – video is recorded in individual JPEG frames. .IP \(bu 2 Analysis images only (if available) – video is recorded in individual JPEG frames with an overlay of the motion detection analysis information. Note that this overlay remains permanently visible in the frames. .IP \(bu 2 Frames + Analysis images (if available) – video is recorded twice, once as normal individual JPEG frames and once in individual JPEG frames with analysis information overlaid. .UNINDENT .TP .B Video Writer Records video in real video format. It provides much better compression results than saving JPEGs, thus longer video history can be stored. .INDENT 7.0 .IP \(bu 2 Disabled – video is not recorded in video format. If this setting is selected, then "Save JPEGs" should be enabled otherwise there is no video recording at all. .IP \(bu 2 X264 Encode – the video or picture frames received from the camera are transcoded into h264 and stored as a video. This option is useful if the camera cannot natively stream h264. .IP \(bu 2 H264 Camera Passthrough – this option assumes that the camera is already sending an h264 stream. Video will be recorded as is, without any post\-processing in zoneminder. Video characteristics such as bitrate, encoding mode, etc. should be set directly in the camera. .UNINDENT .TP .B Recording Audio Check the box labeled "Whether to store the audio stream when saving an event." in order to save audio (if available) when events are recorded. .UNINDENT .SS Timestamp Tab .INDENT 0.0 .TP .B Timestamp Label Format This relates to the timestamp that is applied to each frame. It is a ‘strftime’ style string with a few extra tokens. You can add %f to add the decimal hundredths of a second to the frame timestamp, so %H:%M:%S.%f will output time like 10:45:37.45. You can also use %N for the name of the monitor and %Qwhich will be filled by any of the ‘show text’ detailed in the zmtriggers.pl section. .TP .B Timestamp Label X/Y The X and Y values determine where to put the timestamp. A value of 0 for the X value will put it on the left side of the image and a Y value of 0 will place it at the top of the image. To place the timestamp at the bottom of the image use a value eight less than the image height. .UNINDENT .SS Buffers Tab .INDENT 0.0 .TP .B Image Buffer Size This option determines how many frames are held in the ring buffer at any one time. The ring buffer is the storage space where the last ‘n’ images are kept, ready to be resurrected on an alarm or just kept waiting to be analysed. It can be any value you like with a couple of provisos, (see next options). However it is stored in shared memory and making it too large especially for large images with a high colour depth can use a lot of memory. A value of no more than 50 is usually ok. If you find that your system will not let you use the value you want it is probably because your system has an arbitrary limit on the size of shared memory that may be used even though you may have plenty of free memory available. This limit is usually fairly easy to change, see the Troubleshooting section for details. .TP .B Warm\-up Frames This specifies how many frames the analysis daemon should process but not examine when it starts. This allows it to generate an accurate reference image from a series of images before looking too carefully for any changes. I use a value of 25 here, too high and it will take a long time to start, too low and you will get false alarms when the analysis daemon starts up. .TP .B Pre/Post Event Image Buffer These options determine how many frames from before and after an event should be preserved with it. This allows you to view what happened immediately prior and subsequent to the event. A value of 10 for both of these will get you started but if you get a lot of short events and would prefer them to run together to form fewer longer ones then increase the Post Event buffer size. The pre\-event buffer is a true buffer and should not really exceed half the ring buffer size. However the post\-event buffer is just a count that is applied to captured frames and so can be managed more flexibly. You should also bear in mind the frame rate of the camera when choosing these values. For instance a network camera capturing at 1FPS will give you 10 seconds before and after each event if you chose 10 here. This may well be too much and pad out events more than necessary. However a fast video card may capture at 25FPS and you will want to ensure that this setting enables you to view a reasonable time frame pre and post event. .TP .B Stream Replay Image Buffer The number of frames buffered to allow pausing and rewinding of the stream when live viewing a monitor. A value of 0 disables the feature. Frames are buffered to ZM_PATH_SWAP. If this path points to a physical drive, a lot of IO will be caused during live view / montage. If you experience high system load in those situations, either disable the feature or use a RAM drive for ZM_PATH_SWAP. .TP .B Alarm Frame Count This option allows you to specify how many consecutive alarm frames must occur before an alarm event is generated. The usual, and default, value is 1 which implies that any alarm frame will cause or participate in an event. You can enter any value up to 16 here to eliminate bogus events caused perhaps by screen flickers or other transients. Values over 3 or 4 are unlikely to be useful however. Please note that if you have statistics recording enabled then currently statistics are not recorded for the first ‘Alarm Frame Count’\-1 frames of an event. So if you set this value to 5 then the first 4 frames will be missing statistics whereas the more usual value of 1 will ensure that all alarm frames have statistics recorded. .UNINDENT .SS Control Tab .sp Note: This tab and its options will only appear if you have selected the ZM_OPT_CONTROL option to indicate that your system contains cameras which are able to be controlled via Pan/Tilt/Zoom or other mechanisms. See the Camera Control section elsewhere in this document for further details on camera control protocols and methods. .INDENT 0.0 .TP .B Controllable Check this box to indicate your camera can be controlled. .TP .B Control Type Select the control type that is appropriate for your camera. ZoneMinder ships with a small number of predefined control protocols which will works with some cameras without modification but which may have to amended to function with others, Choose the edit link to create new control types or to edit the existing ones. .TP .B Control Device This is the device that is used to control your camera. This will normally be a serial or similar port. If your camera is a network camera, you will generally not need to specify a control device. .TP .B Control Address This is the address of your camera. Some control protocols require that each camera is identified by a particular, usually numeric, id. If your camera uses addressing then enter the id of your camera here. If your camera is a network camera then you will usually need to enter the hostname or IP address of it here. This is ordinarily the same as that given for the camera itself. .TP .B Auto Stop Timeout Some cameras only support a continuous mode of movement. For instance you tell the camera to pan right and then when it is aligned correctly you tell it to stop. In some cases it is difficult to time this precisely over a web interface so this option allows you to specify an automatic timeout where the command will be automatically stopped. So a value of 0.25 here can tell the script to stop moving a quarter of a second after starting. This allows a more precise method of fine control. If this value is left blank or at zero it will be ignored, if set then it will be used as the timeout however it will only be applied for the lower 25% of possible speed ranges. In other words if your camera has a pan speed range of 1 to 100 then selecting to move at 26 or over will be assumed to imply that you want a larger movement that you can control yourself and no timeout will be applied. Selecting motion at lower speeds will be interpreted as requiring finer control and the automatic timeout will be invoked. .TP .B Track Motion This and the following four options are used with the experimental motion function. This will only work if your camera supports mapped movement modes where a point on an image can be mapped to a control command. This is generally most common on network cameras but can be replicated to some degree on other cameras that support relative movement modes. See the Camera Control section for more details. Check this box to enable motion tracking. .TP .B Track Delay This is the number of seconds to suspend motion detection for following any movement that the camera may make to track motion. .TP .B Return Location If you camera supports a ‘home’ position or presets you can choose which preset the camera should return to after tracking motion. .TP .B Return Delay This is the delay, in seconds, once motion has stopped being detected, before the camera returns to any defined return location. .UNINDENT .SS X10 Tab .sp Note: This tab and its options will only appear if you have indicated that your system supports the X10 home automation protocol during initial system configuration. .INDENT 0.0 .TP .B X10 Activation String The contents of this field determine when a monitor starts and/or stops being active when running in ‘Triggered; mode and with X10 triggers. The format of this string is as follows, .INDENT 7.0 .INDENT 3.5 .INDENT 0.0 .IP \(bu 2 n : If you simply enter a number then the monitor will be activated when an X10 ON signal for that unit code is detected and will be deactivated when an OFF signal is detected. .IP \(bu 2 !n : This inverts the previous mode, e.g. !5 means that the monitor is activated when an OFF signal for unit code 5 is detected and deactivated by an ON. .IP \(bu 2 n+ : Entering a unit code followed by + means that the monitor is activated on receipt of a ON signal for that unit code but will ignore the OFF signal and as such will not be deactivated by this instruction. If you prepend a \(aq!\(aq as per the previous definition it similarly inverts the mode, i.e. the ON signal deactivates the monitor. .IP \(bu 2 n+ : As per the previous mode except that the monitor will deactivate itself after the given number of seconds. .IP \(bu 2 n\- : Entering a unit code followed by \- means that the monitor is deactivated on receipt of a OFF signal for that unit code but will ignore the ON signal and as such will not be activated by this instruction. If you prepend a \(aq!\(aq as per the previous definition it similarly inverts the mode, i.e. the OFF signal activates the monitor. .IP \(bu 2 n\- : As per the previous mode except that the monitor will activate itself after the given number of seconds. .UNINDENT .UNINDENT .UNINDENT .sp You can also combine several of these expressions to by separating them with a comma to create multiple circumstances of activation. However for now leave this blank. .TP .B X10 Input Alarm String This has the same format as the previous field but instead of activating the monitor with will cause a forced alarm to be generated and an event recorded if the monitor is Active. The same definition as above applies except that for activated read alarmed and for deactivated read unalarmed(!). Again leave this blank for now. .TP .B X10 Output Alarm String This X10 string also has the same format as the two above options. However it works in a slightly different way. Instead of ZoneMinder reacting to X10 events this option controls how ZoneMinder emits X10 signals when the current monitor goes into or comes out of the alarm state. Thus just entering a number will cause the ON signal for that unit code to be sent when going into alarm state and the OFF signal when coming out of alarm state. Similarly 7+30 will send the unit code 7 ON signal when going into alarm state and the OFF signal 30 seconds later regardless of state. The combination of the X10 instruction allows ZoneMinder to react intelligently to, and also assume control of, other devices when necessary. However the indiscriminate use of the Input Alarm and Output Alarm signals can cause some horrendous race conditions such as a light going on in response to an alarm which then causes an alarm itself and so on. Thus some circumspection is required here. Leave this blank for now anyway. .UNINDENT .SS Misc Tab .INDENT 0.0 .TP .B Event Prefix By default events are named ‘Event\-’, however you are free to rename them individually as you wish. This option lets you modify the event prefix, the ‘Event\-‘ part, to be a value of your choice so that events are named differently as they are generated. This allows you to name events according to which monitor generated them. .TP .B Section Length This specifies the length (in seconds) of any fixed length events produced when the monitor function is ‘Record’ or ‘Mocord’. Otherwise it is ignored. This should not be so long that events are difficult to navigate nor so short that too many events are generated. A length of between 300 and 900 seconds I recommended. .TP .B Frame Skip This setting also applies only to the ‘Record’ or ‘Mocord’ functions and specifies how many frames should be skipped in the recorded events. The default setting of zero results in every captured frame being saved. Using a value of one would mean that one frame is skipped between each saved, two means that two frames are skipped between each saved frame etc. An alternate way of thinking is that one in every ‘Frame Skip + 1’ frames is saved. The point of this is to ensure that saved events do not take up too much space unnecessarily whilst still allowing the camera to capture at a fairly high frame rate. The alternate approach is to limit the capture frame rate which will obviously affect the rate at which frames are saved. .TP .B FPS Report Interval How often the current performance in terms of Frames Per Second is output to the system log. Not used in any functional way so set it to maybe 1000 for now. If you watch /var/log/messages (normally) you will see this value being emitted at the frequency you specify both for video capture and processing. .TP .B Default Scale If your monitor has been defined with a particularly large or small image size then you can choose a default scale here with which to view the monitor so it is easier or more visible from the web interface. .TP .B Web Colour Some elements of ZoneMinder now use colours to identify monitors on certain views. You can select which colour is used for each monitor here. Any specification that is valid for HTML colours is valid here, e.g. ‘red’ or ‘#ff0000’. A small swatch next to the input box displays the colour you have chosen. .TP .B Embed EXIF data into image: Embeds EXIF data into each jpeg frame .INDENT 7.0 .INDENT 3.5 .SS Todo .sp what about mp4s? .UNINDENT .UNINDENT .UNINDENT .SS Defining Zones .sp The next important thing to do with a new monitor is set up Zones for it to use. By default you\(aqll already have one generated for you when you created your monitor (the default zone is the full area captured by the monitor) but you might want to modify it or add others. .sp Click on the Zones column for your monitor and you should see a small popup window appear which contains an image from your camera overlain with a stippled pattern representing your zone. In the default case this will cover the whole image. The colour of the zones appearing here is determined by what type they are. The default zone is Active and so will be red, Inclusive zones are orange, exclusive zones are purple, preclusive zones are blue and inactive zones are white. .sp Beneath the zones image will be a table containing a listing of your zones. Clicking on either the relevant bit of the image or on the Id or Name in the table will bring up another window where you can edit the particulars for your Zones. For more information on defining or editing a zone, see Defining Zones. .sp Zone configuration and tuning are important when running in the motion detection modes to avoid storing, sorting through, or being alerted on uninteresting video data. Configuring a zone involves setting some basic parameters, as well as choosing an alarm check method and tuning their associated detection parameters. .sp The Zone view is split into two main areas, on the left is the options are area and on the right is the zone drawing area. A default or new zone will cover the whole drawing area and will overlay any other zones you already have on there. Unlike the previous zones image, the current zone is coloured green, other zones will be orange regardless of type. The smaller the zone, the less processing time it takes to examine it. .SS Basic parameters .INDENT 0.0 .TP .B Name Each Zone can be named for reference purposes. It is used for logging and debugging. Choose a name that helps you identify your zones. .TP .B Type This is one of the more important concepts in ZoneMinder and there are six to choose from. .INDENT 7.0 .IP \(bu 2 Active Triggers an alarm when motion is detected within it. This is the zone type you\(aqll use most often, and which will be set for your default zone. Only Active and Exclusive zones can trigger an alarm. .IP \(bu 2 Inclusive This zone type can be used for any zones that you want to trigger an alarm only if at least one other Active zone has already triggered one. This might be for example to cover an area of the image like a plant or tree which moves a lot and which would trigger lots of alarms. Perhaps this is behind an area you\(aqd like to monitor though, in this case you\(aqd create an active zone covering the non\-moving parts and an inclusive zone covering the tree perhaps with less sensitive detection settings also. If something triggered an alarm in the Active zone and also in the Inclusive zone they would both be registered and the resulting alarm would be that much bigger than if you had blanked it out altogether. .IP \(bu 2 Exclusive Triggers an alarm when motion is detected within it, as long as no alarms have already been triggered in an Active zone. This is the most specialized of the zone types. For instance in the camera covering my garden I keep watch for a hedgehog that visits most nights and scoffs the food out of my cats bowls. By creating a sensitive Exclusive zone in that area I can ensure that a hedgehog alarm will only trigger if there is activity in that small area. If something much bigger occurs, like someone walking by it will trigger a regular alarm and not one from the Exclusive zone. Thus I can ensure I get alarms for big events and also special small events but not the noise in between. .IP \(bu 2 Preclusive This zone type is relatively recent. It is called a Preclusive zone because if it is triggered it actually precludes an alarm being generated for that image frame. So motion or other changes that occur in a Preclusive zone will have the effect of ensuring that no alarm occurs at all. The application for this zone type is primarily as a shortcut for detecting general large\-scale lighting or other changes. Generally this may be achieved by limiting the maximum number of alarm pixels or other measure in an Active zone. However in some cases that zone may cover an area where the area of variable illumination occurs in different places as the sun and/or shadows move and it thus may be difficult to come up with general values. Additionally, if the sun comes out rapidly then although the initial change may be ignored in this way as the reference image catches up an alarm may ultimately be triggered as the image becomes less different. Using one or more Preclusive zones offers a different approach. Preclusive zones are designed to be fairly small, even just a few pixels across, with quite low alarm thresholds. They should be situated in areas of the image that are less likely to have motion occur such as high on a wall or in a corner. Should a general illumination change occur they would be triggered at least as early as any Active zones and prevent any other zones from generating an alarm. Obviously careful placement is required to ensure that they do not cancel any genuine alarms or that they are not so close together that any motion just hops from one Preclusive zone to another. Preclusive zones may also be used to reduce processing time by situating one over an Active zone. The Preclusive zone is processed first; if it is small, and is triggered, the rest of the zone/image will not be processed. See Extend Alarm Frame Count below for a way to hold the preclusive zone active for an extended period. .IP \(bu 2 Inactive Suppresses the detection of motion within it. This can be layered on top of any other zone type, preventing motion within the Inactive zone from being effective for any other zone type. Use inactive zones to cover areas in which nothing notable will ever happen or where you get false alarms that don\(aqt relate to what you are trying to monitor. Inactive zones may be overlaid on other zones to blank out areas, and are processed first (with the exception of Privacy zones, see below). As a general practice, you should try and make zones abut each other instead of overlapping to avoid repeated duplicate processing of the same area. .IP \(bu 2 Privacy Blackens the pixels within it. This can be used if you want to hide some regions in the image if the situation does not allow another solution. This zone type is different to all the others in that it gets processed as soon as possible during capture (even before the timestamp gets into the image) and not in the analyzing process. So if you add, change or delete a Privacy zone, you don\(aqt see the changes in the image until the capture process gets restarted. This will be done automatically, but needs a few seconds. .UNINDENT .TP .B Preset The preset chooser sets sensible default values based on computational needs (fast v. best) and sensitivity (low, medium, high.) It is not required that you select a preset, and you can alter any of the parameters after choosing a preset. For a small number of monitors with ZoneMinder running on modern equipment, Best, high sensitivity can be chosen as a good starting point. .sp It is important to understand that the available presets are intended merely as a starting point. Since every camera\(aqs view is unique, they are not guaranteed to work properly in every case. Presets tend to work acceptably for indoor cameras, where the objects of interest are relatively close and there typically are few or no unwanted objects moving within the cameras view. Presets, on the other hand, tend to not work acceptably for outdoor cameras, where the field of view is typically much wider, objects of interest are farther away, and changing weather patterns can cause false triggers. For outdoor cameras in particular, you will almost certainly have to tune your motion detection zone to get desired results. Please refer to \fI\%this guide\fP to learn how to do this. .TP .B Units .INDENT 7.0 .IP \(bu 2 Pixels \- Selecting this option will allow many of the following values to be entered (or viewed) in units of pixels. .IP \(bu 2 Percentage \- Selecting this option will allow may of the following values to be entered (or viewed) as a percentage. The sense of the percentage values refers to the area of the zone and not the image as a whole. This makes trying to work out necessary sizes rather easier. .UNINDENT .UNINDENT .sp Region points [image] .sp The sample region shown to the right shows a region defined by 6 control points. The shape of the region causes the check methods to ignore the sidewalk and areas of the porch wall that receive changing sunlight; two conditions that are not of interest in this zone. .INDENT 0.0 .INDENT 3.5 A region is a part of the captured image that is of interest for this zone. By default, a region is configured to cover the whole captured image. Depending on the selected type of this zone, the shape of the region can be adjusted to accommodate multiple effects. This can be done by dragging the control points in the reference image around, or by altering the coordinates found in the controls below the reference image. Clicking on a control point in the reference image highlights the coordinates in the table below. Clicking the + button in a point row adds a control point between this point and the next; clicking the \- button removes this control point. It is possible to accidentally place a control point outside of the valid coordinates of the image. This will prevent the monitor from working properly. You can make zones almost any shape you like; except that zones may not self\-intersect (i.e. edges crossing over each other). .UNINDENT .UNINDENT .INDENT 0.0 .TP .B Alarm Colour These parameters can be used to individually colorize the zone overlay pattern. Alarms in this zone will be highlighted in the alarm colour. This option is irrelevant for Preclusive and Inactive zones and will be disabled. .TP .B Alarm Check Methods There are 3 Alarm Check Methods. They are sequential, and are layered: In AlarmedPixels mode, only the AlarmedPixel analysis is performed. In FilteredPixels mode, the AlarmedPixel analysis is performed first, followed by the FilteredPixel analysis. In the Blobs mode, all 3 analysis methods are performed in order. An alarm is only triggered if \fIall\fP of the enabled analysis modes are triggered. For performance reasons, as soon as the criteria for one of the analysis modes is not met, the alarm checking for the frame is complete. Since the subsequent modes each require progressively more computations, it is a good idea to tune the parameters in each of the activated layers. .sp For reference purposes, the Zone Area box shows the area of the entire region of interest. In percent mode, this is 100. In Pixels mode, this is the pixel count of the region. All 3 Min/Max Area parameter groups are based on the Zone Area as the maximum sensible value, and all 3 are interpreted in the units specified in the Units input. .TP .B AlarmedPixels Alarmed pixels is the first layer of analysis, and is always enabled. Its recommended that you start with this method and move on to the subsequent methods once the effects of the basic parameters are understood. In the AlarmedPixels mode, 2 parameter categories are available for tuning: Min/Max Pixel Threshold, and Min/Max Alarmed Area. .TP .B Min/Max Pixel Threshold (0\-255) In the AlarmedPixel layer of analysis, each individual pixel of the image is compared to the current reference image. Pixels that are different from the reference image are considered alarmed pixels. However, small aberrations in lighting or auto exposure camera adjustments may cause the explicit value of a pixel to vary by small amounts from image to image. This parameter allows you to set the limits of what will be considered a changed pixel. For example, if your camera points to a blank white wall, and you raise a black colored item into view, then the change in any one pixel will be great, indeed, extreme. If however, you raise a white piece of paper, then the change in an individual pixel will be less. .sp The minimum pixel threshold setting should be high enough to cause minor lighting, imaging, or compression changes to be ignored. Setting the minimum value too high, may allow a white cat to walk undetected across the view of the white wall. A good starting point for the minimum pixel threshold is 40, meaning that the difference in pixel value from must be greater than 40. A good default for the maximum pixel threshold is 0 (indicating that all differences above the minimum threshold are considered a change.) .TP .B Min/Max Alarmed Area The count of alarmed pixels (or percentage of alarmed pixels relative to the pixel area of the region if in percent mode) is used in this first layer of analysis to determine if an alarm is triggered. If the count or percentage is above the minimum alarmed area, but less than the maximum alarmed area, an alarm is triggered. These settings depend on the size of the object you are trying to capture: a value too low may cause false alarms, while a value too high might not detect small objects. A good starting point for both the minimum and maximum are 0 and 0, indicating that any number of alarmed pixels (or any percentage) greater than 0 will trigger an alarm. The frame scores from logged events can then be used to bring the minimum up to a reasonable value. An alternative starting point for the minimum alarmed area (in percent) is 25% of the area that an object of interest takes up in the region. For example, if you approximate that a subject moving through the frame takes up 30% of the frame, then a good starting minimum area is about 7.5%. .TP .B FilteredPixels Selecting the FilteredPixels Alarm Check Method adds an additional layer of analysis to the AlarmedPixels check along with 2 additional parameter categories for tuning. This layer works by analyzing the alarmed pixels identified in the first layer. Alarmed pixels are disregarded, in this and future layers if enabled, if they are not in groups of a minimum small square size. Primarily, this filtering removes isolated alarmed pixels that may be artifacts of the camera, lens, or compression. .TP .B Filter Width/Height (pixels) This parameter is always specified in Pixels, even when Percentages are the selected units. It specifies the size of the group of pixels surrounding a given pixel that must be in alarmed pixels for the pixel itself to be considered an alarmed pixel. The width and height should always be an odd number. 3 x 3 is the default value, and 5 x 5 is also suggested as a sensible alternative. Avoid using large numbers for the width and height of the filter area. When using the Blobs Alarm Check Method, FilteredPixels can be effectively disabled by setting either the width or height to a value less than 1. .TP .B Min/Max Filtered Area Applying the filtering analysis results in an area that is less than or equal to the alarmed area. Thus the minimum and maximum filtered area parameters for alarm should be equal to or less than the corresponding alarm area parameters, or the FilteredPixels analysis will never trigger an alarm. In particular, it is useful to raise the minimum alarmed area parameter until false events from image artifacts disappear, and setting a minimum filtered area parameter less the minimum alarmed area parameter by enough to capture small events of interest. .UNINDENT .sp Blobs [image] .sp This image shows an image with 1 identified blob. The blob is outlined in the Alarm Colour specified above. .sp When two or more Filtered areas touch or share a boundary, it is sensible to evaluate the regions as one contiguous area instead of separate entities. A Blob is a contiguous area made up of multiple filtered areas. Whereas FilteredPixes is useful for excluding parts of the image that are not part of the actual scene, Blob filtering is better suited to disregarding areas of the actual scene that are not of interest. .INDENT 0.0 .INDENT 3.5 Selecting the Blobs Alarm Check Method opens up all of the available parameters. Enabling Blobs adds one more layer of analysis to the AlarmedPixel and FilteredPixel checks in the determination of a valid alarm along along with 2 additional parameter categories for tuning: the size of the blobs, and the number of blobs. A Blob is not necessarily the whole object that may be of interest. In the example image, the subject is moving, but only a portion of him is marked as a blob. This is because as the subject moves, many pixels of the image do not change in value beyond the set threshold. A pixel that is representing the subject\(aqs shoulder in one frame may be representing his back in the next, however, the value of the pixel remains nearly the same. .UNINDENT .UNINDENT .INDENT 0.0 .TP .B Min/Max Blob Area The blob area parameters control the smallest and largest contiguous areas that are to be considered a blob. A good value for the maximum area is the default of 0. (There is no upper bound for the size of a contiguous area that will still be considered a blob.) .TP .B Min/Max Blobs Normally, you would want any positive number of blobs to trigger an event, so the default value of 1 should suffice. In some circumstances, it may benefit to have only one blob NOT trigger an event, in which case, setting this value to 2 or higher may serve some special purpose. A good value for the maximum blobs is the default of 0. (There is no upper bound for the number of blobs that will trigger an event. Use the maximum blobs parameter can be used to tune out events that show a high number of blobs. .TP .B Overload Frame Ignore Count This setting specifies the number of frames to NOT raise an alarm after an overload. In this context, overload is defined as a detected change too big to raise an alarm. Depending on the alarm check method that could be * Number of alarmed pixels > Max Alarmed Area or * Number of filtered pixels > Max Filtered Area or * Number of Blobs > Max Blobs The idea is that after a change like a light going on that is considered too big to count as an alarm, it could take a couple of frames for things to settle down again. .TP .B Extend Alarm Frame Count This field applies to Preclusive Zones only. Placing a value in this field holds the Preclusive zone active for the specified number of frames after the initial triggering event. This is useful in cases where a sudden change in light level triggers the Preclusive zone, but the zone needs to be held active for a few frames as the camera itself adjusts to that change in light level. .UNINDENT .SS Other information .sp Refer to \fI\%this\fP user contributed Zone guide for additional information will illustrations if you are new to zones and need more help. .SS Viewing Monitors .sp ZoneMinder allows you to view a live feed of your configured monitors. One can access this view by clicking on the "Name" column of any of the monitors [image] .sp Clicking on the name produces a view similar to this: [image] .sp The image should be self\-explanatory but if it looks like garbage it is possible that the video configuration is wrong so look in your system error log and check for or report anything unusual. The centre of the window will have a tiny frame that just contains a status; this will be \(aqIdle\(aq, \(aqAlarm\(aq or \(aqAlert\(aq depending on the function of the Monitor and what\(aqs going on in the field of view. Idle means nothing is happening, Alarm means there is an alarm in progress and Alert means that an alarm has happened and the monitor is ‘cooling down’, if another alarm is generated in this time it will just become part of the same event. These indicators are colour coded in green, red and amber. .sp By default if you have minimised this window or opened other windows in front it will pop up to the front if it goes to Alarm state. This behaviour can be turned off in ‘options’ if required. You can also specify a sound file in the configuration, which will be played when an alarm occurs to alert you to the fact if you are not in front of your computer. This should be a short sound of only a couple of seconds ideally. Note that as the status is refreshed every few seconds it is possible for this not to alert you to every event that takes place, so you shouldn\(aqt rely on it for this purpose if you expect very brief events. Alternatively you can decrease the refresh interval for this window in the configuration though having too frequent refreshing may impact on performance. .sp Below the status is a list of recent events that have occurred, by default this is a listing of just the last 10 but clicking on \(aqAll\(aq will give you a full list and \(aqArchive\(aq will take you to the event archive for this monitor, more on this later. Clicking on any of the column headings will sort the events appropriately. .sp From here you can also delete events if you wish. The events themselves are listed with the event id, and event name (which you can change), the time that the event occurred, the length of the event including any preamble and postamble frames, the number of frames comprising the event with the number that actually contain an alarm in brackets and finally a score. This column lists the average score per alarm frame as well as the maximum score that any alarm frame had. .sp The score is an arbitrary value that essentially represents the percentage of pixels in the zone that are in blobs divided by the square root of the number of blobs and then divided by the size of the zone. This gives a nominal maximum of 100 for a zone and the totals for each zone are added together, Active zones scores are added unchanged, Inclusive zones are halved first and Exclusive zones are doubled. In reality values are likely to be much less than 100 but it does give a simple indication of how major the event was. .SS Filtering Events .sp Filters allow you to define complex conditions with associated actions in ZoneMinder. Examples could include: .INDENT 0.0 .IP \(bu 2 Send an email each time a new event occurs for a specific monitor .IP \(bu 2 Delete events that are more than 10 days old .UNINDENT .sp And many more. .sp The filter window can be accessed by tapping on the top level filter menu .sp You can use the filter window to create your own filters or to modify existing ones. You can even save your favourite filters to re\-use at a future date. Filtering itself is fairly simple; you first choose how many expressions you\(aqd like your filter to contain. Changing this value will cause the window to redraw with a corresponding row for each expression. You then select what you want to filter on and how the expressions relate by choosing whether they are \(aqand\(aq or \(aqor\(aq relationships. For filters comprised of many expressions you will also get the option to bracket parts of the filter to ensure you can express it as desired. Then if you like choose how you want your results sorted and whether you want to limit the amount of events displayed. .sp Here is what the filter window looks like [image] .INDENT 0.0 .IP \(bu 2 \fIA\fP: This is a dropdown list where you can select pre\-defined filters. You will notice that ZoneMinder comes with a PurgeWhenFull filter that is configured to delete events if you reach 95% of disk space. .IP \(bu 2 \fIB\fP: If you are creating a new filter, you can type in a name for your filter here .IP \(bu 2 \fIC\fP: This is where you specify conditions that need to match before the filter is executed. You use the "+" and "\-" buttons to add/delete conditions .IP \(bu 2 \fID\fP: This allows you to perform sorting and limiting operations on the output before you take an action .IP \(bu 2 \fIE\fP: This is where you specify what needs to happen when the conditions match: .INDENT 2.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .IP \(bu 2 Archive all matches: sets the archive field to 1 in the Database for the matched events. Think of \(aqarchiving\(aq as grouping them under a special category \- you can view archived events later and also make sure archived events don\(aqt get deleted, for example .UNINDENT .UNINDENT .UNINDENT .INDENT 0.0 .INDENT 3.5 .SS Todo .sp For the "create video" filter, put in more details on how it works, any dependencies etc. .UNINDENT .UNINDENT .UNINDENT .UNINDENT .INDENT 2.0 .IP \(bu 2 Update used disk space: calculates how much disk space is currently taken by the event and updates the db record. .IP \(bu 2 Create video for all matches: creates a video file of all the events that match .IP \(bu 2 .INDENT 2.0 .TP .B Create video for all matches: ffmpeg will be used to create a video file (mp4) out of all the stored jpgs if using jpeg storage. .INDENT 7.0 .IP \(bu 2 Execute command on all matches: Allows you to execute any arbitrary command on the matched events. You can use replacement tokens as subsequent arguents to the command, the last argument will be the absolute path to the event, preceded by replacement arguents. eg: /usr/bin/script.sh %MN% will execute as /usr/bin/script.sh MonitorName /path/to/event. Please note that urls may contain characters like & that need quoting. So you may need to put quotes around them like /usr/bin/scrupt.sh "%MN%". .IP \(bu 2 Delete all matches: Deletes all the matched events. .IP \(bu 2 Email details of all matches: Sends an email to the configured address with details about the event. .UNINDENT .UNINDENT .IP \(bu 2 Copy all matches: copies the event files to another location, specified in the Copy To dropdown. The other location must be setup in the Storage Tab under options. .IP \(bu 2 Message details of all matches: Uses an email to SMS gateway to send an SMS message for each match. .IP \(bu 2 Move all matches: copies the event files to another location, specified in the Move To dropdown. The other location must be setup in the Storage Tab under options. The files will be delete from the original location. .IP \(bu 2 Run filter in background: When checked, ZoneMinder will make sure the filter is checked regularly. For example, if you want to be notified of new events by email, you should make sure this is checked. Filters that are configured to run in the background have a “*” next to it. .IP \(bu 2 Run filter concurrently: Allows this filter to run in its own thread thereby letting other filters run in parallel. .UNINDENT .IP \(bu 2 \fIF\fP: Use \(aqList Matches\(aq to \(aqtest\(aq your matching conditions. This will just match and show you what filters match. Use \(aqExecute\(aq to actually execute the action after matching your conditions. Use \(aqSave\(aq to save the filter for future use and \(aqReset\(aq to clear your settings .UNINDENT .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 More details on filter conditions: .INDENT 0.0 .INDENT 3.5 There are several different elements to an event that you can filter on, some of which require further explanation. These are as follows, * \(aqDate/Time\(aq which must evaluate to a date and a time together, * \(aqDate\(aq and \(aqTime\(aq which are variants which may only contain the relevant subsets of this, * \(aqWeekday\(aq which as expected is a day of the week. .sp All of the preceding elements take a very flexible free format of dates and time based on the PHP strtotime function (\fI\%https://www.php.net/manual/en/function.strtotime.php\fP). This allows values such as \(aqlast Wednesday\(aq etc to be entered. We recommend acquainting yourself with this function to see what the allowed formats are. However automated filters are run in perl and so are parsed by the Date::Manip package. Not all date formats are available in both so if you are saved your filter to do automatic deletions or other tasks you should make sure that the date and time format you use is compatible with both methods. The safest type of format to use is ‘\-3 day’ or similar with easily parseable numbers and units are in English. .sp The other things you can filter on are all fairly self explanatory, except perhaps for \(aqArchived\(aq which you can use to include or exclude Archived events. In general you\(aqll probably do most filtering on un\-archived events. There are also two elements, Disk Blocks and Disk Percent which don’t directly relate to the events themselves but to the disk partition on which the events are stored. These allow you to specify an amount of disk usage either in blocks or in percentage as returned by the ‘df’ command. They relate to the amount of disk space used and not the amount left free. Once your filter is specified, clicking \(aqsubmit\(aq will filter the events according to your specification. As the disk based elements are not event related directly if you create a filter and include the term ‘DiskPercent > 95’ then if your current disk usage is over that amount when you submit the filter then all events will be listed whereas if it is less then none at all will. As such the disk related terms will tend to be used mostly for automatic filters (see below). If you have created a filter you want to keep, you can name it and save it by clicking \(aqSave\(aq. .sp If you do this then the subsequent dialog will also allow you specify whether you want this filter automatically applied in order to delete events or upload events via ftp to another server and mail notifications of events to one or more email accounts. Emails and messages (essentially small emails intended for mobile phones or pagers) have a format defined in the Options screen, and may include a variety of tokens that can be substituted for various details of the event that caused them. This includes links to the event view or the filter as well as the option of attaching images or videos to the email itself. Be aware that tokens that represent links may require you to log in to access the actual page, and sometimes may function differently when viewed outside of the general ZoneMinder context. The tokens you can use are as follows. .UNINDENT .UNINDENT .INDENT 0.0 .IP \(bu 2 %EI% Id of the event .IP \(bu 2 %EN% Name of the event .IP \(bu 2 %EC% Cause of the event .IP \(bu 2 %ED% Event description .IP \(bu 2 %ET% Time of the event .IP \(bu 2 %EL% Length of the event .IP \(bu 2 %EF% Number of frames in the event .IP \(bu 2 %EFA% Number of alarm frames in the event .IP \(bu 2 %EST% Total score of the event .IP \(bu 2 %ESA% Average score of the event .IP \(bu 2 %ESM% Maximum score of the event .IP \(bu 2 %EP% Path to the event .IP \(bu 2 %EPS% Path to the event stream .IP \(bu 2 %EPF1% Path to the frame view for the first alarmed event image .IP \(bu 2 %EPFM% Path to the frame view for the (first) event image with the highest score .IP \(bu 2 %EPFMOD% Path to image containing object detection, in frame view .IP \(bu 2 %EPFMODG% Path to image containing object detection animated gif version, in frame view .IP \(bu 2 %EPI% Path to the event images .IP \(bu 2 %EPI1% Path to the first alarmed event image, suitable for use in img tags .IP \(bu 2 %EPIM% Path to the (first) event image with the highest score, suitable for use in img tags .IP \(bu 2 %EPIMOD% Path to image containing object detection, suitable for use in img tags .IP \(bu 2 %EPIMODG% Path to image containing object detection animated gif version, suitable for use in img tags .IP \(bu 2 .INDENT 2.0 .TP .B %EI1% Attach first alarmed event image .INDENT 7.0 .IP \(bu 2 %EI1A% Attach first alarmed event analysis image .UNINDENT .UNINDENT .IP \(bu 2 .INDENT 2.0 .TP .B %EIM% Attach (first) event image with the highest score .INDENT 7.0 .IP \(bu 2 %EIMA% Attach (first) event analysis image with the highest score .UNINDENT .UNINDENT .IP \(bu 2 %EIMOD% Attach image containing object detection .IP \(bu 2 %EIMODG% Attach image containing object detection animated gif version .IP \(bu 2 .INDENT 2.0 .TP .B %EV% Attach event mpeg video .INDENT 7.0 .IP \(bu 2 %EVM% Attach event mpeg video in phone format .UNINDENT .UNINDENT .IP \(bu 2 %MN% Name of the monitor .IP \(bu 2 %MET% Total number of events for the monitor .IP \(bu 2 %MEH% Number of events for the monitor in the last hour .IP \(bu 2 %MED% Number of events for the monitor in the last day .IP \(bu 2 %MEW% Number of events for the monitor in the last week .IP \(bu 2 %MEM% Number of events for the monitor in the last month .IP \(bu 2 %MEA% Number of archived events for the monitor .IP \(bu 2 %MP% Path to the monitor window .IP \(bu 2 %MPS% Path to the monitor stream .IP \(bu 2 %MPI% Path to the monitor recent image .IP \(bu 2 %FN% Name of the current filter that matched .IP \(bu 2 %FP% Path to the current filter that matched .IP \(bu 2 %ZP% Path to your ZoneMinder console .UNINDENT .INDENT 0.0 .INDENT 3.5 Finally you can also specify a script which is run on each matched event. This script should be readable and executable by your web server user. It will get run once per event and the relative path to the directory containing the event in question. Normally this will be of the form / so from this path you can derive both the monitor name and event id and perform any action you wish. Note that arbitrary commands are not allowed to be specified in the filter, for security the only thing it may contain is the full path to an executable. What that contains is entirely up to you however. .sp Filtering is a powerful mechanism you can use to eliminate events that fit a certain pattern however in many cases modifying the zone settings will better address this. Where it really comes into its own is generally in applying time filters, so for instance events that happen during weekdays or at certain times of the day are highlighted, uploaded or deleted. Additionally using disk related terms in your filters means you can automatically create filters that delete the oldest events when your disk gets full. Be warned however that if you use this strategy then you should limit the returned results to the amount of events you want deleted in each pass until the disk usage is at an acceptable level. If you do not do this then the first pass when the disk usage is high will match, and then delete, all events unless you have used other criteria inside of limits. ZoneMinder ships with a sample filter already installed, though disabled. The PurgeWhenFull filter can be used to delete the oldest events when your disk starts filling up. To use it you should select and load it in the filter interface, modify it to your requirements, and then save it making you sure you check the ‘Delete all matches’ option. This will then run in the background and ensure that your disk does not fill up with events. .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Saving filters .sp When saving filters, if you want the filter to run in the background make sure you select the "Run filter in background" option. When checked, ZoneMinder will make sure the filter is checked regularly. For example, if you want to be notified of new events by email, you should make sure this is checked. Filters that are configured to run in the background have a "*" next to it. .SS How filters actually work .sp It is useful to know how filters actually work behind the scenes in ZoneMinder, in the event you find your filter not functioning as intended: .INDENT 0.0 .IP \(bu 2 Each filter set to run in the background will be run in it\(aqs own process called \fBzmfilter.pl\fP which retrieves filters from the Filters database table .IP \(bu 2 zmfilter.pl runs every FILTER_EXECUTE_INTERVAL seconds (default is 20s, can be changed in Options\->System) .IP \(bu 2 after each interval the filter will query the database and apply the action to each matching event. .IP \(bu 2 zmfilter.pl also reloads the filter every FILTER_RELOAD_DELAY seconds (default is 300s/5mins, can be changed in Options\->System) .IP \(bu 2 In previous versions of ZoneMinder filter changes would not take immediate effect, but now the web ui will start/stop/restart filters as appropriate upon editing a filter. .UNINDENT .SS Relative items in date strings .sp Relative items adjust a date (or the current date if none) forward or backward. The effects of relative items accumulate. Here are some examples: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C * 1 year * 1 year ago * 3 years * 2 days .ft P .fi .UNINDENT .UNINDENT .sp The unit of time displacement may be selected by the string ‘year’ or ‘month’ for moving by whole years or months. These are fuzzy units, as years and months are not all of equal duration. More precise units are ‘fortnight’ which is worth 14 days, ‘week’ worth 7 days, ‘day’ worth 24 hours, ‘hour’ worth 60 minutes, ‘minute’ or ‘min’ worth 60 seconds, and ‘second’ or ‘sec’ worth one second. An ‘s’ suffix on these units is accepted and ignored. .sp The unit of time may be preceded by a multiplier, given as an optionally signed number. Unsigned numbers are taken as positively signed. No number at all implies 1 for a multiplier. Following a relative item by the string ‘ago’ is equivalent to preceding the unit by a multiplier with value \-1. .sp The string ‘tomorrow’ is worth one day in the future (equivalent to ‘day’), the string ‘yesterday’ is worth one day in the past (equivalent to ‘day ago’). .sp The strings ‘now’ or ‘today’ are relative items corresponding to zero\-valued time displacement, these strings come from the fact a zero\-valued time displacement represents the current time when not otherwise changed by previous items. They may be used to stress other items, like in ‘12:00 today’. The string ‘this’ also has the meaning of a zero\-valued time displacement, but is preferred in date strings like ‘this thursday’. .sp When a relative item causes the resulting date to cross a boundary where the clocks were adjusted, typically for daylight saving time, the resulting date and time are adjusted accordingly. .sp The fuzz in units can cause problems with relative items. For example, ‘2003\-07\-31 \-1 month’ might evaluate to 2003\-07\-01, because 2003\-06\-31 is an invalid date. To determine the previous month more reliably, you can ask for the month before the 15th of the current month. For example: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C $ date \-R Thu, 31 Jul 2003 13:02:39 \-0700 $ date \-\-date=\(aq\-1 month\(aq +\(aqLast month was %B?\(aq Last month was July? $ date \-\-date="$(date +%Y\-%m\-15) \-1 month" +\(aqLast month was %B!\(aq Last month was June! .ft P .fi .UNINDENT .UNINDENT .sp As this applies to ZoneMinder filters, you might want to search for events in a period of time, or maybe for example create a purge filter that removes events older than 30 days. For the later you would want at least two lines in your filter. The first line should be: .INDENT 0.0 .INDENT 3.5 [ ] .UNINDENT .UNINDENT .sp as you don\(aqt want to delete your archived events. .sp Your second line to find events older than 30 days would be: .INDENT 0.0 .INDENT 3.5 [and \-30 days] .UNINDENT .UNINDENT .sp You use "less than" to indicate that you want to match events before the specified date, and you specify "\-30 days" to indicate a date 30 days before the time the filter is run. Of course you could use 30 days ago as well(?). .sp You should always test your filters before enabling any actions based on them to make sure they consistently return the results you want. You can use the submit button to see what events are returned by your query. .SS Caveat with Relative items .sp One thing to remember if you specify relative dates like "now" or "1 minute ago", etc, they are converted to a specific date and time by Zoneminder\(aqs filtering process (zmfilter.pl) when the filters are loaded. They are _NOT_ recomputed each time the filter runs. Filters are re\-loaded depending on the value specified by FILTER_RELOAD_DELAY variable in the Zoneminder Web Console\->Options\->System .sp This may cause confusion in the following cases, for example: Let\(aqs say a user specifies that he wants to be notified of events via email the moment the event "DateTime" is "less than" "now" as a filter criteria. When the filter first gets loaded by zmfilter.pl, this will translate to "Match events where Start Time < " + localtime() where local time is the time that is resolved when this filter gets loaded. Now till the time the filter gets reloaded after FILTER_RELOAD_DELAY seconds (which is usually set to 300 seconds, or 5 minutes), that time does not get recomputed, so the filter will not process any new events that occur after that computed date till another 5 minutes, which is probably not what you want. .SS Troubleshooting tips .sp If your filter is not working, here are some useful tips: .INDENT 0.0 .IP \(bu 2 Look at Info and Debug logs in Zoneminder .IP \(bu 2 Run \fBsudo zmfilter.pl \-f \fP from command line and see the log output .IP \(bu 2 Check how long your action is taking \- zmfilter.pl will wait for the action to complete before it checks again .IP \(bu 2 If you are using relative times like \(aqnow\(aq or \(aq1 year ago\(aq etc. remember that zmfilter converts that relative time to an absolute date only when it reloads filters, which is dictated by the FILTER_RELOAD_DELAY duration. So, for example, if you are wondering why your events are not being detected before intervals of 5 minutes and you have used such a relative condition, this is why .IP \(bu 2 In the event that you see your new filter is working great when you try it out from the Web Console (using the Submit or Execute button) but does not seem to work when its running in background mode, you might have just chanced upon a compatibility issue between how Perl and PHP translate free form text to dates/times. When you test it via the "Submit" or "Execute" button, you are invoking a PHP function for time conversion. When the filter runs in background mode, zmfilter.pl calls a perl equivalent function. In some cases, depending on the version of Perl and PHP you have, the results may vary. If you face this situation, the best thing to do is to run \fBsudo zmfilter.pl \-f \fP from a terminal to make sure the filter actually works in Perl as well. .UNINDENT .SS Viewing Events .sp From the monitor or filtered events listing you can now click on an event to view it in more detail. .sp This is an example view that shows events for a specific monitor: [image] .sp If you have streaming capability you will see a series of images that make up the event. Under that you should also see a progress bar. Depending on your configuration this will either be static or will be filled in to indicate how far through the event you are. By default this functionality is turned off for low bandwidth settings as the image delivery tends to not be able to keep up with real\-time and the progress bar cannot take this into account. Regardless of whether the progress bar updates, you can click on it to navigate to particular points in the events. .sp You will also see a link to allow you to view the still images themselves. If you don\(aqt have streaming then you will be taken directly to this page. The images themselves are thumbnail size and depending on the configuration and bandwidth you have chosen will either be the full images scaled in your browser of actual scaled images. If it is the latter, if you have low bandwidth for example, it may take a few seconds to generate the images. If thumbnail images are required to be generated, they will be kept and not re\-generated in future. Once the images appear you can mouse over them to get the image sequence number and the image score. .sp Here is an example of viewing an event stream: [image] .sp The image above shows a typical window for an event that was recorded as an MP4 video .SS Options .sp The various options you can specify are displayed in a tabbed dialog with each group of options displayed under a different heading. Each option is displayed with its name, a short description and the current value. You can also click on the ‘?’ link following each description to get a fuller explanation about each option. This is the same as you would get from zmconfig.pl. A number of option groups have a master option near the top which enables or disables the whole group so you should be aware of the state of this before modifying options and expecting them to make any difference. .sp If you have changed the value of an option you should then ‘save’ it. A number of the option groups will then prompt you to let you know that the option(s) you have changed will require a system restart. This is not done automatically in case you will be changing many values in the same session, however once you have made all of your changes you should restart ZoneMinder as soon as possible. The reason for this is that web and some scripts will pick up the new changes immediately but some of the daemons will still be using the old values and this can lead to data inconsistency or loss. .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 If you are looking for \fBOptions\->Paths\fP documentation, it was moved to a configuration file starting ZoneMinder 1.32. See here\&. .UNINDENT .UNINDENT .SS Options \- Display .sp This option screen allows user to select the skin for ZoneMinder. Currently available styles are: [image] .SS Options \- System .sp This screen allows the admin to configure various core operations of the system. .sp A partial screenshot is shown below: [image] .sp SKIN_DEFAULT \- ZoneMinder allows the use of many different web interfaces. This option allows you to set the default skin used by the website. Users can change their skin later, this merely sets the default. .sp CSS_DEFAULT \- ZoneMinder allows the use of many different web interfaces, and some skins allow the use of different set of CSS files to control the appearance. This option allows you to set the default set of css files used by the website. Users can change their css later, this merely sets the default. .sp LANG_DEFAULT \- ZoneMinder allows the web interface to use languages other than English if the appropriate language file has been created and is present. This option allows you to change the default language that is used from the shipped language, British English, to another language. .sp OPT_USE_AUTH \- ZoneMinder can run in two modes. The simplest is an entirely unauthenticated mode where anyone can access ZoneMinder and perform all tasks. This is most suitable for installations where the web server access is limited in other ways. The other mode enables user accounts with varying sets of permissions. Users must login or authenticate to access ZoneMinder and are limited by their defined permissions. Authenticated mode alone should not be relied up for securing Internet connected ZoneMinder. .sp AUTH_TYPE \- ZoneMinder can use two methods to authenticate users when running in authenticated mode. The first is a builtin method where ZoneMinder provides facilities for users to log in and maintains track of their identity. The second method allows interworking with other methods such as http basic authentication which passes an independently authenticated \(aqremote\(aq user via http. In this case ZoneMinder would use the supplied user without additional authentication provided such a user is configured in ZoneMinder. .sp AUTH_RELAY \- When ZoneMinder is running in authenticated mode it can pass user details between the web pages and the back end processes. There are two methods for doing this. This first is to use a time limited hashed string which contains no direct username or password details, the second method is to pass the username and passwords around in plaintext. This method is not recommend except where you do not have the md5 libraries available on your system or you have a completely isolated system with no external access. You can also switch off authentication relaying if your system is isolated in other ways. .sp AUTH_HASH_SECRET \- When ZoneMinder is running in hashed authenticated mode it is necessary to generate hashed strings containing encrypted sensitive information such as usernames and passwords. Although these strings are reasonably secure the addition of a random secret increases security substantially. Note that if you are using the new token based APIs, then this field is mandatory with ZM 1.34 and above. .sp AUTH_HASH_IPS \- When ZoneMinder is running in hashed authenticated mode it can optionally include the requesting IP address in the resultant hash. This adds an extra level of security as only requests from that address may use that authentication key. However in some circumstances, such as access over mobile networks, the requesting address can change for each request which will cause most requests to fail. This option allows you to control whether IP addresses are included in the authentication hash on your system. If you experience intermitent problems with authentication, switching this option off may help. It is recommended you keep this off if you use mobile apps like zmNinja over mobile carrier networks \- several APNs change the IP very frequently which may result in authentication failures. .sp AUTH_HASH_TTL \- Time before ZM auth will expire (does not apply to API tokens). The default has traditionally been 2 hours. A new hash will automatically be regenerated at half this value. .sp AUTH_HASH_LOGINS \- The normal process for logging into ZoneMinder is via the login screen with username and password. In some circumstances it may be desirable to allow access directly to one or more pages, for instance from a third party application. If this option is enabled then adding an \(aqauth\(aq parameter to any request will include a shortcut login bypassing the login screen, if not already logged in. As authentication hashes are time and, optionally, IP limited, this can allow short\-term access to ZoneMinder screens from other web pages etc. In order to use this, the calling application will have to generate the authentication hash itself and ensure it is valid. If you use this option you should ensure that you have modified the ZM_AUTH_HASH_SECRET to something unique to your system. .sp ENABLE_CSRF_MAGIC \- CSRF stands for Cross\-Site Request Forgery which, under specific circumstances, can allow an attacker to perform any task your ZoneMinder user account has permission to perform. To accomplish this, the attacker must write a very specific web page and get you to navigate to it, while you are logged into the ZoneMinder web console at the same time. Enabling ZM_ENABLE_CSRF_MAGIC will help mitigate these kinds of attacks. If you are using zmNinja and face access issues, you might try turning this off. .sp OPT_USE_API \- A global setting to enable/disable ZoneMinder APIs. If you are using mobile apps like zmNinja, this needs to be enabled .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 If you are using zmNinja along with authentication, please make sure \fBAUTH_HASH_LOGINS\fP is enabled, \fBOPT_USE_API\fP is elabled, \fBAUTH_RELAY\fP is set to hashed, \fBAUTH_HASH_IPS\fP is off and a valid \fBAUTH_HASHED_SECRET\fP is specified. .UNINDENT .UNINDENT .sp OPT_USE_LEGACY_AUTH \- Starting version 1.34.0, ZoneMinder uses a more secure Authentication mechanism using JWT tokens. Older versions used a less secure MD5 based auth hash. It is recommended you turn this off after you are sure you don\(aqt need it. If you are using a 3rd party app that relies on the older API auth mechanisms, you will have to update that app if you turn this off. Note that zmNinja 1.3.057 onwards supports the new token system. .sp OPT_USE_EVENT_NOTIFICATION \- zmeventnotification is a 3rd party event notification server that is used to get notifications for alarms detected by ZoneMinder in real time. zmNinja requires this server for push notifications to mobile phones. This option only enables the server if it is already installed. Please visit the \fI\%Event Notification Server project site\fP for installation instructions. .sp OPT_USE_GOOG_RECAPTCHA \- This option allows you to include a google reCaptcha validation at login. This means in addition to providing a valid username and password, you will also have to pass the reCaptcha test. Please note that enabling this option results in the zoneminder login page reaching out to google servers for captcha validation. Also please note that enabling this option may break 3rd party clients if they rely on web based logins (Note that zmNinja now uses the API based token method and will not be affected if reCAPTCHA is enabled). If you enable this, you also need to specify your site and secret key (please refer to context help in the ZoneMinder system screen). .sp SYSTEM_SHUTDOWN \- this option puts a poweroff icon in the header of the ZM UI for users with System privilege accessi. This icon will allow the user to shutdown the full system via the ZM UI. The system will need to have sudo installed and the following added to /etc/sudoers: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C www\-data ALL=NOPASSWD: /sbin/shutdown .ft P .fi .UNINDENT .UNINDENT .sp to perform the shutdown or reboot .sp OPT_FAST_DELETE \- Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files associated with it. When deleting events in the browser it can take a long time to remove all of this if youxr are trying to do a lot of events at once. \fBNOTE\fP: It is recommended that you keep this option OFF, unless you are running on an old or low\-powered system. .sp FILTER_RELOAD_DELAY \- ZoneMinder allows you to save filters to the database which allow events that match certain criteria to be emailed, deleted or uploaded to a remote machine etc. The zmfilter daemon loads these and does the actual operation. This option determines how often in seconds the filters are reloaded from the database to get the latest versions or new filters. If you don\(aqt change filters very often this value can be set to a large value. As of 1.34.0 filters should be automatically reloaded when saving a filter so this setting should have little effect. .sp FILTER_EXECUTE_INTERVAL \- ZoneMinder allows you to save filters to the database which allow events that match certain criteria to be emailed, deleted or uploaded to a remote machine etc. The zmfilter daemon loads these and does the actual operation. This option determines how often the filters are executed on the saved event in the database. If you want a rapid response to new events this should be a smaller value, however this may increase the overall load on the system and affect performance of other elements. .sp MAX_RESTART_DELAY \- The zmdc (zm daemon control) process controls when processeses are started or stopped and will attempt to restart any that fail. If a daemon fails frequently then a delay is introduced between each restart attempt. If the daemon stills fails then this delay is increased to prevent extra load being placed on the system by continual restarts. This option controls what this maximum delay is. .sp STATUS_UPDATE_INTERVAL \- The zmstats daemon performs various db queries related to collecting system statistics that may take a long time in the background. This option decides how often this update is scheduled. .sp WATCH_CHECK_INTERVAL \- The zmwatch daemon checks the image capture performance of the capture daemons to ensure that they have not locked up (rarely a sync error may occur which blocks indefinitely). This option determines how often the daemons are checked. .sp WATCH_MAX_DELAY \- The zmwatch daemon checks the image capture performance of the capture daemons to ensure that they have not locked up (rarely a sync error may occur which blocks indefinitely). This option determines the maximum delay to allow since the last captured frame. The daemon will be restarted if it has not captured any images after this period though the actual restart may take slightly longer in conjunction with the check interval value above. Please note that some cameras can take up to 30 seconds to get a valid image, so this setting should be larger than that. .sp RUN_AUDIT \- The zmaudit daemon exists to check that the saved information in the database and on the filesystem match and are consistent with each other. If an error occurs or if you are using \(aqfast deletes\(aq it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronise the two data stores. This option controls whether zmaudit is run in the background and performs these checks and fixes continuously. It is recommended you keep this \fBOFF\fP in most systems and run it manually if needed after a system crash. .sp AUDIT_CHECK_INTERVAL \- The zmaudit daemon exists to check that the saved information in the database and on the filesystem match and are consistent with each other. If an error occurs or if you are using \(aqfast deletes\(aq it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronise the two data stores. The default check interval of 900 seconds (15 minutes) is fine for most systems however if you have a very large number of events the process of scanning the database and filesystem may take a long time and impact performance. In this case you may prefer to make this interval much larger to reduce the impact on your system. This option determines how often these checks are performed. .sp AUDIT_MIN_AGE \- The zmaudit daemon exists to check that the saved information in the database and on the filesystem match and are consistent with each other. Event files or db records that are younger than this setting will not be deleted and a warning will be given .sp OPT_CONTROL \- ZoneMinder includes limited support for controllable cameras. A number of sample protocols are included and others can easily be added. If you wish to control your cameras via ZoneMinder then select this option otherwise if you only have static cameras or use other control methods then leave this option off. .sp OPT_TRIGGERS \- ZoneMinder can interact with external systems which prompt or cancel alarms. This is done via the zmtrigger.pl script. This option indicates whether you want to use these external triggers. Most people will say no here. .sp CHECK_FOR_UPDATES \- To save checking manually for each new version ZoneMinder can check with the zoneminder.com website to determine the most recent release. These checks are infrequent, about once per week, and no personal or system information is transmitted other than your current version number. If you do not wish these checks to take place or your ZoneMinder system has no internet access you can switch these check off with this configuration variable. .sp TELEMETRY_DATA \- Enable collection of usage information of the local system and send it to the ZoneMinder development team. This data will be used to determine things like who and where our customers are, how big their systems are, the underlying hardware and operating system, etc. This is being done for the sole purpose of creating a better product for our target audience. This script is intended to be completely transparent to the end user, and can be disabled from the web console under Options. For more details on what information we collect, please refer to Zoneminder\(aqs privacy statement (available in the contextual help of TELEMETRY_DATA on your installation). .sp UPDATE_CHECK_PROXY \- If you use a proxy to access the internet then ZoneMinder needs to know so it can access zoneminder.com to check for updates. If you do use a proxy enter the full proxy url here in the form of \fBhttp://:/\fP\&. .sp SHM_KEY \- ZoneMinder uses shared memory to speed up communication between modules. To identify the right area to use shared memory keys are used. This option controls what the base key is, each monitor will have it\(aqs Id or\(aqed with this to get the actual key used. You will not normally need to change this value unless it clashes with another instance of ZoneMinder on the same machine. Only the first four hex digits are used, the lower four will be masked out and ignored. .sp COOKIE_LIFETIME \- This will affect how long a session will be valid for since the last request. Keeping this short helps prevent session hijacking. Keeping it long allows you to stay logged in longer without refreshing the view. We recommend you keep this to the default of \fB3600\fP if you are not sure. .SS Options \- Config .sp The config screen allows the admin to change various configuration parameters related to image capturing and storage. .sp A partial screenshot is shown below: [image] .sp TIMESTAMP_ON_CAPTURE \- ZoneMinder can add a timestamp to images in two ways. The default method, when this option is set, is that each image is timestamped immediately when captured and so the image held in memory is marked right away. The second method does not timestamp the images until they are either saved as part of an event or accessed over the web. The timestamp used in both methods will contain the same time as this is preserved along with the image. The first method ensures that an image is timestamped regardless of any other circumstances but will result in all images being timestamped even those never saved or viewed. The second method necessitates that saved images are copied before being saved otherwise two timestamps perhaps at different scales may be applied. This has the (perhaps) desirable side effect that the timestamp is always applied at the same resolution so an image that has scaling applied will still have a legible and correctly scaled timestamp. .sp TIMESTAMP_CODE_CHAR \- There are a few codes one can use to tell ZoneMinder to insert data into the timestamp of each image. Traditionally, the percent (%) character has been used to identify these codes since the current character codes do not conflict with the strftime codes, which can also be used in the timestamp. While this works well for Linux, this does not work well for BSD operating systems. Changing the default character to something else, such as an exclamation point (!), resolves the issue. Note this only affects the timestamp codes built into ZoneMinder. It has no effect on the family of strftime codes one can use. .sp CPU_EXTENSIONS \- When advanced processor extensions such as SSE2 or SSSE3 are available, ZoneMinder can use them, which should increase performance and reduce system load. Enabling this option on processors that do not support the advanced processors extensions used by ZoneMinder is harmless and will have no effect. .sp FAST_IMAGE_BLENDS \- To detect alarms ZoneMinder needs to blend the captured image with the stored reference image to update it for comparison with the next image. The reference blend percentage specified for the monitor controls how much the new image affects the reference image. There are two methods that are available for this. If this option is set then fast calculation which does not use any multiplication or division is used. This calculation is extremely fast, however it limits the possible blend percentages to 50%, 25%, 12.5%, 6.25%, 3.25% and 1.5%. Any other blend percentage will be rounded to the nearest possible one. The alternative is to switch this option off and use standard blending instead, which is slower. .sp OPT_ADAPTIVE_SKIP \- In previous versions of ZoneMinder the analysis daemon would attempt to keep up with the capture daemon by processing the last captured frame on each pass. This would sometimes have the undesirable side\-effect of missing a chunk of the initial activity that caused the alarm because the pre\-alarm frames would all have to be written to disk and the database before processing the next frame, leading to some delay between the first and second event frames. Setting this option enables a newer adaptive algorithm where the analysis daemon attempts to process as many captured frames as possible, only skipping frames when in danger of the capture daemon overwriting yet to be processed frames. This skip is variable depending on the size of the ring buffer and the amount of space left in it. Enabling this option will give you much better coverage of the beginning of alarms whilst biasing out any skipped frames towards the middle or end of the event. However you should be aware that this will have the effect of making the analysis daemon run somewhat behind the capture daemon during events and for particularly fast rates of capture it is possible for the adaptive algorithm to be overwhelmed and not have time to react to a rapid build up of pending frames and thus for a buffer overrun condition to occur. .sp MAX_SUSPEND_TIME \- ZoneMinder allows monitors to have motion detection to be suspended, for instance while panning a camera. Ordinarily this relies on the operator resuming motion detection afterwards as failure to do so can leave a monitor in a permanently suspended state. This setting allows you to set a maximum time which a camera may be suspended for before it automatically resumes motion detection. This time can be extended by subsequent suspend indications after the first so continuous camera movement will also occur while the monitor is suspended. .sp STRICT_VIDEO_CONFIG \- With some video devices errors can be reported in setting the various video attributes when in fact the operation was successful. Switching this option off will still allow these errors to be reported but will not cause them to kill the video capture daemon. Note however that doing this will cause all errors to be ignored including those which are genuine and which may cause the video capture to not function correctly. Use this option with caution. .sp LD_PRELOAD \- Some older cameras require the use of the v4l1 compat library. This setting allows the setting of the path to the library, so that it can be loaded by zmdc.pl before launching zmc. .sp V4L_MULTI_BUFFER \- Performance when using Video 4 Linux devices is usually best if multiple buffers are used allowing the next image to be captured while the previous one is being processed. If you have multiple devices on a card sharing one input that requires switching then this approach can sometimes cause frames from one source to be mixed up with frames from another. Switching this option off prevents multi buffering resulting in slower but more stable image capture. This option is ignored for non\-local cameras or if only one input is present on a capture chip. This option addresses a similar problem to the ZM_CAPTURES_PER_FRAME option and you should normally change the value of only one of the options at a time. If you have different capture cards that need different values you can ovveride them in each individual monitor on the source page. .sp CAPTURES_PER_FRAME \- If you are using cameras attached to a video capture card which forces multiple inputs to share one capture chip, it can sometimes produce images with interlaced frames reversed resulting in poor image quality and a distinctive comb edge appearance. Increasing this setting allows you to force additional image captures before one is selected as the captured frame. This allows the capture hardware to \(aqsettle down\(aq and produce better quality images at the price of lesser capture rates. This option has no effect on (a) network cameras, or (b) where multiple inputs do not share a capture chip. This option addresses a similar problem to the ZM_V4L_MULTI_BUFFER option and you should normally change the value of only one of the options at a time. If you have different capture cards that need different values you can ovveride them in each individual monitor on the source page. .sp FORCED_ALARM_SCORE \- The \(aqzmu\(aq utility can be used to force an alarm on a monitor rather than rely on the motion detection algorithms. This option determines what score to give these alarms to distinguish them from regular ones. It must be 255 or less. .sp BULK_FRAME_INTERVAL \- Traditionally ZoneMinder writes an entry into the Frames database table for each frame that is captured and saved. This works well in motion detection scenarios but when in a DVR situation (\(aqRecord\(aq or \(aqMocord\(aq mode) this results in a huge number of frame writes and a lot of database and disk bandwidth for very little additional information. Setting this to a non\-zero value will enabled ZoneMinder to group these non\-alarm frames into one \(aqbulk\(aq frame entry which saves a lot of bandwidth and space. The only disadvantage of this is that timing information for individual frames is lost but in constant frame rate situations this is usually not significant. This setting is ignored in Modect mode and individual frames are still written if an alarm occurs in Mocord mode also. .sp EVENT_CLOSE_MODE \- When a monitor is running in a continuous recording mode (Record or Mocord) events are usually closed after a fixed period of time (the section length). However in Mocord mode it is possible that motion detection may occur near the end of a section. This option controls what happens when an alarm occurs in Mocord mode. The \(aqtime\(aq setting means that the event will be closed at the end of the section regardless of alarm activity. The \(aqidle\(aq setting means that the event will be closed at the end of the section if there is no alarm activity occurring at the time otherwise it will be closed once the alarm is over meaning the event may end up being longer than the normal section length. The \(aqalarm\(aq setting means that if an alarm occurs during the event, the event will be closed once the alarm is over regardless of when this occurs. This has the effect of limiting the number of alarms to one per event and the events will be shorter than the section length if an alarm has occurred. .sp WEIGHTED_ALARM_CENTRES \- ZoneMinder will always calculate the centre point of an alarm in a zone to give some indication of where on the screen it is. This can be used by the experimental motion tracking feature or your own custom extensions. In the alarmed or filtered pixels mode this is a simple midpoint between the extents of the detected pxiesl. However in the blob method this can instead be calculated using weighted pixel locations to give more accurate positioning for irregularly shaped blobs. This method, while more precise is also slower and so is turned off by default. .sp EVENT_IMAGE_DIGITS \- As event images are captured they are stored to the filesystem with a numerical index. By default this index has three digits so the numbers start 001, 002 etc. This works works for most scenarios as events with more than 999 frames are rarely captured. However if you have extremely long events and use external applications then you may wish to increase this to ensure correct sorting of images in listings etc. Warning, increasing this value on a live system may render existing events unviewable as the event will have been saved with the previous scheme. Decreasing this value should have no ill effects. .sp DEFAULT_ASPECT_RATIO \- When specifying the dimensions of monitors you can click a checkbox to ensure that the width stays in the correct ratio to the height, or vice versa. This setting allows you to indicate what the ratio of these settings should be. This should be specified in the format : and the default of 4:3 normally be acceptable but 11:9 is another common setting. If the checkbox is not clicked when specifying monitor dimensions this setting has no effect. .sp USER_SELF_EDIT \- Ordinarily only users with system edit privilege are able to change users details. Switching this option on allows ordinary users to change their passwords and their language settings .SS Options \- API .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 The ZoneMinder web interface does not use APIs and therefore, the tokens discussed here don\(aqt apply to the ZoneMinder UI. These only appy to apps that use the ZoneMinder API, like zmNinja. .UNINDENT .UNINDENT .sp The API option screen allows you enable/disable APIs on a per user basis. Furthermore, it also allows you to "revoke" tokens allotted to users. Starting ZoneMinder 1.34, the API ecosystem was overhauled and we now support JWT tokens with a concept of refresh tokens and access tokens. This allows for authentication without the need for sending passwords with each authentication request. For a more detailed understanding of how this works, please refer to /api\&. Over time, more control will be added to this screen. [image] .sp The "Revoke All Tokens" button can be used to globally invalidate access tokens for all users. If tokens are revoked, the user(s) will need to re\-authenticate with login and password. As of today, refresh tokens last for 24 hours and access tokens for 1 hour. .SS Options \- Servers .INDENT 0.0 .INDENT 3.5 .SS Todo .sp needs to be refreshed .UNINDENT .UNINDENT [image] .sp Servers tab is used for setting up multiple ZoneMinder servers sharing the same database and using a shared file share for all event data. To add a new server use the Add Server button. All that is required is a Name for the Server and Hostname. .sp To delete a server mark that server and click the Delete button. .sp Please note that all servers must have a functional web UI as the live view must come from the monitor\(aqs host server. .sp On each server, you will have to edit /etc/zm/zm.conf and set either ZM_SERVER_NAME= .SS Options \- Storage [image] .sp Storage tab is used to setup storage areas for recorded Events. To add a new area use the Add New Storage button. .sp By default storage on local drive is automatically set up on installion. When no area is specified events will be stored to a default built\-in location, which for example on Ubuntu is /var/cache/zoneminder/events. .sp Name: Storage names \- can be anything .sp Path: String path to storage location for example /media/Videos .sp Url: Used for S3 communication \- format \fBs3fs://ACCESS_KEY_ID:SECRET_ACCESS_KEY@s3.ca\-central\-1.amazonaws.com/bucket\-name/events\fP .INDENT 0.0 .TP .B Supported storage types: .INDENT 7.0 .IP \(bu 2 Local \- Local/mounted or network storage in local network .IP \(bu 2 s3fs \- S3 mounted drive .UNINDENT .UNINDENT .sp Some users may require more advanced storage such as S3 provided by amazon or others. .SS S3 storage setup .sp You must use s3fs to mount the S3 bucket in your fs tree. Telling ZoneMinder that the location is S3 will let it use more efficient code to send and delete the event data. The Do Deletes option tells ZoneMinder whether to actually perform delete operations when deleting events. S3fs systems often do deletes in a cron job or other background task and doing the deletes can overload an S3 system. .sp Refer to this guide for installation and configuration of s3fs \- \fI\%https://github.com/s3fs\-fuse/s3fs\-fuse\fP .sp Adding credentials to passwd_file .sp Create credentials file \fBecho ACCESS_KEY_ID:SECRET_ACCESS_KEY > /etc/passwd\-s3fs\fP .sp Set file permissions \fBchmod 600 /etc/passwd\-s3fs\fP .INDENT 0.0 .TP .B S3 mounting with fstab \fBs3fs#bucket_name /media/S3 fuse _netdev,allow_other,uid=33,url=https://s3.ca\-central\-1.amazonaws.com,passwd_file=/etc/passwd\-s3fs,umask=022 0 0\fP .TP .B Setting up storage. .INDENT 7.0 .IP 1. 3 Click on Add new Storage .IP 2. 3 Set path to \fB/media/S3\fP .IP 3. 3 Add Url \fBs3fs://username:password@s3.ca\-central\-1.amazonaws.com/bucket\-name/events\fP .IP 4. 3 Set type to s3fs .IP 5. 3 Save settings and monitor logs for errors .UNINDENT .UNINDENT .SS Options \- Web .sp This screen lets you customize several aspects of the web interface of ZoneMinder. A partial screenshot is shown below: [image] .sp WEB_TITLE \- The actual text that is shown on the login screen. It is possible that it also appears in other areas. .sp WEB_TITLE_PREFIX \- If you have more than one installation of ZoneMinder it can be helpful to display different titles for each one. Changing this option allows you to customise the window titles to include further information to aid identification. .sp HOME_URL \- the link to navigate to, when a user clicks on the top left title. .sp HOME_CONTENT \- The actual text that is shown on the top left corner. You can choose to leave it empty and put in a logo in a custom CSS as well. .sp WEB_CONSOLE_BANNER \- Allows the administrator to place an arbitrary text message near the top of the web console. This is useful for the developers to display a message which indicates the running instance of ZoneMinder is a development snapshot, but it can also be used for any other purpose as well. .sp WEB_EVENT_DISK_SPACE \- Adds another column to the listing of events showing the disk space used by the event. This will impart a small overhead as it will call du on the event directory. In practice this overhead is fairly small but may be noticeable on IO\-constrained systems. .sp WEB_RESIZE_CONSOLE \- Traditionally the main ZoneMinder web console window has resized itself to shrink to a size small enough to list only the monitors that are actually present. This is intended to make the window more unobtrusize but may not be to everyones tastes, especially if opened in a tab in browsers which support this kind if layout. Switch this option off to have the console window size left to the users preference. .sp WEB_ID_ON_CONSOLE \- Some find it useful to have the monitor id always visible on the console. This option will add a column listing it. Note that if it is disabled, you can always hover over the monitor to see the id as well. .sp WEB_POPUP_ON_ALARM \- When viewing a live monitor stream you can specify whether you want the window to pop to the front if an alarm occurs when the window is minimised or behind another window. This is most useful if your monitors are over doors for example when they can pop up if someone comes to the doorway. .sp WEB_SOUND_ON_ALARM \- When viewing a live monitor stream you can specify whether you want the window to play a sound to alert you if an alarm occurs. .sp WEB_ALARM_SOUND \- You can specify a sound file to play if an alarm occurs whilst you are watching a live monitor stream. So long as your browser understands the format it does not need to be any particular type. This file should be placed in the sounds directory defined earlier. .sp WEB_COMPACT_MONTAGE \- The montage view shows the output of all of your active monitors in one window. This include a small menu and status information for each one. This can increase the web traffic and make the window larger than may be desired. Setting this option on removes all this extraneous information and just displays the images. .sp WEB_EVENT_SORT_FIELD \- Events in lists can be initially ordered in any way you want. This option controls what field is used to sort them. You can modify this ordering from filters or by clicking on headings in the lists themselves. Bear in mind however that the \(aqPrev\(aq and \(aqNext\(aq links, when scrolling through events, relate to the ordering in the lists and so not always to time based ordering. .sp WEB_EVENT_SORT_ORDER \- Events in lists can be initially ordered in any way you want. This option controls what order (ascending or descending) is used to sort them. You can modify this ordering from filters or by clicking on headings in the lists themselves. Bear in mind however that the \(aqPrev\(aq and \(aqNext\(aq links, when scrolling through events, relate to the ordering in the lists and so not always to time based ordering. .sp WEB_EVENTS_PER_PAGE \- In the event list view you can either list all events or just a page at a time. This option controls how many events are listed per page in paged mode and how often to repeat the column headers in non\-paged mode. .sp WEB_LIST_THUMBS \- Ordinarily the event lists just display text details of the events to save space and time. By switching this option on you can also display small thumbnails to help you identify events of interest. The size of these thumbnails is controlled by the following two options. .sp WEB_LIST_THUMB_WIDTH \- This options controls the width of the thumbnail images that appear in the event lists. It should be fairly small to fit in with the rest of the table. If you prefer you can specify a height instead in the next option but you should only use one of the width or height and the other option should be set to zero. If both width and height are specified then width will be used and height ignored. .sp WEB_LIST_THUMB_HEIGHT \- This options controls the height of the thumbnail images that appear in the event lists. It should be fairly small to fit in with the rest of the table. If you prefer you can specify a width instead in the previous option but you should only use one of the width or height and the other option should be set to zero. If both width and height are specified then width will be used and height ignored. .sp WEB_USE_OBJECT_TAGS \- There are two methods of including media content in web pages. The most common way is use the EMBED tag which is able to give some indication of the type of content. However this is not a standard part of HTML. The official method is to use OBJECT tags which are able to give more information allowing the correct media viewers etc to be loaded. However these are less widely supported and content may be specifically tailored to a particular platform or player. This option controls whether media content is enclosed in EMBED tags only or whether, where appropriate, it is additionally wrapped in OBJECT tags. Currently OBJECT tags are only used in a limited number of circumstances but they may become more widespread in the future. It is suggested that you leave this option on unless you encounter problems playing some content. .sp WEB_XFRAME_WARN \- When creating a Web Site monitor, if the target web site has X\-Frame\-Options set to sameorigin in the header, the site will not display in ZoneMinder. This is a design feature in most modern browsers. When this condition occurs, ZoneMinder will write a warning to the log file. To get around this, one can install a browser plugin or extension to ignore X\-Frame headers, and then the page will display properly. Once the plugin or extension has ben installed, the end user may choose to turn this warning off .sp WEB_FILTER_SOURCE \- This option only affects monitors with a source type of Ffmpeg, Libvlc, or WebSite. This setting controls what information is displayed in the Source column on the console. Selecting \(aqNone\(aq will not filter anything. The entire source string will be displayed, which may contain sensitive information. Selecting \(aqNoCredentials\(aq will strip out usernames and passwords from the string. If there are any port numbers in the string and they are common (80, 554, etc) then those will be removed as well. Selecting \(aqHostname\(aq will filter out all information except for the hostname or ip address. When in doubt, stay with the default \(aqHostname\(aq. This feature uses the php function \(aqurl_parts\(aq to identify the various pieces of the url. If the url in question is unusual or not standard in some way, then filtering may not produce the desired results. .SS Options \- Images .sp This screen lets you control various image quality settings for live and recorded events. A partial screenshot is shown below: [image] .sp COLOUR_JPEG_FILES \- Cameras that capture in greyscale can write their captured images to jpeg files with a corresponding greyscale colour space. This saves a small amount of disk space over colour ones. However some tools such as ffmpeg either fail to work with this colour space or have to convert it beforehand. Setting this option to yes uses up a little more space but makes creation of MPEG files much faster. .sp ADD_JPEG_COMMENTS \- JPEG files may have a number of extra fields added to the file header. The comment field may have any kind of text added. This options allows you to have the same text that is used to annotate the image additionally included as a file header comment. If you archive event images to other locations this may help you locate images for particular events or times if you use software that can read comment headers. .sp JPEG_FILE_QUALITY \- When ZoneMinder detects an event it will save the images associated with that event to files. These files are in the JPEG format and can be viewed or streamed later. This option specifies what image quality should be used to save these files. A higher number means better quality but less compression so will take up more disk space and take longer to view over a slow connection. By contrast a low number means smaller, quicker to view, files but at the price of lower quality images. This setting applies to all images written except if the capture image has caused an alarm and the alarm file quality option is set at a higher value when that is used instead. .sp JPEG_ALARM_FILE_QUALITY \- This value is equivalent to the regular jpeg file quality setting above except that it only applies to images saved while in an alarm state and then only if this value is set to a higher quality setting than the ordinary file setting. If set to a lower value then it is ignored. Thus leaving it at the default of 0 effectively means to use the regular file quality setting for all saved images. This is to prevent accidentally saving important images at a worse quality setting. .sp JPEG_STREAM_QUALITY \- When viewing a \(aqlive\(aq stream for a monitor ZoneMinder will grab an image from the buffer and encode it into JPEG format before sending it. This option specifies what image quality should be used to encode these images. A higher number means better quality but less compression so will take longer to view over a slow connection. By contrast a low number means quicker to view images but at the price of lower quality images. This option does not apply when viewing events or still images as these are usually just read from disk and so will be encoded at the quality specified by the previous options. .sp MPEG_TIMED_FRAMES \- When using streamed MPEG based video, either for live monitor streams or events, ZoneMinder can send the streams in two ways. If this option is selected then the timestamp for each frame, taken from it\(aqs capture time, is included in the stream. This means that where the frame rate varies, for instance around an alarm, the stream will still maintain it\(aqs \(aqreal\(aq timing. If this option is not selected then an approximate frame rate is calculated and that is used to schedule frames instead. This option should be selected unless you encounter problems with your preferred streaming method. .sp MPEG_LIVE_FORMAT \- When using MPEG mode ZoneMinder can output live video. However what formats are handled by the browser varies greatly between machines. This option allows you to specify a video format using a file extension format, so you would just enter the extension of the file type you would like and the rest is determined from that. The default of \(aqasf\(aq works well under Windows with Windows Media Player but I\(aqm currently not sure what, if anything, works on a Linux platform. If you find out please let me know! If this option is left blank then live streams will revert to being in motion jpeg format. .sp MPEG_REPLAY_FORMAT \- When using MPEG mode ZoneMinder can replay events in encoded video format. However what formats are handled by the browser varies greatly between machines. This option allows you to specify a video format using a file extension format, so you would just enter the extension of the file type you would like and the rest is determined from that. The default of \(aqasf\(aq works well under Windows with Windows Media Player and \(aqmpg\(aq, or \(aqavi\(aq etc should work under Linux. If you know any more then please let me know! If this option is left blank then live streams will revert to being in motion jpeg format. .sp RAND_STREAM \- Some browsers can cache the streams used by ZoneMinder. In order to prevent this a harmless random string can be appended to the url to make each invocation of the stream appear unique. .sp OPT_CAMBOZOLA \- Cambozola is a handy low fat cheese flavoured Java applet that ZoneMinder uses to view image streams on browsers such as Internet Explorer that don\(aqt natively support this format. If you use this browser it is highly recommended to install this from \fI\%this link\fP however if it is not installed still images at a lower refresh rate can still be viewed. Note that practically, if you are not using an old version of IE, you will likely not need this. .sp PATH_CAMBOZOLA \- Leave this as \(aqcambozola.jar\(aq if cambozola is installed in the same directory as the ZoneMinder web client files. .sp RELOAD_CAMBOZOLA \- Cambozola allows for the viewing of streaming MJPEG however it caches the entire stream into cache space on the computer, setting this to a number > 0 will cause it to automatically reload after that many seconds to avoid filling up a hard drive. .sp OPT_FFMPEG \- ZoneMinder can optionally encode a series of video images into an MPEG encoded movie file for viewing, downloading or storage. This option allows you to specify whether you have the ffmpeg tools installed. Note that creating MPEG files can be fairly CPU and disk intensive and is not a required option as events can still be reviewed as video streams without it. .sp PATH_FFMPEG \- This path should point to where ffmpeg has been installed. .sp FFMPEG_INPUT_OPTIONS \- Ffmpeg can take many options on the command line to control the quality of video produced. This option allows you to specify your own set that apply to the input to ffmpeg (options that are given before the \-i option). Check the ffmpeg documentation for a full list of options which may be used here. .sp FFMPEG_OUTPUT_OPTIONS \- Ffmpeg can take many options on the command line to control the quality of video produced. This option allows you to specify your own set that apply to the output from ffmpeg (options that are given after the \-i option). Check the ffmpeg documentation for a full list of options which may be used here. The most common one will often be to force an output frame rate supported by the video encoder. .sp FFMPEG_FORMATS \- Ffmpeg can generate video in many different formats. This option allows you to list the ones you want to be able to select. As new formats are supported by ffmpeg you can add them here and be able to use them immediately. Adding a \(aq*\(aq after a format indicates that this will be the default format used for web video, adding \(aq**\(aq defines the default format for phone video. .sp FFMPEG_OPEN_TIMEOUT \- When Ffmpeg is opening a stream, it can take a long time before failing; certain circumstances even seem to be able to lock indefinitely. This option allows you to set a maximum time in seconds to pass before closing the stream and trying to reopen it again. .SS Options \- Logging .sp ZoneMinder has a powerful logging system. Understanding how to configure logging will help you track issues better. The logging options are accessed via \fBOptions\->Logging\fP\&. Let\(aqs follow along with an example. But before that, here is a basic construct of how logging works: .INDENT 0.0 .IP \(bu 2 Every component of ZoneMinder can generate different types of logs. Typically, \fBERR\fP refers to an error condition that you should look at (in some cases, they are transient during startup/shutdown in which case they are usually benign). \fBINF\fP logs are informational, \fBWAR\fP are warning logs that might have a potential to cause issues, whilst \fBDBG\fP are debug logs that are useful when you need to debug a problems .IP \(bu 2 You can decide where these logs are written. Typically ZoneMinder writes logs to multiple sources: * Syslog * Database * individual files belonging to each component inside the logging folder configured .UNINDENT .sp Consider for example, that you are trying to figure out why your "zmc 11" (i.e. Monitor 11) is not working. Obviously, you need to enable debug logs if you are not able to figure out what is going on with standard info logs. But you wouldn\(aqt want to write debug logs to the Database. Maybe, you also don\(aqt want it polluting your syslog and only want to write debug logs to the debug file of _that_ component (\fB/var/log/zm/zmc_m11.log\fP for example). That is where customizing your logging is useful. .SS Logging example [image] .sp In the example above, I\(aqve configured my logging as follows: .INDENT 0.0 .IP \(bu 2 I only want to log INFO level logs to Syslog .IP \(bu 2 I want DEBUG logs to only go to the conmponent file .IP \(bu 2 When it comes to my WEBLOG (what I see in the ZM Log window) and Database log, I only want FATAL logs (you may want to set this to WAR or INF) .IP \(bu 2 I don\(aqt want to save FFMPEG logs (this was a new feature added). FFMPEG generates a log of logs on its own that you should only enable if you are trying to figure out video playback related issues .IP \(bu 2 I have enabled LOG_DEBUG (unless you enable this, DEBUG logs won\(aqt be logged) .IP \(bu 2 The \fBLOG_DEBUG_TARGET\fP is useful if you don\(aqt want to enable DEBUG logs for every component. In this case, I\(aqm only interested in debugging the ZM Event Server and Monitor 11. Nothing else will have debug logs enabled. .IP \(bu 2 I prefer to keep the \fBLOG_DEBUG_FILE\fP to empty. This creates nicely separate files in my log folder with component names .UNINDENT .sp The other logging parameters are left to their defaults, like so: [image] .SS A more comprehensive explanation of the various log options .sp LOG_LEVEL_SYSLOG \- ZoneMinder logging is now more integrated between components and allows you to specify the destination for logging output and the individual levels for each. This option lets you control the level of logging output that goes to the system log. ZoneMinder binaries have always logged to the system log but now scripts and web logging is also included. To preserve the previous behaviour you should ensure this value is set to Info or Warning. This option controls the maximum level of logging that will be written, so Info includes Warnings and Errors etc. To disable entirely, set this option to None. You should use caution when setting this option to Debug as it can severely affect system performance. If you want debug you will also need to set a level and component below .sp LOG_LEVEL_FILE \- ZoneMinder logging is now more integrated between components and allows you to specify the destination for logging output and the individual levels for each. This option lets you control the level of logging output that goes to individual log files written by specific components. This is how logging worked previously and although useful for tracking down issues in specific components it also resulted in many disparate log files. To preserve this behaviour you should ensure this value is set to Info or Warning. This option controls the maximum level of logging that will be written, so Info includes Warnings and Errors etc. To disable entirely, set this option to None. You should use caution when setting this option to Debug as it can severely affect system performance though file output has less impact than the other options. If you want debug you will also need to set a level and component below .sp LOG_LEVEL_WEBLOG \- ZoneMinder logging is now more integrated between components and allows you to specify the destination for logging output and the individual levels for each. This option lets you control the level of logging output from the web interface that goes to the httpd error log. Note that only web logging from PHP and JavaScript files is included and so this option is really only useful for investigating specific issues with those components. This option controls the maximum level of logging that will be written, so Info includes Warnings and Errors etc. To disable entirely, set this option to None. You should use caution when setting this option to Debug as it can severely affect system performance. If you want debug you will also need to set a level and component below .sp LOG_LEVEL_DATABASE \- ZoneMinder logging is now more integrated between components and allows you to specify the destination for logging output and the individual levels for each. This option lets you control the level of logging output that is written to the database. This is a new option which can make viewing logging output easier and more intuitive and also makes it easier to get an overall impression of how the system is performing. If you have a large or very busy system then it is possible that use of this option may slow your system down if the table becomes very large. Ensure you use the LOG_DATABASE_LIMIT option to keep the table to a manageable size. This option controls the maximum level of logging that will be written, so Info includes Warnings and Errors etc. To disable entirely, set this option to None. You should use caution when setting this option to Debug as it can severely affect system performance. If you want debug you will also need to set a level and component below .sp LOG_DATABASE_LIMIT \- If you are using database logging then it is possible to quickly build up a large number of entries in the Logs table. This option allows you to specify how many of these entries are kept. If you set this option to a number greater than zero then that number is used to determine the maximum number of rows, less than or equal to zero indicates no limit and is not recommended. You can also set this value to time values such as \(aq day\(aq which will limit the log entries to those newer than that time. You can specify \(aqhour\(aq, \(aqday\(aq, \(aqweek\(aq, \(aqmonth\(aq and \(aqyear\(aq, note that the values should be singular (no \(aqs\(aq at the end). The Logs table is pruned periodically so it is possible for more than the expected number of rows to be present briefly in the meantime. .sp LOG_DEBUG" \- ZoneMinder components usually support debug logging available to help with diagnosing problems. Binary components have several levels of debug whereas more other components have only one. Normally this is disabled to minimise performance penalties and avoid filling logs too quickly. This option lets you switch on other options that allow you to configure additional debug information to be output. Components will pick up this instruction when they are restarted. .sp LOG_DEBUG_TARGET \- There are three scopes of debug available. Leaving this option blank means that all components will use extra debug (not recommended). Setting this option to \(aq_\(aq, e.g. _zmc, will limit extra debug to that component only. Setting this option to \(aq__\(aq, e.g. \(aq_zmc_m1\(aq will limit extra debug to that instance of the component only. This is ordinarily what you probably want to do. To debug scripts use their names without the .pl extension, e.g. \(aq_zmvideo\(aq and to debug issues with the web interface use \(aq_web\(aq. You can specify multiple targets by separating them with \(aq|\(aq characters. .sp LOG_DEBUG_LEVEL \- There are 9 levels of debug available, with higher numbers being more debug and level 0 being no debug. However not all levels are used by all components. Also if there is debug at a high level it is usually likely to be output at such a volume that it may obstruct normal operation. For this reason you should set the level carefully and cautiously until the degree of debug you wish to see is present. Scripts and the web interface only have one level so this is an on/off type option for them. .sp LOG_DEBUG_FILE \- This option allows you to specify a different target for debug output. All components have a default log file which will norally be in /tmp or /var/log and this is where debug will be written to if this value is empty. Adding a path here will temporarily redirect debug, and other logging output, to this file. This option is a simple filename and you are debugging several components then they will all try and write to the same file with undesirable consequences. Appending a \(aq+\(aq to the filename will cause the file to be created with a \(aq.\(aq suffix containing your process id. In this way debug from each run of a component is kept separate. This is the recommended setting as it will also prevent subsequent runs from overwriting the same log. You should ensure that permissions are set up to allow writing to the file and directory specified here. .sp LOG_CHECK_PERIOD \- When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. This option allows you to indicate what period of historical events are used in this calculation. This value is expressed in seconds and is ignored if LOG_LEVEL_DATABASE is set to None. .sp LOG_ALERT_WAR_COUNT \- When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. This option allows you to specify how many warnings must have occurred within the defined time period to generate an overall system alert state. A value of zero means warnings are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. .sp LOG_ALERT_ERR_COUNT \- When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. This option allows you to specify how many errors must have occurred within the defined time period to generate an overall system alert state. A value of zero means errors are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. .sp LOG_ALERT_FAT_COUNT \- When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. This option allows you to specify how many fatal errors (including panics) must have occurred within the defined time period to generate an overall system alert state. A value of zero means fatal errors are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. .sp LOG_ALARM_WAR_COUNT \- When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. This option allows you to specify how many warnings must have occurred within the defined time period to generate an overall system alarm state. A value of zero means warnings are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. .sp LOG_ALARM_ERR_COUNT \- When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. This option allows you to specify how many errors must have occurred within the defined time period to generate an overall system alarm state. A value of zero means errors are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. .sp LOG_ALARM_FAT_COUNT \- When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. This option allows you to specify how many fatal errors (including panics) must have occurred within the defined time period to generate an overall system alarm state. A value of zero means fatal errors are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. .sp RECORD_EVENT_STATS \- This version of ZoneMinder records detailed information about events in the Stats table. This can help in profiling what the optimum settings are for Zones though this is tricky at present. However in future releases this will be done more easily and intuitively, especially with a large sample of events. The default option of \(aqyes\(aq allows this information to be collected now in readiness for this but if you are concerned about performance you can switch this off in which case no Stats information will be saved. .sp RECORD_DIAG_IMAGES \- In addition to recording event statistics you can also record the intermediate diagnostic images that display the results of the various checks and processing that occur when trying to determine if an alarm event has taken place. There are several of these images generated for each frame and zone for each alarm or alert frame so this can have a massive impact on performance. Only switch this setting on for debug or analysis purposes and remember to switch it off again once no longer required. .sp RECORD_DIAG_IMAGES_FIFO \- Adds fifo options for diagnostic images for much lower impact diagnostics mode. Diagnostic images are only written when there is a client (like a web browser) listening for them. If there is no active client connected, FIFO images are skipped. Note that this feature also needs RECORD_DIAG_IMAGES to be on. \fBNote:\fP Your monitor needs to be in some recording mode (modect/mocord/etc.) .sp In addition to creating diagnostic images, this feature also adds a json stream for the detection data so you can see in real time the pixels or blobs detected for the motion. This allows for easy real time stream of both delta and reference images (as video streams) along with the detection numbers. .sp Once you turn on \fBRECORD_DIAG_IMAGES\fP and the new \fBRECORD_DIAG_IMAGES_FIFO\fP in the logging options you can then use 3 new remote stream urls: .INDENT 0.0 .IP \(bu 2 The delta images as an MJPEG stream (great to see where it is seeing the motion!): \fBhttps://portal/zm/cgi\-bin/nph\-zms?mode=jpeg&bitrate=2&buffer=0&source=fifo&format=delta&monitor=1&maxfps=5&\fP (change monitor, portal to your values. \fB\fP could be \fB&user=user&pass=pass\fP or \fB&auth=authval\fP or \fB&token=access_token\fP) .IP \(bu 2 The reference images as an MJPEG stream: \fBhttps://portal/zm/cgi\-bin/nph\-zms?mode=jpeg&bitrate=2&buffer=0&source=fifo&format=reference&monitor=1&maxfps=5&\fP (change monitor, portal to your values. \fB\fP could be \fB&user=user&pass=pass\fP or \fB&auth=authval\fP or \fB&token=access_token\fP) .IP \(bu 2 text json raw stream: \fBhttps://portal/zm/cgi\-bin/nph\-zms?&buffer=0&source=fifo&format=raw&monitor=1&\fP (change monitor, portal to your values, \fB\fP could be \fB&user=user&pass=pass\fP or \fB&auth=authval\fP or \fB&token=access_token\fP) .UNINDENT .sp This will output a text stream on the browser like: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C {"zone":5,"type":"ALRM","pixels":778661,"avg_diff":50} {"zone":5,"type":"FILT","pixels":762704} {"zone":5,"type":"RBLB","pixels":728102,"blobs":5} {"zone":5,"type":"FBLB","pixels":728021,"blobs":2} {"zone":6,"type":"ALRM","pixels":130844,"avg_diff":44} {"zone":6,"type":"FILT","pixels":128608} .ft P .fi .UNINDENT .UNINDENT .sp There are four types of events right now: Alarm (ALRM), Filter (FILT), Raw Blob (RBLB) and Filtered Blobs (FBLB) that correspond to those stages of analysis. It will show the number of pixels detected (along with average pixel difference against the threshold) and number of blobs at each stage. .sp For example, here is a delta image stream from one of my monitors showing in live mode: .sp \fBhttps://myserver/cgi\-bin/nph\-zms?mode=jpeg&bitrate=2&buffer=0&source=fifo&format=delta&monitor=8&maxfps=5&user=admin&pass=mypass\fP [image] .sp DUMP_CORES \- When an unrecoverable error occurs in a ZoneMinder binary process is has traditionally been trapped and the details written to logs to aid in remote analysis. However in some cases it is easier to diagnose the error if a core file, which is a memory dump of the process at the time of the error, is created. This can be interactively analysed in the debugger and may reveal more or better information than that available from the logs. This option is recommended for advanced users only otherwise leave at the default. Note using this option to trigger core files will mean that there will be no indication in the binary logs that a process has died, they will just stop, however the zmdc log will still contain an entry. Also note that you may have to explicitly enable core file creation on your system via the \(aqulimit \-c\(aq command or other means otherwise no file will be created regardless of the value of this option. .SS Options \- Network [image] .sp HTTP_VERSION \- ZoneMinder can communicate with network cameras using either of the HTTP/1.1 or HTTP/1.0 standard. A server will normally fall back to the version it supports with no problem so this should usually by left at the default. However it can be changed to HTTP/1.0 if necessary to resolve particular issues. .sp HTTP_UA \- When ZoneMinder communicates with remote cameras it will identify itself using this string and it\(aqs version number. This is normally sufficient, however if a particular cameras expects only to communicate with certain browsers then this can be changed to a different string identifying ZoneMinder as Internet Explorer or Netscape etc. .sp HTTP_TIMEOUT \- When retrieving remote images ZoneMinder will wait for this length of time before deciding that an image is not going to arrive and taking steps to retry. This timeout is in milliseconds (1000 per second) and will apply to each part of an image if it is not sent in one whole chunk. .sp MIN_STREAMING_PORT \- ZoneMinder supports a concept called multi\-port streaming. The core concept is that modern browsers like Chrome limit the number of simultaneous connections allowed from a specific domain (host name+port). In the case of Chrome this value is 6, which means you can\(aqt see more than 6 simultaneous streams from your server at one time. However, if the streams originated from different ports (or sub domains), this limitation would not apply. When you enable this option with a value (in this case, \fB30000\fP), the streams from the monitors will originate from \fB30000\fP plus the monitor ID, effectively overcoming this limitation. \fBNote that this also needs additional setup your webserver configuration before this can start to work\fP\&. Please refer to \fI\%this article\fP on how to setup multi port streaming on Apache. .sp MIN_RTP_PORT \- When ZoneMinder communicates with MPEG4 capable cameras using RTP with the unicast method it must open ports for the camera to connect back to for control and streaming purposes. This setting specifies the minimum port number that ZoneMinder will use. Ordinarily two adjacent ports are used for each camera, one for control packets and one for data packets. This port should be set to an even number, you may also need to open up a hole in your firewall to allow cameras to connect back if you wish to use unicasting. .sp MAX_RTP_PORT \- When ZoneMinder communicates with MPEG4 capable cameras using RTP with the unicast method it must open ports for the camera to connect back to for control and streaming purposes. This setting specifies the maximum port number that ZoneMinder will use. Ordinarily two adjacent ports are used for each camera, one for control packets and one for data packets. This port should be set to an even number, you may also need to open up a hole in your firewall to allow cameras to connect back if you wish to use unicasting. You should also ensure that you have opened up at least two ports for each monitor that will be connecting to unicasting network cameras. .SS Options \- Email [image] .sp OPT_EMAIL \- In ZoneMinder you can create event filters that specify whether events that match certain criteria should have their details emailed to you at a designated email address. This will allow you to be notified of events as soon as they occur and also to quickly view the events directly. This option specifies whether this functionality should be available. The email created with this option can be any size and is intended to be sent to a regular email reader rather than a mobile device. .sp EMAIL_ADDRESS \- This option is used to define the email address that any events that match the appropriate filters will be sent to. .sp EMAIL_SUBJECT \- This option is used to define the subject of the email that is sent for any events that match the appropriate filters. .sp EMAIL_BODY \- This option is used to define the content of the email that is sent for any events that match the appropriate filters. .INDENT 0.0 .INDENT 3.5 .SS Todo .sp check if any other tags have been added .UNINDENT .UNINDENT .TS center; |l|l|. _ T{ Token T} T{ Description T} _ T{ %EI% T} T{ Id of the event T} _ T{ %EN% T} T{ Name of the event T} _ T{ %EC% T} T{ Cause of the event T} _ T{ %ED% T} T{ Event description T} _ T{ %ET% T} T{ Time of the event T} _ T{ %EL% T} T{ Length of the event T} _ T{ %EF% T} T{ Number of frames in the event T} _ T{ %EFA% T} T{ Number of alarm frames in the event T} _ T{ %EST% T} T{ Total score of the event T} _ T{ %ESA% T} T{ Average score of the event T} _ T{ %ESM% T} T{ Maximum score of the event T} _ T{ %EP% T} T{ Path to the event T} _ T{ %EPS% T} T{ Path to the event stream T} _ T{ %EPI% T} T{ Path to the event images T} _ T{ %EPI1% T} T{ Path to the first alarmed event image T} _ T{ %EPIM% T} T{ Path to the (first) event image with the highest score T} _ T{ %EI1% T} T{ Attach first alarmed event image T} _ T{ %EIM% T} T{ Attach (first) event image with the highest score T} _ T{ %EIMOD% T} T{ Attach image of object detected. Requires event notfn. server setup and machine learning hooks T} _ T{ %EV% T} T{ Attach event mpeg video T} _ T{ %MN% T} T{ Name of the monitor T} _ T{ %MET% T} T{ Total number of events for the monitor T} _ T{ %MEH% T} T{ Number of events for the monitor in the last hour T} _ T{ %MED% T} T{ Number of events for the monitor in the last day T} _ T{ %MEW% T} T{ Number of events for the monitor in the last week T} _ T{ %MEM% T} T{ Number of events for the monitor in the last month T} _ T{ %MEA% T} T{ Number of archived events for the monitor T} _ T{ %MP% T} T{ Path to the monitor window T} _ T{ %MPS% T} T{ Path to the monitor stream T} _ T{ %MPI% T} T{ Path to the monitor recent image T} _ T{ %FN% T} T{ Name of the current filter that matched T} _ T{ %FP% T} T{ Path to the current filter that matched T} _ T{ %ZP% T} T{ Path to your ZoneMinder console T} _ .TE .sp OPT_MESSAGE \- In ZoneMinder you can create event filters that specify whether events that match certain criteria should have their details sent to you at a designated short message email address. This will allow you to be notified of events as soon as they occur. This option specifies whether this functionality should be available. The email created by this option will be brief and is intended to be sent to an SMS gateway or a minimal mail reader such as a mobile device or phone rather than a regular email reader. .sp MESSAGE_ADDRESS \- This option is used to define the short message email address that any events that match the appropriate filters will be sent to. .sp MESSAGE_SUBJECT \- This option is used to define the subject of the message that is sent for any events that match the appropriate filters. .sp MESSAGE_BODY \- This option is used to define the content of the message that is sent for any events that match the appropriate filters. .sp NEW_MAIL_MODULES \- Traditionally ZoneMinder has used the MIME::Entity perl module to construct and send notification emails and messages. Some people have reported problems with this module not being present at all or flexible enough for their needs. If you are one of those people this option allows you to select a new mailing method using MIME::Lite and Net::SMTP instead. This method was contributed by Ross Melin and should work for everyone but has not been extensively tested so currently is not selected by default. .sp EMAIL_HOST \- If you have chosen SMTP as the method by which to send notification emails or messages then this option allows you to choose which SMTP server to use to send them. The default of localhost may work if you have the sendmail, exim or a similar daemon running however you may wish to enter your ISP\(aqs SMTP mail server here. .sp FROM_EMAIL \- The emails or messages that will be sent to you informing you of events can appear to come from a designated email address to help you with mail filtering etc. An address of something like ZoneMinder@your.domain is recommended. .sp URL \- The emails or messages that will be sent to you informing you of events can include a link to the events themselves for easy viewing. If you intend to use this feature then set this option to the url of your installation as it would appear from where you read your email, e.g. \fBhttp://host.your.domain/zm/index.php\fP\&. .sp SSMTP_MAIL \- SSMTP is a lightweight and efficient method to send email. The SSMTP application is not installed by default. NEW_MAIL_MODULES must also be enabled. Please visit the ZoneMinder \fI\%SSMTP Wiki page\fP for setup and configuration help. .sp SSMTP_PATH \- The path to the SSMTP application. If path is not defined. Zoneminder will try to determine the path via shell command. Example path: /usr/sbin/ssmtp. .SS Options \- Upload .sp A partial screenshot of the upload options is shown below: [image] .sp OPT_UPLOAD \- In ZoneMinder you can create event filters that specify whether events that match certain criteria should be uploaded to a remote server for archiving. This option specifies whether this functionality should be available. .sp UPLOAD_ARCH_FORMAT \- Uploaded events may be stored in either .tar or .zip format, this option specifies which. Note that to use this you will need to have the Archive::Tar and/or Archive::Zip perl modules installed. .sp UPLOAD_ARCH_COMPRESS \- When the archive files are created they can be compressed. However in general since the images are compressed already this saves only a minimal amount of space versus utilising more CPU in their creation. Only enable if you have CPU to waste and are limited in disk space on your remote server or bandwidth. .sp UPLOAD_ARCH_ANALYSE \- When the archive files are created they can contain either just the captured frames or both the captured frames and, for frames that caused an alarm, the analysed image with the changed area highlighted. This option controls files are included. Only include analysed frames if you have a high bandwidth connection to the remote server or if you need help in figuring out what caused an alarm in the first place as archives with these files in can be considerably larger. .sp UPLOAD_PROTOCOL \- ZoneMinder can upload events to a remote server using either FTP or SFTP. Regular FTP is widely supported but not necessarily very secure whereas SFTP (Secure FTP) runs over an ssh connection and so is encrypted and uses regular ssh ports. Note that to use this you will need to have the appropriate perl module, either Net::FTP or Net::SFTP installed depending on your choice. .sp UPLOAD_HOST \- You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the name, or ip address, of the server to use. .sp UPLOAD_PORT \- You can use filters to instruct ZoneMinder to upload events to a remote server. If you are using the SFTP protocol then this option allows you to specify a particular port to use for connection. If this option is left blank then the default, port 22, is used. This option is ignored for FTP uploads. .sp UPLOAD_USER \- You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the username that ZoneMinder should use to log in for transfer. .sp UPLOAD_PASS \- You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the password that ZoneMinder should use to log in for transfer. If you are using certificate based logins for SFTP servers you can leave this option blank. .sp UPLOAD_LOC_DIR \- You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the local directory that ZoneMinder should use for temporary upload files. These are files that are created from events, uploaded and then deleted. .sp UPLOAD_REM_DIR \- You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the remote directory that ZoneMinder should use to upload event files to. .sp UPLOAD_TIMEOUT \- You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the maximum inactivity timeout (in seconds) that should be tolerated before ZoneMinder determines that the transfer has failed and closes down the connection. .sp UPLOAD_STRICT \- You can require SFTP uploads to verify the host key of the remote server for protection against man\-in\-the\-middle attacks. You will need to add the server\(aqs key to the known_hosts file. On most systems, this will be \fB~/.ssh/known_hosts\fP, where \fB~\fP is the home directory of the web server running ZoneMinder. .sp UPLOAD_FTP_PASSIVE \- You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates that ftp transfers should be done in passive mode. This uses a single connection for all ftp activity and, whilst slower than active transfers, is more robust and likely to work from behind filewalls. This option is ignored for SFTP transfers. .sp UPLOAD_DEBUG \- You can use filters to instruct ZoneMinder to upload events to a remote server. If you are having (or expecting) troubles with uploading events then setting this to \(aqyes\(aq permits additional information to be generated by the underlying transfer modules and included in the logs. .SS Options \- X10 [image] .sp OPT_X10 \- If you have an X10 Home Automation setup in your home you can use ZoneMinder to initiate or react to X10 signals if your computer has the appropriate interface controller. This option indicates whether X10 options will be available in the browser client. .sp X10_DEVICE \- If you have an X10 controller device (e.g. XM10U) connected to your computer this option details which port it is connected on, the default of /dev/ttyS0 maps to serial or com port 1. .sp X10_HOUSE_CODE \- X10 devices are grouped together by identifying them as all belonging to one House Code. This option details what that is. It should be a single letter between A and P. .sp X10_DB_RELOAD_INTERVAL \- The zmx10 daemon periodically checks the database to find out what X10 events trigger, or result from, alarms. This option determines how frequently this check occurs, unless you change this area frequently this can be a fairly large value. .SS Options \- High, Medium and Low B/W .sp There are a number of options that are grouped into bandwidth categories, this allows you to configure the ZoneMinder client to work optimally over the various access methods you might to access the client. You may want to use different modes depending on your network to preserve bandwidth. .sp A partial screenshot is shown below: [image] .sp The following options are available in H, M and L options. These 3 groups control what happens when the client is running in \(aqhigh\(aq, \(aqmedium\(aq and \(aqlow\(aq bandwidth mode respectively. In most cases the default values will be suitable as a starting point. .sp High \- You should set these options for when accessing the ZoneMinder client over a local network or high speed link. .sp Medium \- You should set these options for when accessing the ZoneMinder client over a slower cable or DSL link. .sp Slow \- You should set these options for when accessing Zoneminder client over a slow network link. .sp WEB_H_REFRESH_MAIN, WEB_M_REFRESH_MAIN, WEB_L_REFRESH_MAIN \- How often (in seconds) the main console window should refresh itself. The main console window lists a general status and the event totals for all monitors. This is not a trivial task and should not be repeated too frequently or it may affect the performance of the rest of the system. .sp WEB_H_REFRESH_CYCLE, WEB_M_REFRESH_CYCLE, WEB_L_REFRESH_CYCLE \- How often (in seconds) the cycle watch window swaps to the next monitor. The cycle watch window is a method of continuously cycling between images from all of your monitors. This option determines how often to refresh with a new image. .sp WEB_H_REFRESH_IMAGE, WEB_M_REFRESH_IMAGE, WEB_L_REFRESH_IMAGE \- How often (in seconds) the watched image is refreshed (if not streaming). The live images from a monitor can be viewed in either streamed or stills mode. This option determines how often a stills image is refreshed, it has no effect if streaming is selected. .sp WEB_H_REFRESH_STATUS, WEB_M_REFRESH_STATUS, WEB_L_REFRESH_STATUS \- How often (in seconds) the status refreshes itself in the watch window. The monitor window is actually made from several frames. The one in the middle merely contains a monitor status which needs to refresh fairly frequently to give a true indication. This option determines that frequency. .sp WEB_H_REFRESH_EVENTS, WEB_M_REFRESH_EVENTS, WEB_L_REFRESH_EVENTS \- How often (in seconds) the event listing is refreshed in the watch window. The monitor window is actually made from several frames. The lower framme contains a listing of the last few events for easy access. This option determines how often this is refreshed. .sp WEB_H_CAN_STREAM, WEB_M_CAN_STREAM, WEB_L_CAN_STREAM \- If you know that your browser can handle image streams of the type \(aqmultipart/x\-mixed\-replace\(aq but ZoneMinder does not detect this correctly you can set this option to ensure that the stream is delivered with or without the use of the Cambozola plugin. Selecting \(aqyes\(aq will tell ZoneMinder that your browser can handle the streams nativ .sp WEB_H_STREAM_METHOD, WEB_M_STREAM_METHOD, WEB_H_STREAM_METHOD \- ZoneMinder can be configured to use either mpeg encoded video or a series or still jpeg images when sending video streams. This option defines which is used. If you choose mpeg you should ensure that you have the appropriate plugins available on your browser whereas choosing jpeg will work natively on Mozilla and related browsers and with a Java applet on Internet Explorer .sp WEB_H_DEFAULT_SCALE, WEB_M_DEFAULT_SCALE, WEB_L_DEFAULT_SCALE \- Normally ZoneMinder will display \(aqlive\(aq or \(aqevent\(aq streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc. .sp WEB_H_DEFAULT_RATE, WEB_M_DEFAULT_RATE, WEB_L_DEFAULT_RATE \- Normally ZoneMinder will display \(aqevent\(aq streams at their native rate, i.e. as close to real\-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc. .sp WEB_H_VIDEO_BITRATE, WEB_M_VIDEO_BITRATE, WEB_L_VIDEO_BITRATE \- When encoding real video via the ffmpeg library a bit rate can be specified which roughly corresponds to the available bandwidth used for the stream. This setting effectively corresponds to a \(aqquality\(aq setting for the video. A low value will result in a blocky image whereas a high value will produce a clearer view. Note that this setting does not control the frame rate of the video however the quality of the video produced is affected both by this setting and the frame rate that the video is produced at. A higher frame rate at a particular bit rate result in individual frames being at a lower quality. .sp WEB_H_VIDEO_MAXFPS, WEB_M_VIDEO_MAXFPS, WEB_L_VIDEO_MAXFPS \- When using streamed video the main control is the bitrate which determines how much data can be transmitted. However a lower bitrate at high frame rates results in a lower quality image. This option allows you to limit the maximum frame rate to ensure that video quality is maintained. An additional advantage is that encoding video at high frame rates is a processor intensive task when for the most part a very high frame rate offers little perceptible improvement over one that has a more manageable resource requirement. Note, this option is implemented as a cap beyond which binary reduction takes place. So if you have a device capturing at 15fps and set this option to 10fps then the video is not produced at 10fps, but rather at 7.5fps (15 divided by 2) as the final frame rate must be the original divided by a power of 2. .sp WEB_H_SCALE_THUMBS, WEB_M_SCALE_THUMBS, WEB_L_SCALE_THUMBS \- If unset, this option sends the whole image to the browser which resizes it in the window. If set the image is scaled down on the server before sending a reduced size image to the browser to conserve bandwidth at the cost of cpu on the server. Note that ZM can only perform the resizing if the appropriate PHP graphics functionality is installed. This is usually available in the php\-gd package. .sp WEB_H_EVENTS_VIEW, WEB_M_EVENTS_VIEW, WEB_L_EVENTS_VIEW \- Stored events can be viewed in either an events list format or in a timeline based one. This option sets the default view that will be used. Choosing one view here does not prevent the other view being used as it will always be selectable from whichever view is currently being used. .sp WEB_H_SHOW_PROGRESS, WEB_M_SHOW_PROGRESS, WEB_L_SHOW_PROGRESS \- When viewing events an event navigation panel and progress bar is shown below the event itself. This allows you to jump to specific points in the event, but can can also dynamically update to display the current progress of the event replay itself. This progress is calculated from the actual event duration and is not directly linked to the replay itself, so on limited bandwidth connections may be out of step with the replay. This option allows you to turn off the progress display, whilst still keeping the navigation aspect, where bandwidth prevents it functioning effectively. .sp WEB_H_AJAX_TIMEOUT, WEB_M_AJAX_TIMEOUT, WEB_L_AJAX_TIMEOUT \- The newer versions of the live feed and event views use Ajax to request information from the server and populate the views dynamically. This option allows you to specify a timeout if required after which requests are abandoned. A timeout may be necessary if requests would overwise hang such as on a slow connection. This would tend to consume a lot of browser memory and make the interface unresponsive. Ordinarily no requests should timeout so this setting should be set to a value greater than the slowest expected response. This value is in milliseconds but if set to zero then no timeout will be used. .SS Options \- Users [image] .sp In this section you will see a list of the current users defined on the system. You can also add or delete users from here. It is recommended you do not delete the admin user unless you have created another fully privileged user to take over the same role. Each user is defined with a name and password (which is hidden) as well as an enabled setting which you can use to temporarily enable or disable users, for example a guest user for limited time access. As well as that there is a language setting that allows you to define user specific languages. Setting a language here that is different than the system language will mean that when that user logs in they will have the web interface presented in their own language rather than the system default, if it is available. .sp This screen allows you to configure various permissions on a per user basis. The permissions as of today are defined as follows: .INDENT 0.0 .IP \(bu 2 Streams \- None: the user has no access to view live streams from the defined monitors \- View: the user has access to only view live streams from the defined monitors \- Edit: the user has access to edit live streams from the defined monitors .IP \(bu 2 Events \- These permissions relate to the ability to view events from the defined monitors. The permission levels are the same as the Streams permissions, except that they apply to recorded events .IP \(bu 2 Control \- These permissions relate to the ability to control Pan/Tilt/Zoom (PTZ) of the defined monitors. The permission levels are the same as the Streams permissions, except that they apply to PTZ .IP \(bu 2 Monitors \- specifies whether a user can see the current monitor settings and change them. The permissions levels are the same as the Streams permissions, except that they apply to monitor settings .IP \(bu 2 Groups \- specifies whether a user can see monitor groups and change them. The permissions levels are the same as the Streams permissions, except that they apply to groups .IP \(bu 2 System \- Determines whether a user can view or modify the system settings as a whole, such as options and users or controlling the running of the system as a whole. The permissions levels are the same as the Streams permissions, except that they apply to groups. .sp \fBNOTE:\fP .INDENT 2.0 .INDENT 3.5 if you are using zmNinja, users are required to have \(aqView\(aq access to system because multi\-server information is only available as part of this permission .UNINDENT .UNINDENT .IP \(bu 2 Bandwidth \- Specifies the maximum bandwidth that this user can configure (Low, Medium or High) .IP \(bu 2 API enabled \- Specifies if the ZoneMinder API is enabled for this user (needs to be on, if you are using a mobile app such as zmNinja) .UNINDENT .sp Finally, you can specify a list of monitors this user is allowed to access using the \(aqRestriced Monitors\(aq list. You can select multiple monitors by shift+click(or command+click) on multiple monitors. If a user with ‘Monitors’ edit privileges is limited to specific monitors here they will not be able to add or delete monitors but only change the details of those they have access to. If a user has ‘System’ privileges then the ‘Monitors Ids’ setting is ignored and has no effect. .sp Here is an example of a restricted user, for example: [image] .sp This user "home" is enabled, can view live streams and events, but only from "DoorBell" and "DeckCamera". This user also cannot control PTZ. .SS Camera Control .sp ZoneMinder provides the facility to control cameras from the web interface and to some extent automatically. Pan/Tilt/Zoom (PTZ) cameras have a wide range of capabilities and use a large number of different protocols making any kind of generic control solution potentially very difficult. To address this ZoneMinder uses two key approaches to get around this problem. .INDENT 0.0 .TP .B Definition of Capabilities For each camera model you use, an entry in the camera capabilities table must be created. These indicate what functions the camera supports and ensure that the interface presents only those capabilities that the camera supports. There are a very large number of capabilities that may be supported and it is very important that the entries in this table reflect the actual abilities of the camera. A small number of example capabilities are included in ZoneMinder, these can be used ‘as is’ or modified. .TP .B Control Scripts ZoneMinder itself does not generally provide the ability to send commands to cameras or receive responses. What it does is mediate motion requests from the web interface into a standard set of commands which are passed to a script defined in the control capability. Example scripts are provided in ZoneMinder which support a number of serial or network protocols but it is likely that for many cameras new scripts will have to be created. These can be modelled on the example ones, or if control commands already exist from other applications, then the script can just act as a ‘glue’ layer between ZoneMinder and those commands. .UNINDENT .sp It should be emphasised that the control and capability elements of ZoneMinder are not intended to be able to support every camera out of the box. Some degree of development is likely to be required for many cameras. .SS Controlling Monitors .sp If you have defined your system as having controllable monitors and you are looking at a monitor that is configured for control, then clicking on the ‘Control’ link along the top of the window will change the short event listing area to a control area. The capabilities you have defined earlier determine exactly what is displayed in this window. Generally you will have a Pan/Tilt control area along with one or subsidiary areas such as zoom or focus control to the side. If you have preset support then these will be near the bottom of the window. The normal method of controlling the monitor is by clicking on the appropriate graphics which then send a command via the control script to the camera itself. This may sometimes take a noticeable delay before the camera responds. .sp It is usually the case that the control arrows are sensitive to where you click on them. If you have a camera that allows different speeds to be used for panning or zooming etc then clicking near the point of the arrow will invoke the faster speed whilst clicking near the base of the arrow will be slower. If you have defined continuous motion then ongoing activities can be stopped by clicking on the area between the arrows, which will either be a graphic in the case of pan/tilt controls or a word in the case of zoom and focus controls etc. .sp Certain control capabilities such as mapped motion allow direct control by clicking on the image itself when used in browsers which support streamed images directly. Used in this way you can just click on the area of the image that interests you and the camera will centre on that spot. You can also use direct image control for relative motion when the area of the image you click on defines the direction and the distance away from the centre of the image determines the speed. As it is not always very easy to estimate direction near the centre of the image, the active area does not start until a short distance away from the centre, resulting in a ‘dead’ zone in the middle of the image. .SS Control Flow .sp Having a basic understanding of how camera control works in ZoneMinder will go a long way in debugging issues in the future. It is important to note that many of the \(aqcamera control\(aq scripts are user contributed and it is entirely possible that they break in a future version upgrade. .INDENT 0.0 .IP \(bu 2 ZoneMinder relies on \(aqcontrol protocols\(aq for specific camera models. These \(aqcontrol\(aq protocols are nothing but perl packages located in \fB/usr/share/perl5/ZoneMinder/Control/\fP (in Ubuntu distributions) that are invoked by ZoneMinder when you invoke a PTZ operation .IP \(bu 2 When you associate a \(aqprotocol\(aq for PTZ for a camera, you are effectively letting ZoneMinder know where to locate the perl file that will eventually control the camera movement .IP \(bu 2 Let\(aqs for example, assume that you are configuring a Foscam 9831W camera and have associated the \(aq9831w\(aq protocol to that camara. This basically means when you move the camera via ZoneMinder, it will pass on the movements to FI9831w.pm in \fB/usr/share/perl5/ZoneMinder/Control/\fP .IP \(bu 2 ZoneMinder also maintains protocol configuration parameters in a table called \fBControls\fP in the DB. This table is used to store parameters like whether the camera supports continuous move, zoom etc. .IP \(bu 2 The \fBControls\fP table is used by ZoneMinder to build its PTZ web interface. For example, an FI9831W camera does not support Zoom \-\-> so when you open the PTZ interface of ZoneMinder via the Web Console and navigate to the FI9831W camera, the Zoom option will not be shown. It knows not to show this because the \fBControl\fP table entry for FI9831W specifies it does not support Zoom. Note that you edit these parameters via Source\->Control\->Control Type\->Edit in the web console .IP \(bu 2 If you ever look at any of the control protocol files, you will notice it has functions like \fBmoveRelUp\fP or \fBmoveConLeft\fP etc. \-> these are the functions that eventually get invoked to move the camera around and it is expected that contributors who implement missing camera profiles fill in these functions with the appropriate camera specific commands. This way, the core ZoneMinder code does not need to worry about camera specific commands. All it needs to know is the features of a camera and accordinfly invoke abstract commands in the protocol perl file and it is the responsibility of the perl file for that camera to implement the specifics. So, if you are facing problems with PTZ not working, these protocol files are what you should be debugging. .UNINDENT .SS Control Capabilities .sp If you have a camera that supports PTZ controls and wish to use it with ZoneMinder then the first thing you need to do is ensure that it has an accurate entry in the capabilities table. To do this you need to go to the Control tab of the Monitor configuration dialog and select ‘Edit’ where it is listed by the Control Type selection box. This will bring up a new window which lists, with a brief summary, the existing capabilities. To edit an existing capability to modify select the Id or Name of the capability in question, or click on the Add button to add a new control capability. Either of these approaches will create a new window, in familiar style, with tabs along the top and forms fields below. In the case of the capabilities table there are a large number of settings and tabs, the mean and use of these are briefly explained below. .SS Main Tab .INDENT 0.0 .TP .B Name This is the name of the control capability, it will usually make sense to name capabilities after the camera model or protocol being used. .TP .B Type Whether the capability uses a local (usually serial) or network control protocol. .TP .B Command This is the full path to a script or application that will map the standard set of ZoneMinder control commands to equivalent control protocol command. This may be one of the shipped example zmcontrol\-*.pl scripts or something else entirely. .TP .B Can Wake This is the first of the actual capability definitions. Checking this box indicates that a protocol command exists to wake up the camera from a sleeping state. .TP .B Can Sleep The camera can be put to sleep. .TP .B Can Reset The camera can be reset to a previously defined state. .UNINDENT .SS Move Tab .INDENT 0.0 .TP .B Can Move The camera is able move, i.e. pan or tilt. .TP .B Can Move Diagonally The camera can move diagonally. Some devices can move only vertically or horizontally at a time. .TP .B Can Move Mapped The camera is able internally map a point on an image to a precise degree of motion to centre that point in the image. .TP .B Can Move Absolute The camera can move to an absolute location. .TP .B Can Move Relative The camera can more to a relative location, e.g. 7 point left or up. .TP .B Can Move Continuous The camera can move continuously in a defined direction until told to stop or the movement limits are reached, e.g. left. .UNINDENT .SS Pan Tab .INDENT 0.0 .TP .B Can Pan The camera can pan, or move horizontally. .TP .B Min/Max Pan Range If the camera supports absolute motion this is the minimum and maximum pan co\-ordinates that may be specified, e.g. \-100 to 100. .TP .B Min/Man Pan Step If the camera supports relative motion, this is the minimum and maximum amount of movement that can be specified. .TP .B Has Pan Speed The camera supports specification of pan speeds. .TP .B Min/Max Pan Speed The minimum and maximum pan speed supported. .TP .B Has Turbo Pan The camera supports an additional turbo pan speed. .TP .B Turbo Pan Speed The actual turbo pan speed. .UNINDENT .SS Tilt Tab .sp Definition of Tilt capabilities, fields as for ‘Pan’ tab. .SS Zoom Tab .INDENT 0.0 .TP .B Can Zoom The camera can zoom. .TP .B Can Zoom Absolute The camera can zoom to an absolute position. .TP .B Can Zoom Relative The camera can zoom to a relative position. .TP .B Can Zoom Continuous The camera can zoom continuously in or out until told to stop or the zoom limits are reached. .TP .B Min/Max Zoom Range If the camera supports absolute zoom this is the minimum and maximum zoom amounts that may be specified. .TP .B Min/Man Zoom Step If the camera supports relative zoom, this is the minimum and maximum amount of zoom change that can be specified. .TP .B Has Zoom Speed The camera supports specification of zoom speed. .TP .B Min/Max Zoom Speed The minimum and maximum zoom speed supported. .UNINDENT .SS Focus Tab .sp Definition of Focus capabilities, fields as for ‘Zoom’ tab, but with the following additional capability. .INDENT 0.0 .TP .B Can Auto Focus The camera can focus automatically. .UNINDENT .SS White Tab .sp Definition of White Balance capabilities, fields as for ‘Focus’ tab. .SS Iris Tab .sp Definition of Iris Control capabilities, fields as for ‘Focus’ tab. .SS Presets Tab .INDENT 0.0 .TP .B Has Presets The camera supports preset positions. .TP .B Num Presets How many presets the camera supports. If the camera supports a huge number of presets then it makes sense to specify a more reasonable number here, 20 or less is recommended. .TP .B Has Home Preset The camera has a defined ‘home’ position, usually in the mid point of its range. .TP .B Can Set Presets The camera supports setting preset locations via its control protocol. .UNINDENT .SS Control Scripts .sp The second key element to controlling cameras with ZoneMinder is ensuring that an appropriate control script or application is present. A small number of sample scripts are included with ZoneMinder and can be used directly or as the basis for development. Control scripts are run atomically, that is to say that one requested action from the web interface results in one execution of the script and no state information is maintained. If your protocol requires state information to be preserved then you should ensure that your scripts do this as ZoneMinder has no concept of the state of the camera in control terms. .sp If you are writing a new control script then you need to ensure that it supports the parameters that ZoneMinder will pass to it. If you already have scripts or applications that control your cameras, the ZoneMinder control script will just act as glue to convert the parameters passed into a form that your existing application understands. If you are writing a script to support a new protocol then you will need to convert the parameters passed into the script to equivalent protocol commands. If you have carefully defined your control capabilities above then you should only expect commands that correspond to those capabilities. .sp The standard set of parameters passed to control scripts is defined below, .INDENT 0.0 .INDENT 3.5 \-\-device= : This is the control device from the monitor definition. Absent if no device is specified. \(em address=
: This is the control address from the monitor definition. This will usually be a hostname or ip address for network cameras or a simple numeric camera id for other cameras. .UNINDENT .UNINDENT .INDENT 0.0 .INDENT 3.5 \-\-autostop= : This indicates whether an automatic timeout should be applied to \(aq\(aq\(aqstop\(aq\(aq\(aq the given command. It will only be included for \(aq\(aq\(aqcontinuous\(aq\(aq\(aq commands, as listed below, and will be a timeout in decimal seconds, probably fractional. \(em command= : This specifies the command that the script should execute. Valid commands are given below. .UNINDENT .UNINDENT .INDENT 0.0 .INDENT 3.5 \-\-xcoord=, \-\-ycoord= : This specifies the x and/or y coordinates for commands which require them. These will normally be absolute or mapped commands. \(em width=\(aq\(aq, \(aq\(aq\-\-height= : This specifies the width and height of the current image, for mapped motion commands where the coordinates values passed must have a context. .UNINDENT .UNINDENT .INDENT 0.0 .INDENT 3.5 \-\-speed= : This specifies the speed that the command should use, if appropriate. \(em panspeed=\(aq\(aq, \(aq\(aq\-\-tiltspeed= : This indicates the specific pan and tilt speeds for diagonal movements which may allow a different motion rate for horizontal and vertical components. .UNINDENT .UNINDENT .INDENT 0.0 .INDENT 3.5 \-\-step= : This specifies the amount of motion that the command should use, if appropriate. Normally used for relative commands only. \(em panstep=\(aq\(aq, \(aq\(aq\-\-tiltstep= : This indicates the specific pan and tilt steps for diagonal movements which may allow a different amount of motion for horizontal and vertical components. .UNINDENT .UNINDENT .INDENT 0.0 .INDENT 3.5 \-\-preset= : This specifies the particular preset that relevant commands should operate on. .UNINDENT .UNINDENT .sp The \fIcommand\fP option listed above may take one of the following commands as a parameter. .INDENT 0.0 .TP .B wake Wake the camera. .TP .B sleep Send the camera to sleep. .TP .B reset Reset the camera. .TP .B move_map Move mapped to a specified location on the image. .TP .B move_pseudo_map As move_map above. Pseudo\-mapped motion can be used when mapped motion is not supported but relative motion is in which case mapped motion can be roughly approximated by careful calibration. .TP .B move_abs_ Move to a specified absolute location. The direction element gives a hint to the direction to go but can be omitted. If present it will be one of "up", "down", "left", "right", "upleft", "upright", "downleft" or "downright". .TP .B move_rel_ Move a specified amount in the given direction. .TP .B move_con_ Move continuously in the given direction until told to stop. .TP .B move_stop Stop any motion which may be in progress. .TP .B zoom_abs_ Zoom to a specified absolute zoom position. The direction element gives a hint to the direction to go but can be omitted. If present it will be one of "tele" or "wide". .TP .B zoom_rel_ Zoom a specified amount in the given direction. .TP .B zoom_con_ Zoom continuously in the given direction until told to stop. .TP .B zoom_stop Stop any zooming which may be in progress. .TP .B focus_auto Set focusing to be automatic. .TP .B focus_man Set focusing to be manual. .TP .B focus_abs_ Focus to a specified absolute focus position. The direction element gives a hint to the direction to go but can be omitted. If present it will be one of "near" or "far". .TP .B focus_rel_ Focus a specified amount in the given direction. .TP .B focus_con_ Focus continuously in the given direction until told to stop. .TP .B focus_stop Stop any focusing which may be in progress. .TP .B white_ As per the focus commands, except that direction may be "in" or "out". .TP .B iris_ As per the focus commands, except that direction may be "open" or "close". .TP .B preset_set Set the given preset to the current location. .TP .B preset_goto Move to the given preset. .TP .B preset_home Move to the "home" preset. .UNINDENT .SS Mobile Devices .sp Here are some options for using ZoneMinder on Mobile devices: .SS Third party mobile clients .INDENT 0.0 .IP \(bu 2 .INDENT 2.0 .TP .B zmNinja (\fI\%source code\fP, needs APIs to be installed to work) .INDENT 7.0 .IP \(bu 2 Available in App Store, Play Store and for Desktops \- \fI\%website\fP .UNINDENT .UNINDENT .UNINDENT .SS Using the existing web console .INDENT 0.0 .IP \(bu 2 You can directly use the ZoneMinder interface by launching a browser and going to the ZoneMinder server just like you do on the Desktop .UNINDENT .SS Discontinued clients .sp The following are a list of clients that do not work and have not been updated: .INDENT 0.0 .IP \(bu 2 eyeZM .IP \(bu 2 zmView .UNINDENT .SS Logging .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 Understanding how logging works in ZoneMinder is key to being able to isolate/pinpoint issues well. Please refer to /userguide/options/options_logging to read about how to customize logging. .UNINDENT .UNINDENT .sp Most components of ZoneMinder can emit informational, warning, error and debug messages in a standard format. These messages can be logged in one or more locations. By default all messages produced by scripts are logged in