Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Adding TOML config format as an option instead of JSON #311

Open
riffnshred opened this issue Sep 30, 2021 · 0 comments
Open

Adding TOML config format as an option instead of JSON #311

riffnshred opened this issue Sep 30, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@riffnshred
Copy link
Owner

Description
TOML is easier to read and less prone to user errors.

For exemple:

debug = false
live_mode = true
loglevel = "INFO"

[boards]
[boards.clock]
clock_rgb = ""
date_rgb = ""
duration = 15
flash_seconds = true
hide_indicator = false
preferred_team_colors = true

[boards.scoreticker]
preferred_teams_only = false
rotation_rate = 5

[boards.seriesticker]
preferred_teams_only = true
rotation_rate = 5

[boards.standings]
conference = "eastern"
divisions = "north"
preferred_standings_only = true
standing_type = "wild_card"

[preferences]
end_of_day = "8:00"
live_game_refresh_rate = 10
location = ""
sog_display_frequency = 4
teams = ["Canadiens"]
time_format = "12h"

[preferences.goal_animations]
pref_team_only = true

[states]
intermission = ["scoreticker", "team_summary"]
off_day = ["team_summary", "clock"]
post_game = ["team_summary", "scoreticker", "clock"]
scheduled = ["team_summary", "scoreticker", "clock"]

It requires a library like https://github.com/hukkin/tomli to use it which makes it really straight forward.

@riffnshred riffnshred added the enhancement New feature or request label Sep 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant