# User Configuration variable settings for pitimolo
# Purpose - Motion Detection Security Cam
# Created - 20-Jul-2015 pi-timolo ver 2.8 compatible
# Done by - Claude Pageau
 
configTitle = "pitimolo default configuration motion and timelapse 720p images"
configName = "pitimolo-default-config"

# These settings should both be False if this script is run as a background /etc/init.d daemon
verbose = True             # Sends detailed logging info to console. set to False if running script as daeman
logDataToFile = False      # logs diagnostic data to a disk file for review  default=False
debug=False                # Puts in debug mode returns pixel average data for tuning

# print a test image
imageTestPrint = False     # default=False Set to True to print one image and exit (useful for aligning camera)

# Image Settings
imageNamePrefix = 'cam1-'  # Prefix for all image file names. Eg front-
imageWidth = 1024          # Full Size Image Width in px  default=1024
imageHeight = 768          # Full Size Image Height in px default=768
imageVFlip = False         # Flip image Vertically    default=False
imageHFlip = False         # Flip image Horizontally  default=False
imageRotation=0            # Rotate image. Valid values: 0, 90, 180 & 270
imagePreview = False       # Preview image on connected RPI Monitor default=False
noNightShots = False       # Don't Take images at Night default=False
noDayShots = False         # Don't Take images during day time default=False  

# Low Light Night Settings
nightMaxShut = 5.5         # default=5.5 sec Highest cam shut exposure time. 
                           # IMPORTANT 6 sec works sometimes but occasionally locks RPI and HARD reboot required to clear
nightMinShut = .001        # default=.002 sec Lowest camera shut exposure time for transition from day to night (or visa versa)
nightMaxISO = 800          # default=800  Max cam ISO night setting
nightMinISO = 100          # lowest ISO camera setting for transition from day to night (or visa versa)  
nightSleepSec = 10         # default=10 Sec - Time period to allow camera to calculate low light AWB   
twilightThreshold = 40     # default=40 Light level to trigger day/night transition at twilight 

# Date/Time Settings for Displaying info Directly on Images
showDateOnImage = True     # Set to False for No display of date/time on image default= True
showTextFontSize = 20      # Size of image Font in pixel height
showTextBottom = True      # Location of image Text True=Bottom False=Top
showTextWhite = True       # Colour of image Text True=White False=Black
showTextWhiteNight = True  # Change night text to white.  Might help if night needs white instead of black during day or visa versa

# Motion Detect Settings
motionOn = True            # True = motion capture is turned on.  False= No motion detection
motionPrefix = "mo-"       # Prefix Motion Detection images
motionDir = "motion"       # Storage Folder for Motion Detect Images
threshold = 20             # How much a pixel has to change to be counted default=10 (1-200)
sensitivity = 300          # Number of changed pixels to trigger motion default=300
motionVideoOn = False      # If set to True then video clip is taken rather than image
motionVideoTimer = 10      # Number of seconds of video clip to take if Motion Detected default=10
motionQuickTLOn = False    # if set to True then take a quick time lapse sequence rather than a single image (overrides motionVideoOn)
motionQuickTLTimer = 10    # Duration in seconds of quick time lapse sequence after initial motion detected default=10
motionQuickTLInterval = 0  # Time between each Quick time lapse image 0 is fast as possible 
motionForce = 60 * 60      # Force single motion image if no Motion Detected in specified seconds.  default=60*60
motionNumOn = True         # True=On (filenames by sequenced Number) otherwise date/time used for filenames
motionNumStart = 1000      # Start motion number sequence
motionNumMax  = 500        # Max number of motion images desired. 0=Continuous    default=0
motionNumRecycle = True    # After numberMax reached restart at numberStart instead of exiting default=True
motionMaxDots = 100        # Number of motion dots before starting new line
createLockFile = False     # default=False if True then sync.sh will call gdrive to sync files to your web google drive if .sync file exists
                           # Lock File is used to indicate motion images are added so sync.sh can sync in background via sudo crontab -e 

# Time Lapse Settings
timelapseOn = False        # Turns timelapse True=On  False=Off
timelapseTimer = 5 * 60    # Seconds between timelapse images  default=5*60
timelapseDir = "timelapse" # Storage Folder for Time Lapse Images
timelapsePrefix = "tl-"    # Prefix timelapse images with this prefix
timelapseExit = 0 * 60     # Will Quit program after specified seconds 0=Continuous  default=0
timelapseNumOn = True      # True=On (filenames Sequenced by Number) otherwise date/time used for filename
timelapseNumStart = 1000   # Start of timelapse number sequence 
timelapseNumMax = 2000     # Max number of timelapse images desired. 0=Continuous  default=2000
timelapseNumRecycle = True # After numberMax reached restart at numberStart instead of exiting default=True   

# ---------------------------------------------- End of User Variables -----------------------------------------------------

@@ -3129,16 +3129,248 @@
 ult=300%0A
+motionAverage = 100        # Number of images to average to check for motion: 1 = just use last image. Default=100%0AuseVideoPort = False       # Use the video port to capture motion images - faster than the image port. Default=False%0A
 motionVi

Update config.py