-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_template.yaml
executable file
·66 lines (60 loc) · 3.71 KB
/
config_template.yaml
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
58
59
60
61
62
63
64
65
66
telegram:
token: "telegram_bot_token_code_here" # telegram bot token password
chat_number: "-4321" # telegram chat channel
allowed_user_ids: # list of allowed telegram user id to act on
- "123456789"
- "987654321"
otp:
password: "KRSXG5CQIASCIVZQOJCA====" # base32 encoded password here password: "Base32CodePasswordHere"
length: 9 # standard length = 6 , max length = 10 (9 = sha512) - at least 9 recommanded
# time interval of totp code, default is 30 seconds
interval: 30 # possible time based one time passwaord hash's are: sha1 (default), sha256, sha512(recommended)
hash_type: sha512 # encryption hash for OTP used (possible values are sha1, sha256, sha512) - recommended sha512
GPIO:
testing_msg: True # if not run on RPi and wanted simulate a door bell ring set to True otherwise false
enable_door_bell_port: True # enable or disable (True/False) door bell detection feature if hardware board is connected
door_bell_port: 1 # RPi GPIO Port where door bell is connected
door_bell_bounce_time: 5 # seconds to block since first door bell ring detected
enable_door_opener_port: True # enable or disable (True/False) door opening feature if hardware board is connected
door_opener_port: 2 # RPi GPIO Port where door summer/opener is connected
run_on_raspberry: False # Boolean for run code without RPi GPIO on other system for testing purposes
photo_general:
# if enabled take precedence over default_camera_type and requires either
# blink.night_vision or picam.night_vision enabled. Only one enabled allowed!
enable_detect_daylight: False
default_camera_type: "blink" # "blink" or "picam" careful - case senitive
image_path: "/tmp/foto.jpg" # path where downloaded foto from camera get intermediate stored
blink:
enabled: True # blink cam enabled ?
username: "blink_account_email_address_here" # blink account name here
password: "blink_account_password_here" # blink account password
name: "Blink_Camera_name_here" # blink camera name here, not group
config_file: "blink_config.json"
# if enabled requires also photo_general.enable_detect_daylight enabled
# than it take precedence over default_camera_type.
# Only one enabled allowed!
# blink.night_vision or picam.night_vision enabled.
night_vision: True
picam:
enabled: False # PiCam enabled ?
url: "http://IP:8000/foto/" # PiCam API https://github.com/OliverDrechsler/PiCam_API
image_width: 640 # PiCam photo width resolution
image_hight: 480 # PiCam photo hight resolution
image_filename: "foto.jpg" # PiCam photo foto file
exposure: "auto"
rotation: 0 # PiCam photo rotation by default
iso: 800 # PiCam photo resolution iso value
# if enabled requires also photo_general.enable_detect_daylight enabled
# than it take precedence over default_camera_type.
# Only one enabled allowed!
# blink.night_vision or picam.night_vision enabled.
night_vision: False
web:
enabled: True # Web-Ui and REST-API enabled or disabled (True / False)webserver enabled
flask_web_host: "0.0.0.0" # flask webserver host listing ip 0.0.0.0 to accessible for every one - 127.0.0.1 means internal only
flask_web_port: 5001 # flask webserver port
flask_secret_key: "my_super_flask_secret_key" # provide here your own flask secret key
browser_session_cookie_lifetime: 30 # browser cookie key
flask_users: # list of flask app login user for webpage and/or rest api call
- WebUser1: "password"
- WebUser2: "password"