Skip to content

Commit

Permalink
tar1090 config: add arbitrary config options
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Mar 28, 2024
1 parent e9a038b commit 123cbfa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,27 @@ All of the variables below are optional.
| `TAR1090_RANGERINGSDISTANCES` | Distances to display range rings, in miles, nautical miles, or km (depending settings value '`TAR1090_DISPLAYUNITS`'). Accepts a comma separated list of numbers (no spaces, no quotes). | `100,150,200,250` |
| `TAR1090_RANGERINGSCOLORS` | Colours for each of the range rings specified in `TAR1090_RANGERINGSDISTANCES`. Accepts a comma separated list of hex colour values, each enclosed in single quotes (eg `TAR1090_RANGERINGSCOLORS='#FFFFF','#00000'`). No spaces. | Blank |

#### `tar1090` `config.js` Configuration - Expert

| Environment Variable | Purpose | Default |
| ---------------------------- | ---------------------------------------------------- | --------- |
| `TAR1090_CONFIG_JS_APPEND` | Append arbitrary javascript code to config.js | Unset |

- In case a setting is available in tar1090 but not exposed via environment variable for this container
- For a list of possible settings, see <https://github.com/wiedehopf/tar1090/blob/master/html/config.js>
- Incorrect syntax or any capitalization errors will cause the map to not load, you have been warned!
- Example: `TAR1090_CONFIG_JS_APPEND= MapDim=false; nexradOpacity=0.2;`
- In the environment section of a compose file you can generally use multiple lines like this:
```yaml
environment:
...
- TAR1090_CONFIG_JS_APPEND=
MapDim=false;
nexradOpacity=0.2;
...
```


### `tar1090` Route Display Configuration

| Environment Variable | Purpose | Default |
Expand Down
4 changes: 4 additions & 0 deletions rootfs/etc/s6-overlay/startup.d/04-tar1090-configure
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ if [[ -n "$TAR1090_ROUTEAPIURL" ]]; then
echo "routeApiUrl = ${TAR1090_ROUTEAPIURL};"
fi

if [[ -n "$TAR1090_CONFIG_JS_APPEND" ]]; then
echo "$TAR1090_CONFIG_JS_APPEND"
fi

} >> "${TAR1090_INSTALL_DIR}/html-webroot/config.js"

if chk_enabled "$TAR1090_LABEL_GROUND_SHOWALL"; then
Expand Down

0 comments on commit 123cbfa

Please sign in to comment.