-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
76 lines (63 loc) · 2.24 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# Settings configuration file.
# In this file all settings for this project can be set.
# Afftected files: webapp.py, doorPy.py
#########################
### Project settings ###
#########################
# Debug, set to false before going live.
debug = True
################################
### Web Application Settings ###
################################
# General Webapp configuration
secretkey = '[supersecretkey]
database = '/var/www/DoorPy/doorPy.db'
# Global variables used in the application
name = "DoorPy"
slogan = "A remote doorbell application for Raspberry Pi!"
#######################
### DoorPy Settings ###
#######################
# Enable to swap RGB with RBG colour codes.
# Only needed if you have an early DoT3K.
rgb_rbg = True
# Set GPIO
gpio_bell = 21 #Doorbell button GPIO name (NOT pin#)
# Logging settings, only SQLite can be used for web interface.
# Choose 'db' or 'txt'.
logging = "db"
logfile = "doorbell-log.txt" #Only needed if logging == txt
# Change the format of timestamps
timeformat = "%a %d %b - %H:%M:%S"
# For example:
# "%c" (Same to set locale)
#"%d-%M-%Y %H:%M:%S" (21-12-2000 23:12:59)
# Pushover can be used to send messages.
# If you enable it, make sure to alter variables below.
push_enabled = True
push_app_key = "[yourpusoverhappkey]"
push_user_key = "[yourpushoveruserkey]"
# Enable taking pictures with webcam?
# Highly experimental though, using an IP camera stream embedded on the front-page.
pictures_enabled = False
snap_url = '[snip]'
stream_url = '[snip]/videostream.cgi'
outputpath = "static/camera-output/"
# Text variables, for easy editing of output.
# This text will display on the DoT3k
# Take note of the hashtags indicating the end of line. Dont go over it, or will look funky!
txt_security = "[System online] "#
txt_pressme = " " #
txt_ring = "Contacting... "#
txt_ring2 = "Please wait! :) "#
txt_wait1 = "Hang on, "#
txt_wait2 = "Trying to "#
txt_wait3 = "contact again! "#
txt_away1 = "Sorry, none is "#
txt_away2 = "available right "#
txt_away3 = "now or busy! "#
txt_package1 = "Got a delivery? "#
txt_package2 = "Please deliver "#
txt_package3 = "another day! "#
txt_coming = "I'm on my way! "#