New setting: Start volume

This commit is contained in:
nemunaire 2025-03-25 18:34:59 +01:00
commit 34917043ce
4 changed files with 27 additions and 5 deletions

View file

@ -5,7 +5,7 @@ export class Settings {
}
}
update({ language, gong_interval, weather_delay, weather_action, pre_alarm_delay, pre_alarm_action, max_run_time, max_volume, federation }) {
update({ language, gong_interval, weather_delay, weather_action, pre_alarm_delay, pre_alarm_action, max_run_time, max_volume, start_volume, federation }) {
this.language = language;
this.gong_interval = gong_interval;
this.weather_delay = weather_delay;
@ -14,6 +14,7 @@ export class Settings {
this.pre_alarm_action = pre_alarm_action;
this.max_run_time = max_run_time;
this.max_volume = max_volume;
this.start_volume = start_volume;
this.federation = federation;
}

View file

@ -160,6 +160,20 @@
</InputGroup>
</FormGroup>
<FormGroup>
<Label for="startVolume">Volume de départ</Label>
<InputGroup>
<Input
type="range"
id="startVolume"
min="0"
max="65535"
bind:value={settings.start_volume}
on:input={() => submitSettings(settings)}
/>
</InputGroup>
</FormGroup>
<FormGroup>
<Label for="federation">Federation</Label>
<FederationSettings