-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain_copper30m.py
70 lines (67 loc) · 2.84 KB
/
main_copper30m.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
import schedule
import time
import os
print("starting server for bbp and lsma 30m")
def start_bbp15m():
os.system('python lsma_bbp15m.py')
return
def start_bbp30m():
os.system('python lsma_bbp30m.py')
return
def start_bbp1h():
os.system('python lsma_bbp1h.py')
return
def start_bbp4h():
os.system('python lsma_bbp4h.py')
return
schedule.every().day.at("00:26").do(start_bbp30m)
schedule.every().day.at("00:56").do(start_bbp30m)
schedule.every().day.at("01:26").do(start_bbp30m)
schedule.every().day.at("01:56").do(start_bbp30m)
schedule.every().day.at("02:26").do(start_bbp30m)
schedule.every().day.at("02:56").do(start_bbp30m)
schedule.every().day.at("03:26").do(start_bbp30m)
schedule.every().day.at("03:56").do(start_bbp30m)
schedule.every().day.at("04:26").do(start_bbp30m)
schedule.every().day.at("04:56").do(start_bbp30m)
schedule.every().day.at("05:26").do(start_bbp30m)
schedule.every().day.at("05:56").do(start_bbp30m)
schedule.every().day.at("06:26").do(start_bbp30m)
schedule.every().day.at("06:56").do(start_bbp30m)
schedule.every().day.at("07:26").do(start_bbp30m)
schedule.every().day.at("07:56").do(start_bbp30m)
schedule.every().day.at("08:26").do(start_bbp30m)
schedule.every().day.at("08:56").do(start_bbp30m)
schedule.every().day.at("09:26").do(start_bbp30m)
schedule.every().day.at("09:56").do(start_bbp30m)
schedule.every().day.at("10:26").do(start_bbp30m)
schedule.every().day.at("10:56").do(start_bbp30m)
schedule.every().day.at("11:26").do(start_bbp30m)
schedule.every().day.at("11:56").do(start_bbp30m)
schedule.every().day.at("12:26").do(start_bbp30m)
schedule.every().day.at("12:56").do(start_bbp30m)
schedule.every().day.at("13:26").do(start_bbp30m)
schedule.every().day.at("13:56").do(start_bbp30m)
schedule.every().day.at("14:26").do(start_bbp30m)
schedule.every().day.at("14:56").do(start_bbp30m)
schedule.every().day.at("15:26").do(start_bbp30m)
schedule.every().day.at("15:56").do(start_bbp30m)
schedule.every().day.at("16:26").do(start_bbp30m)
schedule.every().day.at("16:56").do(start_bbp30m)
schedule.every().day.at("17:26").do(start_bbp30m)
schedule.every().day.at("17:56").do(start_bbp30m)
schedule.every().day.at("18:26").do(start_bbp30m)
schedule.every().day.at("18:56").do(start_bbp30m)
schedule.every().day.at("19:26").do(start_bbp30m)
schedule.every().day.at("19:56").do(start_bbp30m)
schedule.every().day.at("20:26").do(start_bbp30m)
schedule.every().day.at("20:56").do(start_bbp30m)
schedule.every().day.at("21:26").do(start_bbp30m)
schedule.every().day.at("21:56").do(start_bbp30m)
schedule.every().day.at("22:26").do(start_bbp30m)
schedule.every().day.at("22:56").do(start_bbp30m)
schedule.every().day.at("23:26").do(start_bbp30m)
schedule.every().day.at("23:56").do(start_bbp30m)
while True:
schedule.run_pending()
time.sleep(60) # wait one minute