Make the font file configurable.
This commit is contained in:
parent
8bf7503a39
commit
076066ce0b
|
|
@ -27,6 +27,10 @@ class Config:
|
|||
def update_interval_seconds(self) -> int:
|
||||
return self.config.get("update-interval-seconds")
|
||||
|
||||
@property
|
||||
def font_file(self) -> str:
|
||||
return self.config.get("font-file")
|
||||
|
||||
@property
|
||||
def stop_codes(self) -> list[str]:
|
||||
return [str(s["stop_id"]) for s in self.config.get("stops")]
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ gtfs-r-api_key: "API KEY GOES HERE"
|
|||
# It must be strictly larger than 60 because the GTFS-R API will throttle us otherwise
|
||||
update-interval-seconds: 62
|
||||
|
||||
# The font to use for the display.
|
||||
font-file: "jd_lcd_rounded.ttf"
|
||||
|
||||
stops: [
|
||||
{
|
||||
# Route 15A
|
||||
|
|
|
|||
Loading…
Reference in New Issue