diff --git a/plugins/music_service/squeezelite/UIConfig.json b/plugins/music_service/squeezelite/UIConfig.json
index 1ec82e9d2..ca614b741 100644
--- a/plugins/music_service/squeezelite/UIConfig.json
+++ b/plugins/music_service/squeezelite/UIConfig.json
@@ -4,15 +4,15 @@
},
"sections": [
{
- "id": "section_serverconf",
+ "id": "section_serviceconf",
"element": "section",
- "label": "TRANSLATE.SQUEEZELITE.SERVER",
- "description": "TRANSLATE.SQUEEZELITE.D_SERVER",
- "icon": "fa-server",
+ "label": "TRANSLATE.SQUEEZELITE.SERVICE",
+ "description": "TRANSLATE.SQUEEZELITE.D_SERVICE",
+ "icon": "fa-cogs",
"onSave": {
"type": "controller",
"endpoint": "music_service/squeezelite",
- "method": "updateSqueezeliteServerConfig"
+ "method": "updateSqueezeliteServiceConfig"
},
"saveButton": {
"label": "TRANSLATE.SQUEEZELITE.SAVE",
@@ -54,6 +54,7 @@
"label": "TRANSLATE.SQUEEZELITE.SAVE",
"data": [
"output_device",
+ "soundcard_timeout",
"alsa_params",
"extra_params"
]
@@ -70,6 +71,17 @@
},
"options": []
},
+ {
+ "id": "soundcard_timeout",
+ "element": "select",
+ "label": "TRANSLATE.SQUEEZELITE.SOUNDCARD_TIMEOUT",
+ "doc": "TRANSLATE.SQUEEZELITE.D_SOUNDCARD_TIMEOUT",
+ "value": {
+ "value": "2",
+ "label": "2"
+ },
+ "options": []
+ },
{
"id": "alsa_params",
"type":"text",
diff --git a/plugins/music_service/squeezelite/config.json b/plugins/music_service/squeezelite/config.json
index af56d1d5c..a15216b52 100644
--- a/plugins/music_service/squeezelite/config.json
+++ b/plugins/music_service/squeezelite/config.json
@@ -11,6 +11,10 @@
"type": "string",
"value": "default"
},
+ "soundcard_timeout": {
+ "type": "string",
+ "value": "2"
+ },
"alsa_params": {
"type": "string",
"value": "80:4::"
diff --git a/plugins/music_service/squeezelite/i18n/strings_en.json b/plugins/music_service/squeezelite/i18n/strings_en.json
index 96deb3d8c..c4942cfe4 100644
--- a/plugins/music_service/squeezelite/i18n/strings_en.json
+++ b/plugins/music_service/squeezelite/i18n/strings_en.json
@@ -1,16 +1,18 @@
{
"SQUEEZELITE":{
"SQUEEZELITECONF":"Squeezelite Configuration",
- "SERVER":"Configure server",
- "D_CONFIG":"The below settings are for server relation configuration.",
+ "SERVICE":"Configure service",
+ "D_SERVICE":"The below settings are for service configuration.",
"PLAYER_ENABLED":"Enable auto-start of service",
- "D_PLAYER_ENABLED":"If set to ON the Squeezelite-server will start on boot, else you must manually start the service to use it.",
+ "D_PLAYER_ENABLED":"If set to ON the Squeezelite-service will start on boot, else you must manually start the service to use it.",
"INSTANCE_NAME":"Instance name",
"D_INSTANCE_NAME":"Controls how the player will appear in the LMS webconsole.",
"AUDIO":"Configure audio output settings",
"D_AUDIO":"Sound output can be controlled with the below settings.",
"OUTPUT_DEVICE":"Output device",
"D_OUTPUT_DEVICE":"Choose the output device you want to use for this Squeezelite instance.",
+ "SOUNDCARD_TIMEOUT":"Close soundcard after x seconds",
+ "D_SOUNDCARD_TIMEOUT":"Close output device when idle after timeout seconds, default is to keep it open while player is 'on'",
"ALSAPARAMS":"ALSA Parameters",
"D_ALSAPARAMS":"Fill in the ALSA parameters, don't change them if you have no idea what you are doing (default = 80:4::).
Formatting is as follows: b:p:f:m