Skip to content

Commit

Permalink
Message buffer implemented to avoid system overload, should improve #382
Browse files Browse the repository at this point in the history
  • Loading branch information
DutchmanNL committed Oct 29, 2023
1 parent 321f717 commit 257c0d9
Show file tree
Hide file tree
Showing 18 changed files with 3,655 additions and 4,479 deletions.
Binary file modified .DS_Store
Binary file not shown.
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,41 @@ Set the proper device (example /dev/ttyUSB0) in adapter config.
<!--
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->
-->

### 0.3.1 (2023-10-29)
* (DutchmanNL) Message buffer implemented to avoid system overload

### 0.3.0 (2023-08-07) - Support Protocol Version 3.33
* (DutchmanNL) Bugfixes
* ([Andiling](https://github.com/andiling)) Update to support Protocol Version 3.33

* ([Andiling](https://github.com/andiling)) Update to support Protocol Version 3.33

### 0.2.0 (2023-08-06) - Implement protocol Version 3.32
* (DutchmanNL) Code optimization
* ([Andiling](https://github.com/andiling)) Add new product names of Vedirect
* ([Andiling](https://github.com/andiling)) Add option to admin for state expiration
* (DutchmanNL) Update dependencies * testing for NodeJS 18/20

* (DutchmanNL) Update dependencies * testing for NodeJS 18/20

### 0.1.2 (2020-10-06)
* (DutchmanNL) Fix sentry issue, error in opening USB-Port

* (DutchmanNL) Fix sentry issue, error in opening USB-Port

### 0.1.1
* (DutchmanNL) Set state to NULL if no data received within 2 seconds.

* (DutchmanNL) Set state to NULL if no data received within 2 seconds.

### 0.1.0
* ([Andiling](https://github.com/andiling)) error in device modes corrected

* ([Andiling](https://github.com/andiling)) error in device modes corrected

### 0.0.9
* ([Andiling](https://github.com/andiling)) improve state attributes

* ([Andiling](https://github.com/andiling)) improve state attributes

### 0.0.8
* (DutchmanNL) set connection state to false when no data received for 10 seconds
* (DutchmanNL & Andiling) reconnect to USB when connection lost
* (DutchmanNL & Andiling) Update state attributes

* (DutchmanNL & Andiling) Update state attributes

### 0.0.7
* (DutchmanNL & [Andiling](https://github.com/andiling)) Alpha release

* (DutchmanNL & [Andiling](https://github.com/andiling)) Alpha release

## License
MIT License

Expand Down
8 changes: 8 additions & 0 deletions admin/i18n/de/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "Puffern Sie Nachrichten in Sekundenschnelle, um eine Systemüberlastung zu vermeiden",
"Leave empty or 0 to not expire states": "Leer lassen oder 0, um den Status nicht abzulaufen",
"Please choose your preferred settings": "Bitte wählen Sie Ihre bevorzugten Einstellungen",
"USBDevice": "USB-Geräteanschluss",
"expireTime": "Ablaufzeit der Zustände in Sekunden",
"messageBuffer": "Puffer in Sekunden, um Nachrichten zu ignorieren"
}
4 changes: 3 additions & 1 deletion admin/i18n/en/translations.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "Buffer messages in seconds to avoid system overload",
"Leave empty or 0 to not expire states": "Leave empty or 0 to not expire states",
"Please choose your preferred settings": "Please choose your preferred settings",
"USBDevice": "USB device Port",
"expireTime": "Expiration time of states in seconds"
"expireTime": "Expiration time of states in seconds",
"messageBuffer": "Buffer in seconds to ignore messages"
}
8 changes: 8 additions & 0 deletions admin/i18n/es/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "Almacene los mensajes en segundos para evitar la sobrecarga del sistema",
"Leave empty or 0 to not expire states": "Déjelo vacío o 0 para que no caduquen los estados",
"Please choose your preferred settings": "Por favor elige tu configuración preferida",
"USBDevice": "Puerto del dispositivo USB",
"expireTime": "Tiempo de vencimiento de los estados en segundos.",
"messageBuffer": "Buffer en segundos para ignorar mensajes"
}
8 changes: 8 additions & 0 deletions admin/i18n/fr/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "Tamponnez les messages en quelques secondes pour éviter la surcharge du système",
"Leave empty or 0 to not expire states": "Laissez vide ou 0 pour ne pas expirer les états",
"Please choose your preferred settings": "Veuillez choisir vos paramètres préférés",
"USBDevice": "Port de périphérique USB",
"expireTime": "Temps d'expiration des états en secondes",
"messageBuffer": "Tampon en quelques secondes pour ignorer les messages"
}
8 changes: 8 additions & 0 deletions admin/i18n/it/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "Buffer dei messaggi in pochi secondi per evitare il sovraccarico del sistema",
"Leave empty or 0 to not expire states": "Lascia vuoto o 0 per non far scadere gli stati",
"Please choose your preferred settings": "Scegli le impostazioni preferite",
"USBDevice": "Porta del dispositivo USB",
"expireTime": "Tempo di scadenza degli stati in secondi",
"messageBuffer": "Buffer in pochi secondi per ignorare i messaggi"
}
8 changes: 8 additions & 0 deletions admin/i18n/nl/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "Buffer berichten binnen enkele seconden om systeemoverbelasting te voorkomen",
"Leave empty or 0 to not expire states": "Laat leeg of 0 om de status niet te laten verlopen",
"Please choose your preferred settings": "Kies uw voorkeursinstellingen",
"USBDevice": "USB-apparaatpoort",
"expireTime": "Vervaltijd van staten in seconden",
"messageBuffer": "Buffer in seconden om berichten te negeren"
}
8 changes: 8 additions & 0 deletions admin/i18n/pl/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "Buforuj wiadomości w ciągu kilku sekund, aby uniknąć przeciążenia systemu",
"Leave empty or 0 to not expire states": "Pozostaw puste lub 0, aby stany nie wygasały",
"Please choose your preferred settings": "Wybierz preferowane ustawienia",
"USBDevice": "Port urządzenia USB",
"expireTime": "Czas ważności stanów w sekundach",
"messageBuffer": "Bufor w ciągu kilku sekund, aby ignorować wiadomości"
}
8 changes: 8 additions & 0 deletions admin/i18n/pt/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "Mensagens de buffer em segundos para evitar sobrecarga do sistema",
"Leave empty or 0 to not expire states": "Deixe em branco ou 0 para não expirar os estados",
"Please choose your preferred settings": "Escolha suas configurações preferidas",
"USBDevice": "Porta do dispositivo USB",
"expireTime": "Tempo de expiração dos estados em segundos",
"messageBuffer": "Buffer em segundos para ignorar mensagens"
}
8 changes: 8 additions & 0 deletions admin/i18n/ru/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "Буферизация сообщений за считанные секунды, чтобы избежать перегрузки системы.",
"Leave empty or 0 to not expire states": "Оставьте пустым или 0, чтобы состояния не истекали.",
"Please choose your preferred settings": "Пожалуйста, выберите предпочитаемые настройки",
"USBDevice": "Порт USB-устройства",
"expireTime": "Время истечения состояний в секундах",
"messageBuffer": "Буфер в секундах для игнорирования сообщений"
}
8 changes: 8 additions & 0 deletions admin/i18n/zh-cn/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Buffer messages in seconds to avoid system overload": "在几秒钟内缓冲消息以避免系统过载",
"Leave empty or 0 to not expire states": "留空或 0 表示不过期状态",
"Please choose your preferred settings": "请选择您喜欢的设置",
"USBDevice": "USB设备端口",
"expireTime": "状态的过期时间(以秒为单位)",
"messageBuffer": "以秒为单位进行缓冲以忽略消息"
}
3 changes: 2 additions & 1 deletion admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
</div>

<div class="input-field col s2">
<!-- placeholder -->
<input placeholder="Buffer messages in seconds to avoid system overload" id="messageBuffer" type="number" class="value">
<label for="messageBuffer" class="translate">expireTime</label>
</div>

</div>
Expand Down
7 changes: 6 additions & 1 deletion admin/words.js

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

Loading

0 comments on commit 257c0d9

Please sign in to comment.