-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
87 lines (47 loc) · 1.7 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
import os
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv())
###
### YOU HAVE TO FILL OUT ALL OF THESE FIELDS FOR THE PROGRAM TO WORK
###
# credentials for parent access
PARENT_ACCESS_EMAIL = ""
PARENT_ACCESS_PASSWORD = ""
# either push, sms, or email
NOTIFICATION_METHOD = "push"
# in minutess
REFRESH_INTERVAL = 1
# school student id
STUDENT_ID = ""
# replace this with your class names and XPATHs to them
classes = {
"English 10H": "/html/body/table[1]/tbody/tr[2]/td/table/tbody/tr[2]/td[3]/table/tbody/tr/td[1]/div",
"AP US History": "/html/body/table[1]/tbody/tr[2]/td/table/tbody/tr[3]/td[3]/table/tbody/tr/td[1]/div",
"Chem H": "/html/body/table[1]/tbody/tr[2]/td/table/tbody/tr[4]/td[3]/table/tbody/tr/td[1]/div",
"Pre-Calc H": "/html/body/table[1]/tbody/tr[2]/td/table/tbody/tr[6]/td[3]/table/tbody/tr/td[1]/div",
"Spanish V H": "/html/body/table[1]/tbody/tr[2]/td/table/tbody/tr[7]/td[3]/table/tbody/tr/td[1]/div",
"AP CS A": "/html/body/table[1]/tbody/tr[2]/td/table/tbody/tr[8]/td[3]/table/tbody/tr/td[1]/div",
"Physical Education": "/html/body/table[1]/tbody/tr[2]/td/table/tbody/tr[10]/td[3]/table/tbody/tr/td[1]/div"
}
###
### ONLY FILL OUT IF USING TWILIO FOR NOTIFICATIONS
###
# twilio api keys
TWILIO_ACCOUNT_SID = ""
TWILIO_AUTH_TOKEN = ""
# phone numbers
TWILIO_PHONE_NUMBER = ""
DESTINATION_PHONE_NUMBER = ""
###
### ONLY FILL OUT IF USING EMAIL FOR NOTIFICATIONS
###
# gmail credentials
GMAIL_ACCOUNT_EMAIL = ""
GMAIL_ACCOUNT_PASSWORD = ""
# email to send notifications to
DESTINATION_EMAIL = ""
###
### ONLY FILL OUT IF USING SPONTIT FOR NOTIFICATIONS (RECOMMENDED)
###
SPONTIT_USERNAME = ""
SPONTIT_SECCRET_KEY = ""