From 2797edb0f724633a09d951121ef72c57f8f339ec Mon Sep 17 00:00:00 2001 From: tueddy Date: Sun, 11 Jun 2023 22:40:22 +0200 Subject: [PATCH 1/3] Bluetooth configuration tab in web-interface --- html/locales/de.json | 22 ++++++++++++++ html/locales/en.json | 22 ++++++++++++++ html/management.html | 52 ++++++++++++++++++++++++++++++++++ src/Bluetooth.cpp | 11 +++++-- src/Web.cpp | 19 ++++++++++++- src/settings-override.h.sample | 1 - src/settings.h | 1 - 7 files changed, 122 insertions(+), 6 deletions(-) diff --git a/html/locales/de.json b/html/locales/de.json index 7235f5c6..f8edc57f 100644 --- a/html/locales/de.json +++ b/html/locales/de.json @@ -18,6 +18,7 @@ "wifi": "WLAN", "mqtt": "MQTT", "ftp": "FTP", + "bluetooth": "Bluetooth", "general": "Allgemein", "tools": "Tools", "forum": "Forum" @@ -204,6 +205,27 @@ "button": "FTP-Server starten" } }, + "bt": { + "sink": { + "title": "ESPuino als Bluetooth Lautsprecher", + "desc": "ESPuino wird als Bluetooth-Lautsprecher gestartet. Nach dem Wechsel in diesen Modus wird die Weboberfläche nicht länger erreichbar sein.", + "button": "Als Bluetooth Lautsprecher starten" + }, + "source": { + "configtitle": "Bluetooth Kopfhörer Einstellungen", + "title": "Mit Bluetooth Kopfhörer verbinden", + "desc": "Das Gerät verbindet sich mit dem angegebenen Bluetooth Kopfhörer. Nach dem Wechsel in diesen Modus wird die Weboberfläche nicht länger erreichbar sein.", + "button": "Im Kophörer-Modus starten" + }, + "device": { + "title": "Bluetooth-Gerät (Kopfhörer)", + "placeholder": "z.B. My POGS Wireless Headphone" + }, + "pincode": { + "title": "Pairing PIN-Code", + "placeholder": "z.B. 0000" + } + }, "general": { "volume": { "title": "Lautstärke", diff --git a/html/locales/en.json b/html/locales/en.json index e4faaa82..0d95e823 100644 --- a/html/locales/en.json +++ b/html/locales/en.json @@ -18,6 +18,7 @@ "wifi": "WiFi", "mqtt": "MQTT", "ftp": "FTP", + "bluetooth": "Bluetooth", "general": "General", "tools": "Tools", "forum": "Forum" @@ -204,6 +205,27 @@ "button": "Start FTP-server" } }, + "bt": { + "sink": { + "title": "ESPuino as Bluetooth speaker", + "desc": "ESPuino is started as a Bluetooth speaker. After switching to this mode, the web interface will no longer be accessible.", + "button": "Start as Bluetooth speaker" + }, + "source": { + "configtitle": "Bluetooth headphone settings", + "title": "Connect with Bluetooth headphone", + "desc": "The device connects to the specified Bluetooth headset. After switching to this mode, the web interface will no longer be accessible.", + "button": "Start in headphone mode" + }, + "device": { + "title": "Bluetooth device (headphone)", + "placeholder": "e.g. My POGS Wireless Headphone" + }, + "pincode": { + "title": "Pairing PIN-Code", + "placeholder": "e.g. 0000" + } + }, "general": { "volume": { "title": "Volume", diff --git a/html/management.html b/html/management.html index 10a04c79..921ca616 100644 --- a/html/management.html +++ b/html/management.html @@ -166,6 +166,7 @@ WiFi %SHOW_MQTT_TAB% %SHOW_FTP_TAB% + %SHOW_BLUETOOTH_TAB% General Tools Forum @@ -487,6 +488,45 @@ +