FlowFuse / FlowFuse/device-agent

Support a second `config.yml` file for 'local' configuration

Open
#93 0 comments 0 reactions 0 assignees View on GitHub
area:remote-instance scope:device size:S task
Dominant language
JavaScript
Stars
20
Forks
10
Avg merge
9d 4h
Merged PRs (30d)
9

Description

### Description

Currently the device agent picks up its configuration from command-line params and `device.yml`.

There are some options the user may want to set in their `device.yml` that do not come from the platform. This means the user has to merge changes in their device.yml file which could be error prone.

This includes:
- `port`
- `interval`
- `verbose`
- `moduleCache`

With #92 we are adding a bunch more CLI params for the config UI.

The proposal here is to support a second config file - `config.yml` that can be used to set any option not otherwise provided by the platform's `device.yml`.

When starting, the agent would load `config.yml` (if it exists), then apply `device.yml` (if it exists) over the top, and then apply any CLI param overrides.

### Epic/Story

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.