#####################################################################################
# ifetch-tools is a set of tools that can collect images from ip based cameras,
# monitor collection process, and provide an interface to view collected history.
# Copyright (C) 2005-2015 Richard Nelson
#
# 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.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

####################################################################################
####################################################################################
# General notes on the config file are as follows.
# - Each camera needs a config file for operations.
# - Default settings are stored in the /etc/ifetch-tools/ifetch-tools.conf file now.
# - This file is used to override the default options in ifetch-tools.conf.

####################################################################################
## Set the options for image_uid, image_pwd, image_auth_type, and image_alt
#####################################################################################
## The image_uid is the user name and the image_pwd is the password to use if
## using security on the remote camera. The image_auth_type is for basic (the default)
## or digest. image_alt is for dynamic page creation with img src alt tag.
# Example lines are below:
#
# image_uid=''
# image_pwd=''
# image_auth_type='basic
# image_alt='no_image_alt'

####################################################################################
# Set the option for image_addr
####################################################################################
# The image_addr is the IP address of the remote camera and the image_addr_port is
# the port the camera is listening on.
# Example line is below:
#
# image_addr='127.0.0.1'
# image_addr_port=80

####################################################################################
# Set the option for image_url
####################################################################################
# This is the url to get the current image of the camera.
#
#############################
# Apexis MODEL: APM-J011-WS
# http://user:password@xxx.xxx.xxx.xxx/snapshot.cgi
#
# image_url='/snapshot.cgi'
#
#############################
# Axis cameras use the below:
# image_url='/jpg/image.jpg'
#
#############################
# D-Link DCS-930L
# image_url='/image.jpg'
#
#############################
# Hawking HNC320W wireless
# image_url='/IMAGE.JPG'
#
#############################
# IGuard IP-250E
# According to firmware upgrade 2.55.cv7
#
# http://xxx.xxx.xxx.xxx/pda.cgi?user=admin&password=1234&page=image&cam=1
#
# And the following is configured as below
# xxx.xxx.xxx.xxx - the IP address of the camera
# admin - the login account name
# 1234  - the login password
# 1     - the camera number
#
# So the image_url would look something like:
# image_url='/pda.cgi?user=admin&password=1234&page=image&cam=1'
#
#############################
# IPCamera 510
#
# image_url='/image.jpg'
#
#############################
# IPcam P1000 from Plustek
#
# http://xxx.xxx.xxx.xxx/snapshot.jpg?account=admin&password=1234`
#
# And the following is configured as below
# xxx.xxx.xxx.xxx - the IP address of the camera
# admin - the login account name for the admin username
# 1234  - the login password for the admin username
#
# So the image_url would look something like:
# image_url='/snapshot.jpg?account=admin&password=1234'
#
#############################
# Panasonic BL-C210A
#
# http://xxx.xxx.xxx.xxx/SnapshotJPEG?Resolution=640x480&Quality=Clarity
#
# And the following is configured as below
# xxx.xxx.xxx.xxx - the IP address of the camera
# Resolution - 320x240 640x480
# Quality - Motion Standard Clarity
#
## So the image_url would look something like:
# image_url='/SnapshotJPEG?Resolution=640x480&Quality=Clarity'
#
#############################
# Trendnet TV-IP201 use the below:
# image_url='/goform/capture'
#
#############################
# Trendnet TV-IP301 use the below:
# image_url='/goform/video'
#
#############################
# TV-IP320PI
# image_url='/streaming/channels/1/picture'
# image_auth_type='digest'
#
#############################
# Trendnet TV-IP512P use the below:
# image_url='/image/jpeg.cgi'
#
#############################
# Toshiba IK-WR01A Orite IC301 use the below:
# image_url='/Jpeg/CamImg.jpg'
#
#############################
# Wanscam IP Camera:
# image_url='/snapshot.cgi'

#####################################################################################
## Set the option for image_watermark
#####################################################################################
## The image_watermark when true writes the collection time on the image.
## The value is either 0 for True or 1 for False.
## The default is 1.
image_watermark=1

####################################################################################
# Set the option for image_count
####################################################################################
# The image_count is the number of images to store history.
# Example line is below:
#
# image_count=1

####################################################################################
# Set the option for image_count_on_motion
####################################################################################
# The image_count_on_motion is the number of images to store once motion is detected
# without another motion test on images.
# image_count_on_motion=20

####################################################################################
# Set the option for motion_enable
####################################################################################
# The motion_enable is either 0 for True or 1 for False.
# The default is 1.
# motion_enable=1

#####################################################################################
## Set the option for motion_mdpp
#####################################################################################
## The motion_mdpp is used to adjust the threshold of motion detection.
# motion_mdpp=0.002

####################################################################################
# Set the option for motion_sleep
####################################################################################
# The motion_sleep is if you want to shorten the sleep when motion is detected.
# motion_sleep=0.5

####################################################################################
# Set the option for image_sleep
####################################################################################
# The image sleep is the padding between image downloads. Each download is a complete
# http transaction with an open, download, and close operation. Tuning will depend on
# each individual setup.
# If you use a float use the example of 0.5 and the example
# line is below:
#
# image_sleep=0


####################################################################################
# Set the options for day_image_sleep
####################################################################################
# The below is for a feature add allowing for a subset of the entire day to have a
# a different sleep padding on a given time range. So on each day of the week you
# can have a time range where image collection padding is different than what is
# specified with image_sleep.
#
# O is Sun, 1 is Mon, 2 is Tue, 3 is Wed, 4 is Thu, 5 Fri, 6 is Sat
# On a given day "00:00,00:00,1" implies "startTime,stopTime,sleepDuration"
# See the example line is below:
#
# day_image_sleep={ 0 => "00:00,00:00,1", 1 => "00:00,00:00,1", 2 => "00:00,00:00,1", 3 => "00:00,00:00,1", 4 => "00:00,00:00,1", 5 => "00:00,00:00,1", 6 => "00:00,00:00,1"}


####################################################################################
# Set the option for log_files
####################################################################################
# The log_files is the number of log files to keep in rotation.
# Example line is below:
#
# log_files=5


####################################################################################
# Set the option for log_size
####################################################################################
# The log_size is the size in kb for a rotation.
# Example line is below:
#
# log_size=100

####################################################################################
# Set the location for data_location
####################################################################################
# The data_location variable is if your storage is somewhere else other than
# ifetch-tools/htdocs . Do not include a trailing / and do not include the camera
# number. Example line is below:
#
# data_location="/path/to/camera/storage"
