-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
102 lines (87 loc) · 3.53 KB
/
settings.py
File metadata and controls
102 lines (87 loc) · 3.53 KB
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
from os import path, environ
from dotenv import load_dotenv
env_path = path.join('.', '.env')
load_dotenv(dotenv_path=env_path, verbose=True)
VERSION = "0.2"
THREE_HOURS = 10800
ONE_HOUR = 3600
ONE_SECOND = 1
FIVE_MINUTES = 300
ONE_MINUTE = 60
TEN_MS = 10
MOUSE_VISIBLE = False
CALENDAR_ID = environ.get('CALENDAR_ID')
WEATHER_API_TOKEN = environ.get('OPEN_WEATHER_TOKEN')
WEATHER_CITY = 'Gothenburg'
WEATHER_COUNTRY = 'se'
WEATHER_UPDATE_DELAY = 3600
SYS_INFO_UPDATE_DELAY = THREE_HOURS
IP_INTERFACE = 'wlan0'
CLOCK_UPDATE_DELAY = ONE_SECOND
CALENDAR_UPDATE_DELAY = ONE_HOUR
SCREEN_SHOT_UPDATE_DELAY = ONE_MINUTE
CURRENCY_UPDATE_DELAY = THREE_HOURS
BIRTHDAY_UPDATE_DELAY = ONE_HOUR
DISPLAY_ON_OFF_UPDATE_DELAY = ONE_MINUTE
TIME_TURN_OFF_SCREEN = 0
TIME_TURN_ON_SCREEN = 6
ENABLE_OF_OFF_SCREEN = environ.get('ENABLE_ON_OFF_SCREEN', True)
VASTTRAFIK_UPDATE_DELAY = ONE_MINUTE
VASTTRAFIK_KEY = environ.get('VASTTRAFIK_KEY')
VASTTRAFIK_SECRET = environ.get('VASTTRAFIK_SECRET')
BUSS_STOPS = ['Bifrost']
SKIP_DIRECTIONS = []
KEY_DOWN = 2
KEY_ESCAPE = 27
KEY_WINDOW_X = 12
COLORS = {
'black': (0, 0, 0),
'aqua': (0, 255, 255),
'blue': (0, 0, 255),
'fuchsia': (255, 0, 255),
'gray': (128, 128, 128),
'green': (0, 128, 0),
'lime': (0, 255, 0),
'maroon': (128, 0, 0),
'navy_blue': (0, 0, 128),
'olive': (128, 128, 0),
'purple': (128, 0, 128),
'red': (255, 0, 0),
'silver': (192, 192, 192),
'teal': (0, 128, 128),
'white': (255, 255, 255),
'yellow': (255, 255, 0),
}
FONTS = {
'heavy': path.join("resources", "font", "font-heavy.ttf"),
'light': path.join("resources", "font", "font-light.ttf"),
'regular': path.join("resources", "font", "font-regular.ttf")
}
WEATHER_ICON_MAP = {1: {'label': 'Clear sky', 'icon': '1'},
2: {'label': 'Nearly clear sky', 'icon': '2'},
3: {'label': 'Variable cloudiness', 'icon': '3'},
4: {'label': 'Halfclear sky', 'icon': '4'},
5: {'label': 'Cloudy sky', 'icon': '5'},
6: {'label': 'Overcast', 'icon': '6'},
7: {'label': 'Fog', 'icon': 'fog17'},
8: {'label': 'Light rain showers', 'icon': '8'},
9: {'label': 'Moderate rain showers', 'icon': '9'},
10: {'label': 'Heavy rain showers', 'icon': '10'},
11: {'label': 'Thunderstorm', 'icon': '11'},
12: {'label': 'Light sleet showers', 'icon': '12'},
13: {'label': 'Moderate sleet showers', 'icon': '13'},
14: {'label': 'Heavy sleet showers', 'icon': '14'},
15: {'label': 'Light snow showers', 'icon': '15'},
16: {'label': 'Moderate snow showers', 'icon': '16'},
17: {'label': 'Heavy snow showers', 'icon': '17'},
18: {'label': 'Light rain', 'icon': '18'},
19: {'label': 'Moderate rain', 'icon': '19'},
20: {'label': 'Heavy rain', 'icon': '20'},
21: {'label': 'Thunder', 'icon': '21'},
22: {'label': 'Light sleet', 'icon': '22'},
23: {'label': 'Moderate sleet', 'icon': '23'},
24: {'label': 'Heavy sleet', 'icon': '24'},
25: {'label': 'Light snowfall', 'icon': '25'},
26: {'label': 'Moderate snowfall', 'icon': '26'},
99: {'label': 'Unknown weather', 'icon': '99'},
27: {'label': 'Heavy snowfall', 'icon': '27'}}