forked from metro-sign/dc-metro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
executable file
·58 lines (44 loc) · 1.35 KB
/
config.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
from adafruit_bitmap_font import bitmap_font
config = {
#########################
# Network Configuration #
#########################
# WIFI Network SSID
'wifi_ssid': '<Your 2.4ghz WiFi SSID>',
# WIFI Password
'wifi_password': '<Your WiFi Password>',
#########################
# Metro Configuration #
#########################
# Metro Station Code
'metro_station_code': 'D02',
# Metro Train Group
'train_group': '2',
# API Key for WMATA
'metro_api_key': '<Your WMATA API Key>',
#########################
# Other Values You #
# Probably Shouldn't #
# Touch #
#########################
'metro_api_url': 'https://api.wmata.com/StationPrediction.svc/json/GetPrediction/',
'metro_api_retries': 3,
'refresh_interval': 5, # 5 seconds is a good middle ground for updates, as the processor takes its sweet ol time
# Display Settings
'matrix_width': 64,
'num_trains': 3,
'font': bitmap_font.load_font('lib/5x7.bdf'),
'character_width': 5,
'character_height': 7,
'text_padding': 1,
'text_color': 0xFF7500,
'loading_destination_text': 'Loading',
'loading_min_text': '---',
'loading_line_color': 0xFF00FF, # Something something Purple Line joke
'heading_text': 'LN DEST MIN',
'heading_color': 0xFF0000,
'train_line_height': 6,
'train_line_width': 2,
'min_label_characters': 3,
'destination_max_characters': 8,
}