#-----------------------------------------------------------------------------
# /etc/check.d/motion.exp - expressions for check table of configuration params
#
# Copyright (c) 2001-2007 The Eisfair Team, c/o Frank Meyer, frank(at)eisfair(dot)org
#
# Creation:     2007-09-02  jed
# Last Update:  $Id$
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#-----------------------------------------------------------------------------
MOTION_0_10         = '[0-9]|10'
                    : 'value not range, only values between 0 and 10 are allowed.'
MOTION_0_100        = '[0-9]|[1-9][0-9]|100'
                    : 'value not range, only values between 0 and 100 are allowed.'
MOTION_0_2_100      = '0|[2-9]|[1-9][0-9]|100'
                    : 'value not range, only value 0 or values between 2 and 100
                       are allowed.'
MOTION_1_8          = '[1-8]'
                    : 'value not range, only values between 1 and 8 are allowed.'
MOTION_1_100        = '[1-9]|[1-9][0-9]|100'
                    : 'value not range, only values between 1 and 100 are allowed.'
MOTION_2_100        = '[2-9]|[1-9][0-9]|100'
                    : 'value not range, only values between 2 and 100 are allowed.'
MOTION_1_255        = '[1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]'
                    : 'value not range, only values between 1 and 255 are allowed.'
MOTION_1_1000       = '[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|1000'
                    : 'value not range, only values between 1 and 1000 are allowed.'
MOTION_CODECS       = 'mpeg4|msmpeg4|swf|flv|ffv1|mov'
                    : 'no valid video codec given, should be mpeg4, msmpeg4, swf,
                       flv, ffv1 or mov.'
MOTION_DEVICE       = '/dev/video([0-9]|1[0-5])'
                    : 'no valid video device given, should be /dev/videoXX.'
MOTION_FILENAME     = '[[:alnum:]](-?[[:alnum:]_ %.])*'
                    : 'no valid file name given, should contain only numbers, letters
                       and the following special characters: - _ % . " "'
MOTION_EFILENAME    = '()|(RE:MOTION_FILENAME)'
                    : 'no valid file name given, should be an empty string or contain
                       only numbers, letters and the following special characters: - _ % . " "'
MOTION_FILE_URL     = 'ftp://[[:alnum:]=?/~.-]+(:(RE:NUMERIC)(/[[:alnum:]=?/~.-]*)?)?'
                    : 'no valid ftp URL given.'
MOTION_HTTP_URL     = 'http(s)?://[[:alnum:]=?/~.-]+(:(RE:NUMERIC)(/[[:alnum:]=?/~.-]*)?)?'
                    : 'no valid http/https URL given.'
MOTION_IMAGE        = 'yes|first|best|no'
                    : 'invalid answer, only "yes", "no", "first" or "best" are allowed.'
MOTION_LOCATE       = '(RE:YESNO)|preview'
                    : 'invalid answer, only "yes", "no" or "preview" are allowed.'
MOTION_ROTATE       = '0|90|180|270'
                    : 'invalid value given, should be 0, 90, 180 or 270.'
MOTION_SNAPSHOT     = 'single:(RE:NUMERIC)|(RE:NUMERIC)'
                    : 'invalid value given, should be a numeric value which optionally
                       can be prefixed with the keyword "single:".'
MOTION_TEXTSIZE     = 'normal|double'
                    : 'invalid value given, should be "normal" or "double".'
MOTION_TIMELAPS     = '(RE:NUMERIC)(:(hourly|daily|weekly-sunday|weekly-monday|monthly|manual))?'
                    : 'no valid time interval given, should be between 0-2147483647
                       otionally followed by one of these keywords: hourly, daily,
                       weekly-sunday, weekly-monday, monthly, manual'
MOTION_URL          = '()|(RE:MOTION_HTTP_URL)|(RE:MOTION_FILE_URL)'
                    : 'no valid http/https/ftp URL given.'
MOTION_VBRIGHTNESS  = 'auto:(RE:OCTET)|(RE:OCTET)'
                    : 'value not range, only values between 0 and 255 are allowed,
                       prefixed by the optional string "auto:".'