Skip to content

Commit

Permalink
add config.reconnectTime
Browse files Browse the repository at this point in the history
  • Loading branch information
ticaki committed Jan 3, 2025
1 parent 6554746 commit 66a47f4
Show file tree
Hide file tree
Showing 30 changed files with 279 additions and 1,889 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Dann mache ich ihn noch schön.
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**
* (ticaki) Adjustable reconnection interval. State to activate accelerated reconnection
* (ticaki) Incoming updates for leds are handled (most updates force a complete update of the data unless I have added code to handle - leds, components, effects so far)
* (ticaki) Added a json data point for priorities to allow better access from the javascript adapter
* (ticaki) Added leds update handling
Expand Down
6 changes: 4 additions & 2 deletions admin/i18n/de/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"controls.action": "JSON-Befehl",
"controls.channel": "Befehle werden an den Server gesendet",
"devices": "Geräte",
"enabled": "Ermöglicht",
"enabled": "Aktiviert",
"getDevices": "Geräte aktualisieren",
"hyperion-ng2 adapter settings": "Adaptereinstellungen für hyperion-ng2"
"hyperion-ng2 adapter settings": "Adaptereinstellungen für hyperion-ng2",
"reconnectTime": "Wiederverbindungsintervall",
"reconnectTime_tooltip": "Zeit in Sekunden, die gewartet werden muss, bevor versucht wird, die Verbindung zum Server wiederherzustellen (Min.: 3 Sekunden)"
}
4 changes: 3 additions & 1 deletion admin/i18n/en/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "Devices",
"enabled": "Enabled",
"getDevices": "Refresh Devices",
"hyperion-ng2 adapter settings": "Adapter settings for hyperion-ng2"
"hyperion-ng2 adapter settings": "Adapter settings for hyperion-ng2",
"reconnectTime":"Reconnect interval",
"reconnectTime_tooltip":"Time in seconds to wait before trying to reconnect to the server (min: 3s)"
}
4 changes: 3 additions & 1 deletion admin/i18n/es/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "Dispositivos",
"enabled": "Activado",
"getDevices": "Actualizar dispositivos",
"hyperion-ng2 adapter settings": "Ajustes del adaptador para hyperion-ng2"
"hyperion-ng2 adapter settings": "Ajustes del adaptador para hyperion-ng2",
"reconnectTime": "Intervalo de reconexión",
"reconnectTime_tooltip": "Tiempo en segundos de espera antes de intentar volver a conectarse al servidor (min: 3 s)"
}
4 changes: 3 additions & 1 deletion admin/i18n/fr/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "Appareils",
"enabled": "Activé",
"getDevices": "Actualiser les appareils",
"hyperion-ng2 adapter settings": "Paramètres d'adaptateur pour hyperion-ng2"
"hyperion-ng2 adapter settings": "Paramètres d'adaptateur pour hyperion-ng2",
"reconnectTime": "Intervalle de reconnexion",
"reconnectTime_tooltip": "Temps d'attente en secondes avant d'essayer de se reconnecter au serveur (min : 3 s)"
}
4 changes: 3 additions & 1 deletion admin/i18n/it/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "Dispositivi",
"enabled": "Abilitato",
"getDevices": "Aggiorna dispositivi",
"hyperion-ng2 adapter settings": "Impostazioni dell'adattatore per hyperion-ng2"
"hyperion-ng2 adapter settings": "Impostazioni dell'adattatore per hyperion-ng2",
"reconnectTime": "Intervallo di riconnessione",
"reconnectTime_tooltip": "Tempo in secondi di attesa prima di tentare di riconnettersi al server (min: 3s)"
}
4 changes: 3 additions & 1 deletion admin/i18n/nl/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "Apparaten",
"enabled": "Ingeschakeld",
"getDevices": "Apparaten vernieuwen",
"hyperion-ng2 adapter settings": "Adapterinstellingen voor hyperion-ng2"
"hyperion-ng2 adapter settings": "Adapterinstellingen voor hyperion-ng2",
"reconnectTime": "Interval opnieuw verbinden",
"reconnectTime_tooltip": "Wachttijd in seconden voordat opnieuw verbinding met de server wordt gemaakt (min: 3s)"
}
4 changes: 3 additions & 1 deletion admin/i18n/pl/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "Urządzenia",
"enabled": "Włączony",
"getDevices": "Odśwież urządzenia",
"hyperion-ng2 adapter settings": "Ustawienia adaptera dla hyperion-ng2"
"hyperion-ng2 adapter settings": "Ustawienia adaptera dla hyperion-ng2",
"reconnectTime": "Interwał ponownego połączenia",
"reconnectTime_tooltip": "Czas oczekiwania w sekundach przed próbą ponownego połączenia z serwerem (min: 3 s)"
}
4 changes: 3 additions & 1 deletion admin/i18n/pt/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "Dispositivos",
"enabled": "Habilitado",
"getDevices": "Atualizar dispositivos",
"hyperion-ng2 adapter settings": "Configurações do adaptador para hyperion-ng2"
"hyperion-ng2 adapter settings": "Configurações do adaptador para hyperion-ng2",
"reconnectTime": "Intervalo de reconexão",
"reconnectTime_tooltip": "Tempo em segundos para esperar antes de tentar se reconectar ao servidor (min: 3s)"
}
4 changes: 3 additions & 1 deletion admin/i18n/ru/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "Устройства",
"enabled": "Включено",
"getDevices": "Обновить устройства",
"hyperion-ng2 adapter settings": "Настройки адаптера для hyperion-ng2"
"hyperion-ng2 adapter settings": "Настройки адаптера для hyperion-ng2",
"reconnectTime": "Интервал повторного подключения",
"reconnectTime_tooltip": "Время ожидания в секундах перед попыткой повторного подключения к серверу (мин: 3 с)"
}
4 changes: 3 additions & 1 deletion admin/i18n/uk/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "Пристрої",
"enabled": "Увімкнено",
"getDevices": "Оновити пристрої",
"hyperion-ng2 adapter settings": "Налаштування адаптера для hyperion-ng2"
"hyperion-ng2 adapter settings": "Налаштування адаптера для hyperion-ng2",
"reconnectTime": "Інтервал повторного підключення",
"reconnectTime_tooltip": "Час очікування в секундах перед повторним підключенням до сервера (хв.: 3 с)"
}
4 changes: 3 additions & 1 deletion admin/i18n/zh-cn/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"devices": "设备",
"enabled": "启用",
"getDevices": "刷新设备",
"hyperion-ng2 adapter settings": "hyperion-ng2的适配器设置"
"hyperion-ng2 adapter settings": "hyperion-ng2的适配器设置",
"reconnectTime": "重连间隔",
"reconnectTime_tooltip": "尝试重新连接到服务器之前等待的时间(以秒为单位)(分钟:3 秒)"
}
138 changes: 76 additions & 62 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,68 +19,82 @@
"lg": 12,
"xl": 12
},
"devices":{
"type": "table",
"label": "devices",
"items": [
{
"type": "checkbox",
"attr": "enabled",
"title": "enabled",
"width": "5%",
"default": true
},
{
"type": "text",
"attr": "name",
"title": "ServerName",
"readOnly": true,
"disabled": "true"
},
{
"type": "select",
"attr": "protocol",
"title": "ServerProtocol",
"validator": "data.ServerProtocol !== ''",
"validatorNoSaveOnError": true,
"width": "5%",
"options": [
{
"label": "http://",
"value": "http:"
},
{
"label": "https://",
"value": "https:"
}
],
"default": "http:"
},
{
"type": "text",
"attr": "ip",
"title": "ServerIP",
"validator": "data.ip !== ''",
"validatorNoSaveOnError": true
},
{
"type": "number",
"attr": "port",
"title": "ServerPort",
"validator": "data.port>0 && data.port<65536",
"validatorNoSaveOnError": true,
"width": "7%",
"default": 8090
},

{
"type": "text",
"attr": "token",
"title": "Token",
"allowEmpty": true
}
]
"devices":{
"type": "table",
"label": "devices",
"items": [
{
"type": "checkbox",
"attr": "enabled",
"title": "enabled",
"width": "5%",
"default": true
},
{
"type": "text",
"attr": "name",
"title": "ServerName",
"readOnly": true,
"disabled": "true"
},
{
"type": "select",
"attr": "protocol",
"title": "ServerProtocol",
"validator": "data.ServerProtocol !== ''",
"validatorNoSaveOnError": true,
"width": "5%",
"options": [
{
"label": "http://",
"value": "http:"
},
{
"label": "https://",
"value": "https:"
}
],
"default": "http:"
},
{
"type": "text",
"attr": "ip",
"title": "ServerIP",
"validator": "data.ip !== ''",
"validatorNoSaveOnError": true
},
{
"type": "number",
"attr": "port",
"title": "ServerPort",
"validator": "data.port>0 && data.port<65536",
"validatorNoSaveOnError": true,
"width": "7%",
"default": 8090
},

{
"type": "text",
"attr": "token",
"title": "Token",
"allowEmpty": true
}
}
]
},
"reconnectTime": {
"type": "number",
"label": "reconnectTime",
"unit": "s",
"tooltip": "reconnectTime_tooltip",
"min": 3,
"default": 60,
"xs": 12,
"sm": 8,
"md": 6,
"lg": 4,
"xl": 4
}
}


}
4 changes: 2 additions & 2 deletions build/lib/controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 66a47f4

Please sign in to comment.