-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconstants.py
94 lines (82 loc) · 1.89 KB
/
constants.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
# application-wide constants. this gets passed wholesale into javascript, so
# use 0/1 instead of True/False for bools.
C = {
'sections': [
'time',
'weather',
'birthdays',
'chores',
'subway',
'song',
'noConnection',
],
'timePollTime': 10,
'weatherPollTime': 1000 * 60 * 5,
'weatherUrl': 'https://api.darksky.net/forecast/',
'birthdaysPollTime': 1000 * 60,
'birthdaysUrl': '/birthdays',
'choresPollTime': 1000 * 60,
'choresUrl': '/chores',
'subwayPollTime': 1000 * 60,
'subwayUrl': '/mta-service-status',
'subwayRemoteUrl': 'http://web.mta.info/status/serviceStatus.txt',
'songPollTime': 1000 * 10,
'songUrl': '/song',
'songRemoteUrl': 'http://192.168.1.111:9000/status.html',
# indicate which subway lines you wish to display with a `1`
'subwayLinesToShow': {
'7': 0,
'123': 0,
'456': 0,
'ACE': 0,
'BDFM': 1,
'G': 0,
'JZ': 0,
'L': 0,
'NQR': 1,
'S': 0,
'SIR': 0,
},
# what days you'd like to see subway status
'subwayDayRange': [
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
],
# a time range during which to display subway status
'subwayTimeRange': [4, 13],
'months': [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
],
'daysPy': [
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday',
],
'daysJs': [
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
],
}