-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ini
56 lines (45 loc) · 1.8 KB
/
config.ini
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
[nextbus]
# Name of the transit agency on NextBus that the application will be getting the arrivals for
agency=sf-muni
[worker]
# Number of seconds between updating predictions for each route.
prediction_update_seconds=30
# Number of seconds to consider multiple arrivals at a stop for the same block ID to be duplicates.
duplicate_arrival_threshold=1800
# Number of seconds to use as a threshold for counting arrivals at stops where there is only
# scheduled arrival for a block ID, even if multiple trips throughout the day stop at the stop, to
# avoid counting muiltiple arrivals against the same scheduled arrival. The arrival is only
# counted if the difference between the arrival time and scheduled arrival time is less than this
# threshold.
single_scheduled_arrival_threshold=1800
# Time of day, as a timestamp in seconds with midnight of the day as the epoch, when the Route
# Manager will switch from one day to the next. Schedules (At least for Muni) do not neatly fit
# inside of a day and end at 11:59PM, instead they continue in to the early hours of the next day,
# until the route stops running.
# The value of 11700 (3:15AM) is being used because it is directly in between when the latest
# running Muni routes stop running, and the earliest running routes start, so that only lines that
# run all night ("Owl") routes will be running when the day is switched.
day_switch_time=11700
[loggers]
keys=root
[handlers]
keys=console,file
[formatters]
keys=simple
[logger_root]
level=DEBUG
handlers=console,file
[handler_console]
class=StreamHandler
level=DEBUG
formatter=simple
args=(sys.stdout,)
[handler_file]
class=FileHandler
level=INFO
formatter=simple
args=('how_late_is_muni.log', 'a',)
[formatter_simple]
format=%(asctime)s %(threadName)s %(levelname)s %(name)s - %(message)s
datefmt=
class=logging.Formatter