Add support for TOML file data source

This commit is contained in:
Max Goodhart
2020-07-01 00:03:08 -07:00
parent cc14f2a17f
commit b2215aa42d
7 changed files with 135 additions and 64 deletions

View File

@@ -45,6 +45,14 @@ npm start -- --config="../streamwall.json"
See `config.example.toml` for an example.
## Data sources
Streamwall can load stream data from both JSON APIs and TOML files. Data sources can be specified in a config file (see `config.example.toml` for an example) or the command line:
```
npm start -- --json-url="https://your-site/api/streams.json" --toml-file="./streams.toml"
```
## Hotkeys
The following hotkeys are available with the "control" webpage focused: