-
Notifications
You must be signed in to change notification settings - Fork 15
/
settings.py
57 lines (47 loc) · 2.83 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# User Configuration variable settings for webserver
# Done by - Claude Pageau
configTitle = "picamera-motion Default Settings"
configName = "settings.py"
verbose = True # True= Enable Logging Messages False= Disable
# User Image Settings
# -------------------
imagePath = "images" # Folder path to save images
imageNamePrefix = 'mo-' # Prefix for all image file names. Eg front-
imageWidth = 1280 # Final image width
imageHeight = 720 # Final image height
imageVFlip = True # Flip image Vertically
imageHFlip = True # Flip image Horizontally
imagePreview = False # Set picamera preview False=off True=on
imageNumOn = False # Image Naming True=Number sequence False=DateTime
imageNumStart = 1000 # Start of number sequence if imageNumOn=True
# User Motion Detection Settings
# ------------------------------
threshold = 10 # How Much pixel changes
sensitivity = 100 # How many pixels change
streamWidth = 128 # motion scan stream Width
streamHeight = 80
#======================================
# webserver.py Settings
#======================================
# Web Server settings
# -------------------
web_server_port = 8080 # default= 8080 Web server access port eg http://192.168.1.100:8080
web_server_root = "images" # default= "images" webserver root path to webserver image/video sub-folders
web_page_title = "PICAMERA-MOTION" # web page title that browser show (not displayed on web page)
web_page_refresh_on = True # False=Off (never) Refresh True=On (per seconds below)
web_page_refresh_sec = "180" # default= "180" seconds to wait for web page refresh seconds (three minutes)
web_page_blank = False # True Starts left image with a blank page until a right menu item is selected
# False displays second list[1] item since first may be in progressx
# Left iFrame Image Settings
# --------------------------
web_image_height = "768" # default= "768" px height of images to display in iframe
web_iframe_width_usage = "75%" # Left Pane - Sets % of total screen width allowed for iframe. Rest for right list
web_iframe_width = "100%" # Desired frame width to display images. can be eg percent "80%" or px "1280"
web_iframe_height = "100%" # Desired frame height to display images. Scroll bars if image larger (percent or px)
# Right Side Files List
# ---------------------
web_max_list_entries = 500 # 0 = All or Specify Max right side file entries to show (must be > 1)
web_list_height = web_image_height # Right List - side menu height in px (link selection)
web_list_by_datetime = True # True=datetime False=filename
web_list_sort_descending = True # reverse sort order (filename or datetime per web_list_by_datetime setting
# ---------------------------------------------- End of User Variables -----------------------------------------------------