-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
51 lines (39 loc) · 1.34 KB
/
config.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
# PLC IP address
plc_ip = "192.168.1.10"
# which slot the processor is in
plc_slot = 0
# flag for when the controller is a Micro800
micro800 = False
# BOOL tag that is 1 when a fault is present
fault_tag = "fault_detected"
# rate to check for fault condition
poll_rate = 1.0
# specify the desired video length (seconds).
# this will determine the number of frames to be
# kept in each camera buffer. A 10 second clip
# will capture 300 frames (10s * 30fps)
video_length = 15
# camera dictionary. ID:path
# the path can be an integer for local webcams or
# a web address for IP cameras
# cameras = {0: 0,
# 1: 1}
# example of also mapping a local webcam and an
# IP camera. Every camera model has unique paths,
# check the manual for the camera for the path
cameras = {0: 1,
1: "rtsp://192.168.1.91/streaming/channels/1"}
# define the image resolution
resolution = (640, 480)
# acknowledge flag. If true, we'll write your fault_tag
# back to 0 after fault is recorded
acknowledge = True
# maximum number videos to keep for each camera.
# the oldest files will be purged
max_files = 50
# number of log files to keep
log_count = 3
# If you provide string tags (one tag for each camera), the
# path to the most recent clip(s) will be written to the PLC
# This should always be a list, even if you only have 1 camera
video_path_tags = []