-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsettings.py
105 lines (87 loc) · 2.1 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import python_weather
import tzlocal
try:
from local_settings import DRIVER
except ImportError:
DRIVER = "epd2in7b"
try:
from local_settings import DEBUG
except ImportError:
DEBUG = False
try:
from local_settings import SAVE_SCREENSHOTS
except ImportError:
SAVE_SCREENSHOTS = False
try:
from local_settings import LOGFILE
except ImportError:
LOGFILE = None
try:
from local_settings import PAGE_BUTTONS
except ImportError:
PAGE_BUTTONS = True
try:
from local_settings import LOGO
except ImportError:
LOGO = None
try:
from local_settings import FONT
except ImportError:
FONT = '/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf'
try:
from local_settings import BOLD_FONT
except ImportError:
BOLD_FONT = '/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf'
try:
from local_settings import MONOSPACE_FONT
except ImportError:
MONOSPACE_FONT = '/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf'
try:
from local_settings import TIME
except ImportError:
TIME = 900
try:
from local_settings import CALENDAR_URLS
except ImportError:
CALENDAR_URLS = []
try:
from local_settings import CALENDAR_REFRESH
except ImportError:
CALENDAR_REFRESH = 900
try:
from local_settings import TIMEZONE
except ImportError:
TIMEZONE = tzlocal.get_localzone().key
try:
from local_settings import SCREENS
except ImportError:
SCREENS = [
'system',
'fortune',
'affirmations',
]
try:
from local_settings import AFFIRMATIONS
except ImportError:
AFFIRMATIONS = [
"You are enough",
"You are loved",
"You are safe",
"Be yourself",
"They can't hurt you anymore",
"You are beautiful",
"You are strong",
"You have come a long way"
]
try:
from local_settings import WEATHER_CITY
except ImportError:
WEATHER_CITY = "Richmond, VA"
try:
from local_settings import WEATHER_FORMAT
except ImportError:
WEATHER_FORMAT = python_weather.IMPERIAL
try:
from local_settings import WEATHER_REFRESH
except ImportError:
WEATHER_REFRESH = 900