From 46f230c7605ba86d935c107e4cf3044efa3d11ee Mon Sep 17 00:00:00 2001 From: Stephan Stricker Date: Sun, 3 Dec 2023 16:38:54 +0100 Subject: [PATCH] Admin config files --- admin/i18n/de/translations.json | 12 +- admin/i18n/en/translations.json | 10 +- admin/i18n/es/translations.json | 12 +- admin/i18n/fr/translations.json | 12 +- admin/i18n/it/translations.json | 12 +- admin/i18n/nl/translations.json | 12 +- admin/i18n/pl/translations.json | 12 +- admin/i18n/pt/translations.json | 12 +- admin/i18n/ru/translations.json | 12 +- admin/i18n/uk/translations.json | 12 +- admin/i18n/zh-cn/translations.json | 12 +- admin/jsonConfig.json | 51 ++++++- io-package.json | 228 +++++++++++++++-------------- 13 files changed, 250 insertions(+), 159 deletions(-) diff --git a/admin/i18n/de/translations.json b/admin/i18n/de/translations.json index 3e89ed4..3212d5b 100644 --- a/admin/i18n/de/translations.json +++ b/admin/i18n/de/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Adaptereinstellungen für srm", - "option1": "Option 1", - "option2": "Option 2" -} \ No newline at end of file + "srm adapter settings": "Adaptereinstellungen für SRM", + "Synology Router": "Synology-Router", + "IP address of the Synology router": "IP-Adresse des Synology-Routers", + "User name": "Nutzername", + "User password": "Benutzer-Passwort", + "Polling interval (in seconds)": "Abfrageintervall (in Sekunden)", + "Allow anonymous usage statistics with Sentry": "Erlauben Sie anonyme Nutzungsstatistiken mit Sentry" +} diff --git a/admin/i18n/en/translations.json b/admin/i18n/en/translations.json index 94e4636..32f0690 100644 --- a/admin/i18n/en/translations.json +++ b/admin/i18n/en/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Adapter settings for srm", - "option1": "option1", - "option2": "option2" + "srm adapter settings": "Adapter settings for SRM", + "Synology Router": "Synology Router", + "IP address of the Synology router": "IP address of the Synology router", + "User name": "User name", + "User password": "User password", + "Polling interval (in seconds)": "Polling interval (in seconds)", + "Allow anonymous usage statistics with Sentry": "Allow anonymous usage statistics with Sentry" } \ No newline at end of file diff --git a/admin/i18n/es/translations.json b/admin/i18n/es/translations.json index a356ae5..a9c4c63 100644 --- a/admin/i18n/es/translations.json +++ b/admin/i18n/es/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Ajustes del adaptador para srm", - "option1": "Opción 1", - "option2": "opcion 2" -} \ No newline at end of file + "srm adapter settings": "Configuración del adaptador para SRM", + "Synology Router": "Enrutador Synology", + "IP address of the Synology router": "Dirección IP del enrutador Synology", + "User name": "Nombre de usuario", + "User password": "Contraseña de usuario", + "Polling interval (in seconds)": "Intervalo de sondeo (en segundos)", + "Allow anonymous usage statistics with Sentry": "Permitir estadísticas de uso anónimas con Sentry" +} diff --git a/admin/i18n/fr/translations.json b/admin/i18n/fr/translations.json index 07f1f28..02072cf 100644 --- a/admin/i18n/fr/translations.json +++ b/admin/i18n/fr/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Paramètres d'adaptateur pour srm", - "option1": "Option 1", - "option2": "Option 2" -} \ No newline at end of file + "srm adapter settings": "Paramètres de l'adaptateur pour SRM", + "Synology Router": "Routeur Synology", + "IP address of the Synology router": "Adresse IP du routeur Synology", + "User name": "Nom d'utilisateur", + "User password": "Mot de passe de l'utilisateur", + "Polling interval (in seconds)": "Intervalle d'interrogation (en secondes)", + "Allow anonymous usage statistics with Sentry": "Autoriser les statistiques d'utilisation anonymes avec Sentry" +} diff --git a/admin/i18n/it/translations.json b/admin/i18n/it/translations.json index 00c1f67..8e7de4c 100644 --- a/admin/i18n/it/translations.json +++ b/admin/i18n/it/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Impostazioni dell'adattatore per srm", - "option1": "opzione 1", - "option2": "opzione 2" -} \ No newline at end of file + "srm adapter settings": "Impostazioni dell'adattatore per SRM", + "Synology Router": "SynologyRouter", + "IP address of the Synology router": "Indirizzo IP del router Synology", + "User name": "Nome utente", + "User password": "Password utente", + "Polling interval (in seconds)": "Intervallo di polling (in secondi)", + "Allow anonymous usage statistics with Sentry": "Consenti statistiche di utilizzo anonime con Sentry" +} diff --git a/admin/i18n/nl/translations.json b/admin/i18n/nl/translations.json index 1c92048..5728e12 100644 --- a/admin/i18n/nl/translations.json +++ b/admin/i18n/nl/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Adapterinstellingen voor srm", - "option1": "Optie 1", - "option2": "Optie 2" -} \ No newline at end of file + "srm adapter settings": "Adapterinstellingen voor SRM", + "Synology Router": "Synology-router", + "IP address of the Synology router": "IP-adres van de Synology-router", + "User name": "Gebruikersnaam", + "User password": "Gebruikerswachtwoord", + "Polling interval (in seconds)": "Polling-interval (in seconden)", + "Allow anonymous usage statistics with Sentry": "Sta anonieme gebruiksstatistieken toe met Sentry" +} diff --git a/admin/i18n/pl/translations.json b/admin/i18n/pl/translations.json index 76adc6c..e982007 100644 --- a/admin/i18n/pl/translations.json +++ b/admin/i18n/pl/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Ustawienia adaptera dla srm", - "option1": "opcja 1", - "option2": "Opcja 2" -} \ No newline at end of file + "srm adapter settings": "Ustawienia adaptera dla SRM", + "Synology Router": "Router Synology", + "IP address of the Synology router": "Adres IP routera Synology", + "User name": "Nazwa użytkownika", + "User password": "Hasło użytkownika", + "Polling interval (in seconds)": "Interwał odpytywania (w sekundach)", + "Allow anonymous usage statistics with Sentry": "Zezwalaj na anonimowe statystyki użytkowania z Sentry" +} diff --git a/admin/i18n/pt/translations.json b/admin/i18n/pt/translations.json index d7b6d61..5d8d4a4 100644 --- a/admin/i18n/pt/translations.json +++ b/admin/i18n/pt/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Configurações do adaptador para srm", - "option1": "Opção 1", - "option2": "opção 2" -} \ No newline at end of file + "srm adapter settings": "Configurações do adaptador para SRM", + "Synology Router": "Roteador Synology", + "IP address of the Synology router": "Endereço IP do roteador Synology", + "User name": "Nome de usuário", + "User password": "Senha do usuário", + "Polling interval (in seconds)": "Intervalo de pesquisa (em segundos)", + "Allow anonymous usage statistics with Sentry": "Permitir estatísticas de uso anônimas com Sentry" +} diff --git a/admin/i18n/ru/translations.json b/admin/i18n/ru/translations.json index 4582237..1611d3a 100644 --- a/admin/i18n/ru/translations.json +++ b/admin/i18n/ru/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Настройки адаптера для srm", - "option1": "Опция 1", - "option2": "вариант 2" -} \ No newline at end of file + "srm adapter settings": "Настройки адаптера для SRM", + "Synology Router": "Маршрутизатор Synology", + "IP address of the Synology router": "IP-адрес маршрутизатора Synology", + "User name": "Имя пользователя", + "User password": "Пользовательский пароль", + "Polling interval (in seconds)": "Интервал опроса (в секундах)", + "Allow anonymous usage statistics with Sentry": "Разрешить анонимную статистику использования с помощью Sentry" +} diff --git a/admin/i18n/uk/translations.json b/admin/i18n/uk/translations.json index 8af60a6..f75720a 100644 --- a/admin/i18n/uk/translations.json +++ b/admin/i18n/uk/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "Налаштування адаптера для srm", - "option1": "варіант1", - "option2": "варіант2" -} \ No newline at end of file + "srm adapter settings": "Налаштування адаптера для SRM", + "Synology Router": "Маршрутизатор Synology", + "IP address of the Synology router": "IP-адреса маршрутизатора Synology", + "User name": "Ім'я користувача", + "User password": "Пароль користувача", + "Polling interval (in seconds)": "Інтервал опитування (у секундах)", + "Allow anonymous usage statistics with Sentry": "Дозволити анонімну статистику використання за допомогою Sentry" +} diff --git a/admin/i18n/zh-cn/translations.json b/admin/i18n/zh-cn/translations.json index 0f507e1..a24aa40 100644 --- a/admin/i18n/zh-cn/translations.json +++ b/admin/i18n/zh-cn/translations.json @@ -1,5 +1,9 @@ { - "srm adapter settings": "srm的适配器设置", - "option1": "选项1", - "option2": "选项2" -} \ No newline at end of file + "srm adapter settings": "SRM 的适配器设置", + "Synology Router": "Synology 路由器", + "IP address of the Synology router": "Synology 路由器的 IP 地址", + "User name": "用户名", + "User password": "用户密码", + "Polling interval (in seconds)": "轮询间隔(以秒为单位)", + "Allow anonymous usage statistics with Sentry": "允许使用 Sentry 进行匿名使用统计" +} diff --git a/admin/jsonConfig.json b/admin/jsonConfig.json index ee75319..1bbae63 100644 --- a/admin/jsonConfig.json +++ b/admin/jsonConfig.json @@ -2,15 +2,52 @@ "i18n": true, "type": "panel", "items": { - "option1": { - "type": "checkbox", - "label": "option1", - "newLine": true + "label": "Synology Router", + "IP": { + "type": "text", + "sm": 12, + "md": 6, + "lg": 6, + "label": "IP address of the Synology router" }, - "option2": { + "port": { "type": "text", - "label": "option2", - "newLine": true + "label": "Port of the Synology router", + "sm": 12, + "md": 6, + "lg": 6, + "min": 1, + "max": 65535 + }, + "user": { + "newLine": true, + "type": "text", + "label": "User name", + "sm": 12, + "md": 6, + "lg": 6 + }, + "password": { + "type": "text", + "label": "User password", + "sm": 12, + "md": 6, + "lg": 6 + }, + "interval": { + "newLine": true, + "type": "number", + "label": "Polling interval (in seconds)", + "sm": 12, + "md": 6, + "lg": 6 + }, + "sentry": { + "type": "checkbox", + "label": "Allow anonymous usage statistics with Sentry", + "sm": 12, + "md": 6, + "lg": 6 } } } \ No newline at end of file diff --git a/io-package.json b/io-package.json index 8b67bbd..80d3db4 100644 --- a/io-package.json +++ b/io-package.json @@ -1,110 +1,120 @@ { - "common": { - "name": "srm", - "version": "0.0.1", - "news": { - "0.0.1": { - "en": "initial release", - "de": "Erstveröffentlichung", - "ru": "Начальная версия", - "pt": "lançamento inicial", - "nl": "Eerste uitgave", - "fr": "Première version", - "it": "Versione iniziale", - "es": "Versión inicial", - "pl": "Pierwsze wydanie", - "uk": "Початкова версія", - "zh-cn": "首次出版" - } - }, - "title": "Synology Router", - "titleLang": { - "en": "Synology Router", - "de": "Synology-Router", - "ru": "Маршрутизатор Synology", - "pt": "Roteador Synology", - "nl": "Synology-router", - "fr": "Routeur Synology", - "it": "SynologyRouter", - "es": "Enrutador Synology", - "pl": "Router Synology", - "uk": "Маршрутизатор Synology", - "zh-cn": "Synology 路由器" - }, - "desc": { - "en": "This adapater allows you to connect to a Synology router", - "de": "Mit diesem Adapter können Sie eine Verbindung zu einem Synology-Router herstellen", - "ru": "Этот адаптер позволяет подключаться к маршрутизатору Synology.", - "pt": "Este adaptador permite que você se conecte a um roteador Synology", - "nl": "Met deze adapter kunt u verbinding maken met een Synology-router", - "fr": "Cet adaptateur vous permet de vous connecter à un routeur Synology", - "it": "Questo adattatore consente di connettersi a un router Synology", - "es": "Este adaptador le permite conectarse a un enrutador Synology", - "pl": "Ten adapter umożliwia połączenie z routerem Synology", - "uk": "Цей адаптер дозволяє підключатися до маршрутизатора Synology", - "zh-cn": "此适配器允许您连接到 Synology 路由器" - }, - "authors": [ - "stephan stricker " - ], - "keywords": [ - "SRM", - "Synology", - "Router" - ], - "license": "MIT", - "platform": "Javascript/Node.js", - "main": "main.js", - "icon": "srm.png", - "enabled": true, - "extIcon": "https://raw.githubusercontent.com/stephan1827/ioBroker.srm/main/admin/srm.png", - "readme": "https://github.com/stephan1827/ioBroker.srm/blob/main/README.md", - "loglevel": "info", - "mode": "daemon", - "type": "hardware", - "compact": true, - "connectionType": "local", - "dataSource": "poll", - "adminUI": { - "config": "json" - }, - "dependencies": [ - { - "js-controller": ">=3.3.22" - } - ], - "globalDependencies": [ - { - "admin": ">=5.1.13" - } - ] - }, - "native": { - "option1": true, - "option2": "42" - }, - "objects": [], - "instanceObjects": [ - { - "_id": "info", - "type": "channel", - "common": { - "name": "Information" - }, - "native": {} - }, - { - "_id": "info.connection", - "type": "state", - "common": { - "role": "indicator.connected", - "name": "Device or service connected", - "type": "boolean", - "read": true, - "write": false, - "def": false - }, - "native": {} - } - ] -} \ No newline at end of file + "common": { + "name": "srm", + "version": "0.0.1", + "news": { + "0.0.1": { + "en": "initial release", + "de": "Erstveröffentlichung", + "ru": "Начальная версия", + "pt": "lançamento inicial", + "nl": "Eerste uitgave", + "fr": "Première version", + "it": "Versione iniziale", + "es": "Versión inicial", + "pl": "Pierwsze wydanie", + "uk": "Початкова версія", + "zh-cn": "首次出版" + } + }, + "title": "Synology Router", + "titleLang": { + "en": "Synology Router", + "de": "Synology-Router", + "ru": "Маршрутизатор Synology", + "pt": "Roteador Synology", + "nl": "Synology-router", + "fr": "Routeur Synology", + "it": "SynologyRouter", + "es": "Enrutador Synology", + "pl": "Router Synology", + "uk": "Маршрутизатор Synology", + "zh-cn": "Synology 路由器" + }, + "desc": { + "en": "This adapater allows you to connect to a Synology router", + "de": "Mit diesem Adapter können Sie eine Verbindung zu einem Synology-Router herstellen", + "ru": "Этот адаптер позволяет подключаться к маршрутизатору Synology.", + "pt": "Este adaptador permite que você se conecte a um roteador Synology", + "nl": "Met deze adapter kunt u verbinding maken met een Synology-router", + "fr": "Cet adaptateur vous permet de vous connecter à un routeur Synology", + "it": "Questo adattatore consente di connettersi a un router Synology", + "es": "Este adaptador le permite conectarse a un enrutador Synology", + "pl": "Ten adapter umożliwia połączenie z routerem Synology", + "uk": "Цей адаптер дозволяє підключатися до маршрутизатора Synology", + "zh-cn": "此适配器允许您连接到 Synology 路由器" + }, + "authors": [ + "stephan stricker " + ], + "keywords": [ + "SRM", + "Synology", + "Router" + ], + "license": "MIT", + "platform": "Javascript/Node.js", + "main": "main.js", + "icon": "srm.png", + "enabled": true, + "extIcon": "https://raw.githubusercontent.com/stephan1827/ioBroker.srm/main/admin/srm.png", + "readme": "https://github.com/stephan1827/ioBroker.srm/blob/main/README.md", + "loglevel": "info", + "mode": "daemon", + "type": "hardware", + "compact": true, + "connectionType": "local", + "dataSource": "poll", + "adminUI": { + "config": "json" + }, + "dependencies": [ + { + "js-controller": ">=3.3.22" + } + ], + "globalDependencies": [ + { + "admin": ">=5.1.13" + } + ] + }, + "encryptedNative": [ + "password" + ], + "protectedNative": [ + "password" + ], + "native": { + "IP": "192.168.0.1", + "user": "admin", + "password": "", + "interval": "60", + "port": "8001", + "sentry": true + }, + "objects": [], + "instanceObjects": [ + { + "_id": "info", + "type": "channel", + "common": { + "name": "Information" + }, + "native": {} + }, + { + "_id": "info.connection", + "type": "state", + "common": { + "role": "indicator.connected", + "name": "Device or service connected", + "type": "boolean", + "read": true, + "write": false, + "def": false + }, + "native": {} + } + ] +}