iobroker.sql 1.15.4 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +26 -13
- package/admin/.gitignore +0 -0
- package/admin/custom_m.html +1 -2
- package/admin/i18n/de/translations.json +47 -0
- package/admin/i18n/en/translations.json +47 -0
- package/admin/i18n/es/translations.json +47 -0
- package/admin/i18n/fr/translations.json +47 -0
- package/admin/i18n/it/translations.json +47 -0
- package/admin/i18n/nl/translations.json +47 -0
- package/admin/i18n/pl/translations.json +47 -0
- package/admin/i18n/pt/translations.json +47 -0
- package/admin/i18n/ru/translations.json +47 -0
- package/admin/i18n/zh-cn/translations.json +47 -0
- package/admin/index_m.html +5 -5
- package/admin/jsonConfig.json +263 -0
- package/admin/jsonCustom.json +476 -0
- package/admin/words.js +46 -513
- package/io-package.json +205 -313
- package/lib/aggregate.js +3 -4
- package/lib/tools.js +99 -0
- package/main.js +176 -165
- package/package.json +22 -8
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/dependabot.yml +0 -16
- package/.github/stale.yml +0 -78
- package/.github/workflows/test-and-release.yml +0 -159
package/io-package.json
CHANGED
|
@@ -1,317 +1,209 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"desc": {
|
|
17
|
-
"en": "Logging of states into SQL DB",
|
|
18
|
-
"de": "Loggt die Historie von einzelnen Zuständen in einer SQL DB",
|
|
19
|
-
"ru": "Сохраняет историю событий для отдельных состояний в SQL DB",
|
|
20
|
-
"pt": "Registro de estados em SQL DB",
|
|
21
|
-
"nl": "Logging van toestanden in SQL DB",
|
|
22
|
-
"fr": "Journalisation des états dans la base de données SQL",
|
|
23
|
-
"it": "Registrazione degli stati nel DB SQL",
|
|
24
|
-
"es": "Registro de estados en SQL DB",
|
|
25
|
-
"pl": "Rejestrowanie stanów w SQL DB"
|
|
26
|
-
},
|
|
27
|
-
"version": "1.15.4",
|
|
28
|
-
"news": {
|
|
29
|
-
"1.15.4": {
|
|
30
|
-
"en": "Optimize stop handling",
|
|
31
|
-
"de": "Optimieren Sie das Stop-Handling",
|
|
32
|
-
"ru": "Оптимизировать обработку остановок",
|
|
33
|
-
"pt": "Otimize o manuseio de parada",
|
|
34
|
-
"nl": "Optimaliseer het afhandelen van stops",
|
|
35
|
-
"fr": "Optimiser la gestion des arrêts",
|
|
36
|
-
"it": "Ottimizza la gestione delle fermate",
|
|
37
|
-
"es": "Optimizar el manejo de paradas",
|
|
38
|
-
"pl": "Zoptymalizuj obsługę zatrzymania",
|
|
39
|
-
"zh-cn": "优化停止处理"
|
|
40
|
-
},
|
|
41
|
-
"1.15.3": {
|
|
42
|
-
"en": "Added the option \"Do not create database\". E.g. if DB was created and it does not required to do that, because the user does not have enough rights.",
|
|
43
|
-
"de": "Die Option \"Datenbank nicht erstellen\" wurde hinzugefügt. Z.B. wenn DB erstellt wurde und dies nicht erforderlich ist, da der Benutzer nicht über genügend Rechte verfügt.",
|
|
44
|
-
"ru": "Добавлена опция «Не создавать базу данных». Например. если БД была создана, а этого делать не нужно, так как у пользователя недостаточно прав.",
|
|
45
|
-
"pt": "Adicionada a opção \"Não criar banco de dados\". Por exemplo. se o DB foi criado e não é obrigatório, porque o usuário não tem direitos suficientes.",
|
|
46
|
-
"nl": "De optie \"Geen database aanmaken\" toegevoegd. Bijv. als DB is gemaakt en het is niet nodig om dat te doen, omdat de gebruiker niet genoeg rechten heeft.",
|
|
47
|
-
"fr": "Ajout de l'option \"Ne pas créer de base de données\". Par exemple. si DB a été créé et qu'il n'est pas nécessaire de le faire, car l'utilisateur n'a pas suffisamment de droits.",
|
|
48
|
-
"it": "Aggiunta l'opzione \"Non creare database\". Per esempio. se DB è stato creato e non è necessario farlo, perché l'utente non dispone di diritti sufficienti.",
|
|
49
|
-
"es": "Añadida la opción \"No crear base de datos\". P.ej. si se creó DB y no es necesario que lo haga, porque el usuario no tiene suficientes derechos.",
|
|
50
|
-
"pl": "Dodano opcję „Nie twórz bazy danych”. Na przykład. jeśli baza danych została utworzona i nie jest to wymagane, ponieważ użytkownik nie ma wystarczających uprawnień.",
|
|
51
|
-
"zh-cn": "添加了选项“不创建数据库”。例如。如果已创建数据库,则不需要这样做,因为用户没有足够的权限。"
|
|
52
|
-
},
|
|
53
|
-
"1.15.2": {
|
|
54
|
-
"en": "prevent wrong errors that realId is missing",
|
|
55
|
-
"de": "Verhindern Sie falsche Fehler, bei denen realId fehlt",
|
|
56
|
-
"ru": "предотвратить неправильные ошибки, которые отсутствуют в realId",
|
|
57
|
-
"pt": "evitar erros errados que faltam realId",
|
|
58
|
-
"nl": "voorkom verkeerde fouten die realId mist",
|
|
59
|
-
"fr": "éviter les erreurs erronées manquantes dans realId",
|
|
60
|
-
"it": "prevenire errori errati che realId manca",
|
|
61
|
-
"es": "evitar errores incorrectos que faltan realId",
|
|
62
|
-
"pl": "zapobiega błędnym błędom, których brakuje realId",
|
|
63
|
-
"zh-cn": "防止缺少realId的错误错误"
|
|
64
|
-
},
|
|
65
|
-
"1.15.1": {
|
|
66
|
-
"en": "implement a workaround for postgres problem",
|
|
67
|
-
"de": "Implementieren Sie eine Problemumgehung für das Postgres-Problem",
|
|
68
|
-
"ru": "реализовать обходной путь для проблемы postgres",
|
|
69
|
-
"pt": "implementar uma solução alternativa para o problema do postgres",
|
|
70
|
-
"nl": "een oplossing voor postgres-probleem implementeren",
|
|
71
|
-
"fr": "implémenter une solution de contournement pour le problème postgres",
|
|
72
|
-
"it": "implementare una soluzione alternativa per il problema di Postgres",
|
|
73
|
-
"es": "implementar una solución alternativa para el problema de postgres",
|
|
74
|
-
"pl": "wdrożyć obejście problemu z postgres",
|
|
75
|
-
"zh-cn": "实现postgres问题的解决方法"
|
|
76
|
-
},
|
|
77
|
-
"1.15.0": {
|
|
78
|
-
"en": "BREAKING* This version only accepts Node.js 10.x+ (because sqlite3 was upgraded)\nPrevent crash case (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)",
|
|
79
|
-
"de": "BREAKING * Diese Version akzeptiert nur Node.js 10.x + (da sqlite3 aktualisiert wurde)\nAbsturzfall verhindern (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)",
|
|
80
|
-
"ru": "BREAKING * Эта версия поддерживает только Node.js 10.x + (потому что sqlite3 был обновлен)\nПредотвращение сбоя (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)",
|
|
81
|
-
"pt": "BREAKING * Esta versão aceita apenas o Node.js 10.x + (porque o sqlite3 foi atualizado)\nEvitar caso de falha (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)",
|
|
82
|
-
"nl": "BREAKING * Deze versie accepteert alleen Node.js 10.x + (omdat sqlite3 is geüpgraded)\nVoorkom crashgeval (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)",
|
|
83
|
-
"fr": "BREAKING * Cette version accepte uniquement Node.js 10.x + (car sqlite3 a été mis à niveau)\nPrévenir les cas de crash (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)",
|
|
84
|
-
"it": "BREAKING * Questa versione accetta solo Node.js 10.x + (poiché sqlite3 è stato aggiornato)\nPrevenire il caso di crash (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)",
|
|
85
|
-
"es": "BREAKING * Esta versión solo acepta Node.js 10.x + (porque se actualizó sqlite3)\nPrevenir caso de bloqueo (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)",
|
|
86
|
-
"pl": "BREAKING * Ta wersja akceptuje tylko Node.js 10.x + (ponieważ sqlite3 został zaktualizowany)\nZapobiegaj przypadkom awarii (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)",
|
|
87
|
-
"zh-cn": "BREAKING *此版本仅接受Node.js 10.x +(因为sqlite3已升级)\n防止发生崩溃情况(哨兵IOBROKER-SQL-16,IOBROKER-SQL-15,IOBROKER-SQL-1K)"
|
|
88
|
-
},
|
|
89
|
-
"1.14.2": {
|
|
90
|
-
"en": "Fixed error for data storage",
|
|
91
|
-
"de": "Fehler beim Speichern der Daten behoben",
|
|
92
|
-
"ru": "Исправлена ошибка хранения данных",
|
|
93
|
-
"pt": "Corrigido erro no armazenamento de dados",
|
|
94
|
-
"nl": "Vaste fout voor gegevensopslag",
|
|
95
|
-
"fr": "Correction d'une erreur pour le stockage des données",
|
|
96
|
-
"it": "Risolto errore per la memorizzazione dei dati",
|
|
97
|
-
"es": "Error corregido para el almacenamiento de datos",
|
|
98
|
-
"pl": "Naprawiono błąd przechowywania danych",
|
|
99
|
-
"zh-cn": "修复了数据存储错误"
|
|
100
|
-
},
|
|
101
|
-
"1.14.0": {
|
|
102
|
-
"en": "added the range deletion and the delete all operations",
|
|
103
|
-
"de": "Das Löschen des Bereichs und das Löschen aller Vorgänge wurden hinzugefügt",
|
|
104
|
-
"ru": "добавлено удаление диапазона и удаление всех операций",
|
|
105
|
-
"pt": "adicionada a exclusão do intervalo e a exclusão de todas as operações",
|
|
106
|
-
"nl": "het verwijderen van het bereik en het verwijderen van alle bewerkingen toegevoegd",
|
|
107
|
-
"fr": "ajouté la suppression de plage et la suppression de toutes les opérations",
|
|
108
|
-
"it": "aggiunta la cancellazione dell'intervallo e l'eliminazione di tutte le operazioni",
|
|
109
|
-
"es": "agregó la eliminación de rango y eliminar todas las operaciones",
|
|
110
|
-
"pl": "dodano usuwanie zakresu i usuwanie wszystkich operacji",
|
|
111
|
-
"zh-cn": "添加了范围删除和删除所有操作"
|
|
112
|
-
},
|
|
113
|
-
"1.13.1": {
|
|
114
|
-
"en": "added changed and delete operations",
|
|
115
|
-
"de": "geänderte und gelöschte Operationen hinzugefügt",
|
|
116
|
-
"ru": "добавлены операции изменения и удаления",
|
|
117
|
-
"pt": "adicionou operações alteradas e excluídas",
|
|
118
|
-
"nl": "toegevoegde bewerkingen en verwijderbewerkingen",
|
|
119
|
-
"fr": "opérations modifiées et supprimées ajoutées",
|
|
120
|
-
"it": "aggiunte operazioni modificate ed eliminate",
|
|
121
|
-
"es": "agregado cambiado y eliminar operaciones",
|
|
122
|
-
"pl": "dodano zmienione i usuń operacje",
|
|
123
|
-
"zh-cn": "添加了更改和删除操作"
|
|
124
|
-
},
|
|
125
|
-
"1.12.6": {
|
|
126
|
-
"en": "set default history if not yet set",
|
|
127
|
-
"de": "Standardverlauf festlegen, falls noch nicht festgelegt",
|
|
128
|
-
"ru": "установить историю по умолчанию, если еще не установлено",
|
|
129
|
-
"pt": "definir histórico padrão se ainda não estiver definido",
|
|
130
|
-
"nl": "stel de standaardgeschiedenis in als deze nog niet is ingesteld",
|
|
131
|
-
"fr": "définir l'historique par défaut s'il n'est pas encore défini",
|
|
132
|
-
"it": "imposta la cronologia predefinita se non ancora impostata",
|
|
133
|
-
"es": "establecer el historial predeterminado si aún no está configurado",
|
|
134
|
-
"pl": "ustaw domyślną historię, jeśli jeszcze nie została ustawiona",
|
|
135
|
-
"zh-cn": "设置默认历史记录(如果尚未设置)"
|
|
136
|
-
},
|
|
137
|
-
"1.12.5": {
|
|
138
|
-
"en": "Crash prevented for invalid objects (Sentry IOBROKER-SQL-X)",
|
|
139
|
-
"de": "Absturz für ungültige Objekte verhindert (Sentry IOBROKER-SQL-X)",
|
|
140
|
-
"ru": "Предотвращен сбой для недопустимых объектов (Sentry IOBROKER-SQL-X)",
|
|
141
|
-
"pt": "Falha impedida por objetos inválidos (Sentry IOBROKER-SQL-X)",
|
|
142
|
-
"nl": "Crash voorkomen voor ongeldige objecten (Sentry IOBROKER-SQL-X)",
|
|
143
|
-
"fr": "Blocage évité pour les objets invalides (Sentry IOBROKER-SQL-X)",
|
|
144
|
-
"it": "Blocco impedito per oggetti non validi (Sentry IOBROKER-SQL-X)",
|
|
145
|
-
"es": "Se evitó el bloqueo de objetos no válidos (Sentry IOBROKER-SQL-X)",
|
|
146
|
-
"pl": "Zapobieganie awariom dla nieprawidłowych obiektów (Sentry IOBROKER-SQL-X)",
|
|
147
|
-
"zh-cn": "防止无效对象崩溃(Sentry IOBROKER-SQL-X)"
|
|
148
|
-
},
|
|
149
|
-
"1.12.4": {
|
|
150
|
-
"en": "Potential crash fixed when disabling datapoints too fast (Sentry IOBROKER-SQL-W) \nAlways set \"encrypt\" flag, even if false because else might en in default true (see https://github.com/tediousjs/tedious/issues/931)",
|
|
151
|
-
"de": "Möglicher Absturz behoben, wenn Datenpunkte zu schnell deaktiviert wurden (Sentry IOBROKER-SQL-W)\nSetzen Sie immer das \"Verschlüsselungs\" -Flag, auch wenn es falsch ist, da sonst möglicherweise standardmäßig true aktiviert ist (siehe https://github.com/tediousjs/tedious/issues/931).",
|
|
152
|
-
"ru": "Исправлено потенциальное падение при слишком быстром отключении точек данных (Sentry IOBROKER-SQL-W)\nВсегда устанавливайте флаг «шифровать», даже если он равен false, поскольку в противном случае по умолчанию может быть задано значение true (см. Https://github.com/tediousjs/tedious/issues/931).",
|
|
153
|
-
"pt": "Possível falha corrigida ao desativar os pontos de dados muito rápido (Sentry IOBROKER-SQL-W)\nSempre defina o sinalizador \"criptografar\", mesmo se falso, pois o valor poderá estar no padrão true (consulte https://github.com/tediousjs/tedious/issues/931)",
|
|
154
|
-
"nl": "Potentiële crash opgelost bij het te snel uitschakelen van datapunten (Sentry IOBROKER-SQL-W)\nStel altijd de vlag \"encrypt\" in, ook al is deze false omdat anders anders standaard in true zou kunnen staan (zie https://github.com/tediousjs/tedious/issues/931)",
|
|
155
|
-
"fr": "Crash potentiel corrigé lors de la désactivation trop rapide des points de données (Sentry IOBROKER-SQL-W)\nDéfinissez toujours l'indicateur \"encrypt\", même s'il est faux car sinon, il pourrait en être vrai par défaut (voir https://github.com/tediousjs/tedious/issues/931)",
|
|
156
|
-
"it": "Potenziale crash risolto quando la disabilitazione dei punti dati era troppo rapida (Sentry IOBROKER-SQL-W)\nImposta sempre il flag \"encrypt\", anche se false perché else potrebbe essere impostato su true true (vedi https://github.com/tediousjs/tedious/issues/931)",
|
|
157
|
-
"es": "Posible bloqueo solucionado al deshabilitar los puntos de datos demasiado rápido (Sentry IOBROKER-SQL-W)\nEstablezca siempre el indicador \"cifrar\", incluso si es falso, ya que de lo contrario podría estar en predeterminado verdadero (consulte https://github.com/tediousjs/tedious/issues/931)",
|
|
158
|
-
"pl": "Naprawiono potencjalną awarię podczas zbyt szybkiego wyłączania punktów danych (Sentry IOBROKER-SQL-W)\nZawsze ustawiaj flagę „szyfruj”, nawet jeśli ma wartość false, ponieważ w przeciwnym razie domyślnie może mieć wartość true (patrz https://github.com/tediousjs/tedious/issues/931)",
|
|
159
|
-
"zh-cn": "禁用数据点时过快修复了潜在的崩溃问题(Sentry IOBROKER-SQL-W)\n始终设置“ encrypt”标志,即使为false,因为其他情况默认情况下也为true(请参阅https://github.com/tediousjs/tedious/issues/931)"
|
|
160
|
-
},
|
|
161
|
-
"1.12.3": {
|
|
162
|
-
"en": "maximum concurrent database connection handling added, MSSQL now got indizes, connection status is updated in certain error cases, Node.js 14 compatibility, other fixes and optimizations",
|
|
163
|
-
"de": "Maximale gleichzeitige Behandlung von Datenbankverbindungen hinzugefügt, MSSQL hat jetzt Indizes erhalten, der Verbindungsstatus wird in bestimmten Fehlerfällen aktualisiert, Node.js 14-Kompatibilität, andere Korrekturen und Optimierungen",
|
|
164
|
-
"ru": "добавлена максимальная одновременная обработка соединения с базой данных, теперь MSSQL получил индизы, состояние соединения обновляется в некоторых случаях ошибок, совместимость с Node.js 14, другие исправления и оптимизации",
|
|
165
|
-
"pt": "máximo de manipulação simultânea de conexões com o banco de dados adicionada, o MSSQL agora obtém indizes, o status da conexão é atualizado em certos casos de erro, compatibilidade com o Node.j 14, outras correções e otimizações",
|
|
166
|
-
"nl": "maximale gelijktijdige verwerking van databaseverbindingen toegevoegd, MSSQL heeft nu indices, verbindingsstatus wordt bijgewerkt in bepaalde foutgevallen, compatibiliteit met Node.js 14, andere fixes en optimalisaties",
|
|
167
|
-
"fr": "ajout de la gestion maximale des connexions de bases de données simultanées, MSSQL est désormais affiché, l'état de la connexion est mis à jour dans certains cas d'erreur, la compatibilité avec Node.js 14, d'autres correctifs et optimisations",
|
|
168
|
-
"it": "aggiunta la massima gestione simultanea della connessione al database, MSSQL ora è stato identificato, lo stato della connessione viene aggiornato in alcuni casi di errore, compatibilità Node.js 14, altre correzioni e ottimizzazioni",
|
|
169
|
-
"es": "se agregó el máximo manejo simultáneo de la conexión de la base de datos, MSSQL ahora obtuvo índices, el estado de la conexión se actualiza en ciertos casos de error, compatibilidad con Node.js 14, otras correcciones y optimizaciones",
|
|
170
|
-
"pl": "dodano maksymalną obsługę jednoczesnych połączeń z bazą danych, MSSQL został teraz indeksowany, status połączenia jest aktualizowany w niektórych przypadkach błędów, kompatybilność z Node.js 14, inne poprawki i optymalizacje",
|
|
171
|
-
"zh-cn": "添加了最大的并发数据库连接处理功能,MSSQL现在已初始化,在某些错误情况下连接状态已更新,Node.js 14兼容性,其他修复和优化"
|
|
172
|
-
},
|
|
173
|
-
"1.11.1": {
|
|
174
|
-
"en": "REQUIRES at least js-controller 2.0, fixes and optimizations, ready for js-controller 3.0, Sentry added for Error reporting",
|
|
175
|
-
"de": "ERFORDERT mindestens js-controller 2.0, Korrekturen und Optimierungen, bereit für js-controller 3.0, Sentry für Fehlerberichterstattung hinzugefügt",
|
|
176
|
-
"ru": "ТРЕБУЕТ как минимум js-controller 2.0, исправления и оптимизации, готов для js-controller 3.0, добавлен Sentry для отчетов об ошибках",
|
|
177
|
-
"pt": "EXIGE pelo menos o js-controller 2.0, correções e otimizações, pronto para o controller 3.0, acrescentou o Sentry para o relatório de erros",
|
|
178
|
-
"nl": "VEREIST minimaal js-controller 2.0, fixes en optimalisaties, klaar voor js-controller 3.0, Sentry toegevoegd voor foutrapportage",
|
|
179
|
-
"fr": "NÉCESSITE au moins js-controller 2.0, des corrections et des optimisations, prêt pour js-controller 3.0, Sentry ajouté pour le rapport d'erreurs",
|
|
180
|
-
"it": "RICHIEDE almeno js-controller 2.0, correzioni e ottimizzazioni, pronto per js-controller 3.0, aggiunta Sentry per la segnalazione degli errori",
|
|
181
|
-
"es": "REQUIERE al menos js-controller 2.0, correcciones y optimizaciones, listo para js-controller 3.0, Sentry agregado para informes de errores",
|
|
182
|
-
"pl": "WYMAGA co najmniej js-kontrolera 2.0, poprawek i optymalizacji, gotowy do js-kontrolera 3.0, dodano Sentry do raportowania błędów",
|
|
183
|
-
"zh-cn": "至少需要js-controller 2.0,修复和优化,为js-controller 3.0做好准备,并添加了Sentry以进行错误报告"
|
|
184
|
-
},
|
|
185
|
-
"1.10.1": {
|
|
186
|
-
"en": "Converted to ES6\nThe counter functionality was implemented.",
|
|
187
|
-
"de": "Auf ES6 umgestellt\nDie Zählerfunktionalität wurde implementiert.",
|
|
188
|
-
"ru": "Преобразован в ES6\nФункциональность счетчика была реализована.",
|
|
189
|
-
"pt": "Convertido para ES6\nA funcionalidade do contador foi implementada.",
|
|
190
|
-
"nl": "Omgerekend naar ES6\nDe tellerfunctionaliteit is geïmplementeerd.",
|
|
191
|
-
"fr": "Converti en ES6\nLa fonctionnalité de compteur a été implémentée.",
|
|
192
|
-
"it": "Convertito in ES6\nLa funzionalità contatore è stata implementata.",
|
|
193
|
-
"es": "Convertido a ES6\nSe implementó la funcionalidad del contador.",
|
|
194
|
-
"pl": "Konwersja do ES6\nWdrożono funkcjonalność licznika.",
|
|
195
|
-
"zh-cn": "转换为ES6\n计数器功能已实现。"
|
|
196
|
-
},
|
|
197
|
-
"1.9.5": {
|
|
198
|
-
"en": "Support for nodejs 12 added",
|
|
199
|
-
"de": "Unterstützung für NodeJS 12 hinzugefügt",
|
|
200
|
-
"ru": "Добавлена поддержка nodejs 12",
|
|
201
|
-
"pt": "Suporte para nodejs 12 adicionados",
|
|
202
|
-
"nl": "Ondersteuning voor nodejs 12 toegevoegd",
|
|
203
|
-
"fr": "Support pour nodejs 12 ajouté",
|
|
204
|
-
"it": "Supporto per nodejs 12 aggiunto",
|
|
205
|
-
"es": "Soporte para nodejs 12 agregado",
|
|
206
|
-
"pl": "Dodano wsparcie dla nodejs 12",
|
|
207
|
-
"zh-cn": "增加了对nodejs 12的支持"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"mode": "daemon",
|
|
211
|
-
"platform": "Javascript/Node.js",
|
|
212
|
-
"loglevel": "info",
|
|
213
|
-
"messagebox": true,
|
|
214
|
-
"subscribe": "messagebox",
|
|
215
|
-
"keywords": [
|
|
216
|
-
"charts",
|
|
217
|
-
"sql",
|
|
218
|
-
"logging",
|
|
219
|
-
"graphs",
|
|
220
|
-
"archive"
|
|
221
|
-
],
|
|
222
|
-
"preserveSettings": "custom",
|
|
223
|
-
"supportCustoms": true,
|
|
224
|
-
"getHistory": true,
|
|
225
|
-
"enabled": true,
|
|
226
|
-
"stopBeforeUpdate": true,
|
|
227
|
-
"materialize": true,
|
|
228
|
-
"compact": true,
|
|
229
|
-
"authors": [
|
|
230
|
-
"bluefox <dogafox@gmail.com>",
|
|
231
|
-
"Apollon77 <ingo@fischer-ka.de>"
|
|
232
|
-
],
|
|
233
|
-
"license": "MIT",
|
|
234
|
-
"readme": "https://github.com/ioBroker/ioBroker.sql/blob/master/README.md",
|
|
235
|
-
"icon": "sql.png",
|
|
236
|
-
"extIcon": "https://raw.githubusercontent.com/ioBroker/ioBroker.sql/master/admin/sql.png",
|
|
237
|
-
"type": "storage",
|
|
238
|
-
"dependencies": [
|
|
239
|
-
{
|
|
240
|
-
"js-controller": ">=2.0.0"
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
"globalDependencies": [
|
|
244
|
-
{
|
|
245
|
-
"admin": ">=1.6.10"
|
|
246
|
-
}
|
|
247
|
-
],
|
|
248
|
-
"supportStopInstance": 3000,
|
|
249
|
-
"stopTimeout": 3000,
|
|
250
|
-
"config": {
|
|
251
|
-
"minWidth": 570,
|
|
252
|
-
"width ": 435,
|
|
253
|
-
"minHeight": 200,
|
|
254
|
-
"height": 540
|
|
255
|
-
},
|
|
256
|
-
"plugins": {
|
|
257
|
-
"sentry": {
|
|
258
|
-
"dsn": "https://c30462d3e0834993b0aa29824346701e@sentry.iobroker.net/45"
|
|
259
|
-
}
|
|
260
|
-
}
|
|
2
|
+
"common": {
|
|
3
|
+
"name": "sql",
|
|
4
|
+
"title": "SQL History",
|
|
5
|
+
"titleLang": {
|
|
6
|
+
"en": "SQL logging",
|
|
7
|
+
"de": "SQL-Protokollierung",
|
|
8
|
+
"ru": "Ведение журнала SQL",
|
|
9
|
+
"pt": "Log de SQL",
|
|
10
|
+
"nl": "SQL logging",
|
|
11
|
+
"fr": "Journalisation SQL",
|
|
12
|
+
"it": "Registrazione SQL",
|
|
13
|
+
"es": "Registro de SQL",
|
|
14
|
+
"pl": "Rejestrowanie SQL",
|
|
15
|
+
"zh-cn": "SQL记录"
|
|
261
16
|
},
|
|
262
|
-
"
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
"encrypt": false,
|
|
274
|
-
"round": 4,
|
|
275
|
-
"dbname": "iobroker",
|
|
276
|
-
"multiRequests": true,
|
|
277
|
-
"maxConnections": 100,
|
|
278
|
-
"changesRelogInterval": 0,
|
|
279
|
-
"changesMinDelta": 0,
|
|
280
|
-
"writeNulls": true,
|
|
281
|
-
"doNotCreateDatabase": false
|
|
17
|
+
"desc": {
|
|
18
|
+
"en": "Logging of states into SQL DB",
|
|
19
|
+
"de": "Loggt die Historie von einzelnen Zuständen in einer SQL DB",
|
|
20
|
+
"ru": "Сохраняет историю событий для отдельных состояний в SQL DB",
|
|
21
|
+
"pt": "Registro de estados em SQL DB",
|
|
22
|
+
"nl": "Logging van toestanden in SQL DB",
|
|
23
|
+
"fr": "Journalisation des états dans la base de données SQL",
|
|
24
|
+
"it": "Registrazione degli stati nel DB SQL",
|
|
25
|
+
"es": "Registro de estados en SQL DB",
|
|
26
|
+
"pl": "Rejestrowanie stanów w SQL DB",
|
|
27
|
+
"zh-cn": "将状态记录到SQL DB"
|
|
282
28
|
},
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
29
|
+
"version": "1.16.0",
|
|
30
|
+
"news": {
|
|
31
|
+
"1.16.0": {
|
|
32
|
+
"en": "Support only `js.controller` >= 3.3.x\nUsed system/custom view for collecting the objects\nImplemented option to ignore zero- or/and below zero- values",
|
|
33
|
+
"de": "Unterstützt nur `js.controller` >= 3.3.x\nVerwendete Systemansicht/benutzerdefinierte Ansicht zum Sammeln der Objekte\nImplementierte Option zum Ignorieren von Null- oder/und Unter-Null-Werten",
|
|
34
|
+
"ru": "Поддерживает только `js.controller`> = 3.3.x\nИспользуемый системный / пользовательский вид для сбора объектов\nРеализована возможность игнорировать нулевые и / или отрицательные значения.",
|
|
35
|
+
"pt": "Suporte apenas `js.controller`> = 3.3.x\nSistema usado / visão personalizada para coletar os objetos\nOpção implementada para ignorar valores zero ou / e abaixo de zero",
|
|
36
|
+
"nl": "Ondersteuning alleen `js.controller` >= 3.3.x\nGebruikt systeem/aangepaste weergave voor het verzamelen van de objecten\nGeïmplementeerde optie om nul- of/en onder nul-waarden te negeren",
|
|
37
|
+
"fr": "Supporte uniquement `js.controller` >= 3.3.x\nSystème utilisé/vue personnalisée pour la collecte des objets\nOption implémentée pour ignorer les valeurs zéro ou/et inférieures à zéro",
|
|
38
|
+
"it": "Supporta solo `js.controller` >= 3.3.x\nSistema utilizzato/vista personalizzata per la raccolta degli oggetti\nOpzione implementata per ignorare i valori zero o/o inferiori a zero",
|
|
39
|
+
"es": "Admite solo `js.controller`> = 3.3.x\nSistema usado / vista personalizada para recolectar los objetos.\nOpción implementada para ignorar valores cero o inferiores a cero",
|
|
40
|
+
"pl": "Obsługuje tylko `js.controller` >= 3.3.x\nWykorzystany widok systemowy/niestandardowy do zbierania obiektów\nZaimplementowana opcja ignorowania wartości zerowych lub/i poniżej zera",
|
|
41
|
+
"zh-cn": "仅支持 `js.controller` >= 3.3.x\n用于收集对象的系统/自定义视图\n已实现忽略零或/和低于零值的选项"
|
|
42
|
+
},
|
|
43
|
+
"1.15.7": {
|
|
44
|
+
"en": "fixed the support of Admin5",
|
|
45
|
+
"de": "Die Unterstützung von Admin5 wurde behoben",
|
|
46
|
+
"ru": "исправлена поддержка Admin5",
|
|
47
|
+
"pt": "consertou o suporte do Admin5",
|
|
48
|
+
"nl": "de ondersteuning van Admin5 opgelost",
|
|
49
|
+
"fr": "correction du support d'Admin5",
|
|
50
|
+
"it": "risolto il supporto di Admin5",
|
|
51
|
+
"es": "arreglado el soporte de Admin5",
|
|
52
|
+
"pl": "naprawiono obsługę Admin5",
|
|
53
|
+
"zh-cn": "修复了对Admin5的支持"
|
|
54
|
+
},
|
|
55
|
+
"1.15.6": {
|
|
56
|
+
"en": "added support of Admin5",
|
|
57
|
+
"de": "Unterstützung von Admin5 hinzugefügt",
|
|
58
|
+
"ru": "добавлена поддержка Admin5",
|
|
59
|
+
"pt": "adicionado suporte de Admin5",
|
|
60
|
+
"nl": "toegevoegde ondersteuning van Admin5",
|
|
61
|
+
"fr": "ajout de la prise en charge d'Admin5",
|
|
62
|
+
"it": "aggiunto il supporto di Admin5",
|
|
63
|
+
"es": "soporte agregado de Admin5",
|
|
64
|
+
"pl": "dodana obsługa Admin5",
|
|
65
|
+
"zh-cn": "增加了对Admin5的支持"
|
|
66
|
+
},
|
|
67
|
+
"1.15.5": {
|
|
68
|
+
"en": "make sure message query is a string (Sentry)",
|
|
69
|
+
"de": "Stellen Sie sicher, dass die Nachrichtenabfrage eine Zeichenfolge ist (Sentry).",
|
|
70
|
+
"ru": "убедитесь, что запрос сообщения является строкой (Sentry)",
|
|
71
|
+
"pt": "certifique-se de que a consulta da mensagem é uma string (Sentry)",
|
|
72
|
+
"nl": "zorg ervoor dat de berichtvraag een tekenreeks is (Sentry)",
|
|
73
|
+
"fr": "assurez-vous que la requête de message est une chaîne (Sentry)",
|
|
74
|
+
"it": "assicurati che la query del messaggio sia una stringa (Sentry)",
|
|
75
|
+
"es": "asegúrese de que la consulta del mensaje sea una cadena (Sentry)",
|
|
76
|
+
"pl": "upewnij się, że zapytanie o wiadomość jest ciągiem (Sentry)",
|
|
77
|
+
"zh-cn": "确保消息查询是字符串(Sentry)"
|
|
78
|
+
},
|
|
79
|
+
"1.15.4": {
|
|
80
|
+
"en": "Optimize stop handling",
|
|
81
|
+
"de": "Optimieren Sie das Stop-Handling",
|
|
82
|
+
"ru": "Оптимизировать обработку остановок",
|
|
83
|
+
"pt": "Otimize o manuseio de parada",
|
|
84
|
+
"nl": "Optimaliseer het afhandelen van stops",
|
|
85
|
+
"fr": "Optimiser la gestion des arrêts",
|
|
86
|
+
"it": "Ottimizza la gestione delle fermate",
|
|
87
|
+
"es": "Optimizar el manejo de paradas",
|
|
88
|
+
"pl": "Zoptymalizuj obsługę zatrzymania",
|
|
89
|
+
"zh-cn": "优化停止处理"
|
|
90
|
+
},
|
|
91
|
+
"1.15.3": {
|
|
92
|
+
"en": "Added the option \"Do not create database\". E.g. if DB was created and it does not required to do that, because the user does not have enough rights.",
|
|
93
|
+
"de": "Die Option \"Datenbank nicht erstellen\" wurde hinzugefügt. Z.B. wenn DB erstellt wurde und dies nicht erforderlich ist, da der Benutzer nicht über genügend Rechte verfügt.",
|
|
94
|
+
"ru": "Добавлена опция «Не создавать базу данных». Например. если БД была создана, а этого делать не нужно, так как у пользователя недостаточно прав.",
|
|
95
|
+
"pt": "Adicionada a opção \"Não criar banco de dados\". Por exemplo. se o DB foi criado e não é obrigatório, porque o usuário não tem direitos suficientes.",
|
|
96
|
+
"nl": "De optie \"Geen database aanmaken\" toegevoegd. Bijv. als DB is gemaakt en het is niet nodig om dat te doen, omdat de gebruiker niet genoeg rechten heeft.",
|
|
97
|
+
"fr": "Ajout de l'option \"Ne pas créer de base de données\". Par exemple. si DB a été créé et qu'il n'est pas nécessaire de le faire, car l'utilisateur n'a pas suffisamment de droits.",
|
|
98
|
+
"it": "Aggiunta l'opzione \"Non creare database\". Per esempio. se DB è stato creato e non è necessario farlo, perché l'utente non dispone di diritti sufficienti.",
|
|
99
|
+
"es": "Añadida la opción \"No crear base de datos\". P.ej. si se creó DB y no es necesario que lo haga, porque el usuario no tiene suficientes derechos.",
|
|
100
|
+
"pl": "Dodano opcję „Nie twórz bazy danych”. Na przykład. jeśli baza danych została utworzona i nie jest to wymagane, ponieważ użytkownik nie ma wystarczających uprawnień.",
|
|
101
|
+
"zh-cn": "添加了选项“不创建数据库”。例如。如果已创建数据库,则不需要这样做,因为用户没有足够的权限。"
|
|
102
|
+
},
|
|
103
|
+
"1.15.2": {
|
|
104
|
+
"en": "prevent wrong errors that realId is missing",
|
|
105
|
+
"de": "Verhindern Sie falsche Fehler, bei denen realId fehlt",
|
|
106
|
+
"ru": "предотвратить неправильные ошибки, которые отсутствуют в realId",
|
|
107
|
+
"pt": "evitar erros errados que faltam realId",
|
|
108
|
+
"nl": "voorkom verkeerde fouten die realId mist",
|
|
109
|
+
"fr": "éviter les erreurs erronées manquantes dans realId",
|
|
110
|
+
"it": "prevenire errori errati che realId manca",
|
|
111
|
+
"es": "evitar errores incorrectos que faltan realId",
|
|
112
|
+
"pl": "zapobiega błędnym błędom, których brakuje realId",
|
|
113
|
+
"zh-cn": "防止缺少realId的错误错误"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"mode": "daemon",
|
|
117
|
+
"platform": "Javascript/Node.js",
|
|
118
|
+
"loglevel": "info",
|
|
119
|
+
"messagebox": true,
|
|
120
|
+
"subscribe": "messagebox",
|
|
121
|
+
"keywords": [
|
|
122
|
+
"charts",
|
|
123
|
+
"sql",
|
|
124
|
+
"logging",
|
|
125
|
+
"graphs",
|
|
126
|
+
"archive"
|
|
127
|
+
],
|
|
128
|
+
"preserveSettings": "custom",
|
|
129
|
+
"supportCustoms": true,
|
|
130
|
+
"getHistory": true,
|
|
131
|
+
"enabled": true,
|
|
132
|
+
"stopBeforeUpdate": true,
|
|
133
|
+
"materialize": true,
|
|
134
|
+
"compact": true,
|
|
135
|
+
"authors": [
|
|
136
|
+
"bluefox <dogafox@gmail.com>",
|
|
137
|
+
"Apollon77 <ingo@fischer-ka.de>"
|
|
138
|
+
],
|
|
139
|
+
"license": "MIT",
|
|
140
|
+
"readme": "https://github.com/ioBroker/ioBroker.sql/blob/master/README.md",
|
|
141
|
+
"icon": "sql.png",
|
|
142
|
+
"extIcon": "https://raw.githubusercontent.com/ioBroker/ioBroker.sql/master/admin/sql.png",
|
|
143
|
+
"type": "storage",
|
|
144
|
+
"dependencies": [
|
|
145
|
+
{
|
|
146
|
+
"js-controller": ">=3.3.0"
|
|
147
|
+
}
|
|
305
148
|
],
|
|
306
|
-
"
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
149
|
+
"supportStopInstance": 3000,
|
|
150
|
+
"stopTimeout": 3000,
|
|
151
|
+
"plugins": {
|
|
152
|
+
"sentry": {
|
|
153
|
+
"dsn": "https://c30462d3e0834993b0aa29824346701e@sentry.iobroker.net/45"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"adminUI": {
|
|
157
|
+
"config": "json",
|
|
158
|
+
"custom": "json"
|
|
159
|
+
},
|
|
160
|
+
"jsonCustom": true,
|
|
161
|
+
"jsonConfig": true,
|
|
162
|
+
"tier": 1
|
|
163
|
+
},
|
|
164
|
+
"native": {
|
|
165
|
+
"connLink": "",
|
|
166
|
+
"debounce": 1000,
|
|
167
|
+
"retention": 31536000,
|
|
168
|
+
"host": "localhost",
|
|
169
|
+
"port": 0,
|
|
170
|
+
"user": "",
|
|
171
|
+
"password": "",
|
|
172
|
+
"dbtype": "sqlite",
|
|
173
|
+
"fileName": "sqlite.db",
|
|
174
|
+
"requestInterval": 0,
|
|
175
|
+
"encrypt": false,
|
|
176
|
+
"round": 4,
|
|
177
|
+
"dbname": "iobroker",
|
|
178
|
+
"multiRequests": true,
|
|
179
|
+
"maxConnections": 100,
|
|
180
|
+
"changesRelogInterval": 0,
|
|
181
|
+
"changesMinDelta": 0,
|
|
182
|
+
"writeNulls": true,
|
|
183
|
+
"doNotCreateDatabase": false
|
|
184
|
+
},
|
|
185
|
+
"instanceObjects": [
|
|
186
|
+
{
|
|
187
|
+
"_id": "info",
|
|
188
|
+
"type": "channel",
|
|
189
|
+
"common": {
|
|
190
|
+
"name": "Information"
|
|
191
|
+
},
|
|
192
|
+
"native": {}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"_id": "info.connection",
|
|
196
|
+
"type": "state",
|
|
197
|
+
"common": {
|
|
198
|
+
"role": "indicator.connected",
|
|
199
|
+
"name": "If connected to DB",
|
|
200
|
+
"type": "boolean",
|
|
201
|
+
"read": true,
|
|
202
|
+
"write": false,
|
|
203
|
+
"def": false
|
|
204
|
+
},
|
|
205
|
+
"native": {}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"objects": []
|
|
209
|
+
}
|
package/lib/aggregate.js
CHANGED
|
@@ -215,7 +215,6 @@ function finishAggregation(options) {
|
|
|
215
215
|
};
|
|
216
216
|
} // start, min, max == end
|
|
217
217
|
else {
|
|
218
|
-
|
|
219
218
|
options.result.splice(ii + 1, 0, {
|
|
220
219
|
ts: options.result[ii].min.ts,
|
|
221
220
|
val: options.result[ii].min.val
|
|
@@ -281,8 +280,8 @@ function finishAggregation(options) {
|
|
|
281
280
|
for (let k = options.result.length - 1; k >= 0; k--) {
|
|
282
281
|
if (options.result[k].val.ts) {
|
|
283
282
|
options.result[k] = {
|
|
284
|
-
ts:
|
|
285
|
-
val:
|
|
283
|
+
ts: options.result[k].val.ts,
|
|
284
|
+
val: options.result[k].val.val !== null ? Math.round(options.result[k].val.val / options.averageCount[k] * 100) / 100 : null
|
|
286
285
|
};
|
|
287
286
|
} else {
|
|
288
287
|
// no one value in this interval
|
|
@@ -505,7 +504,7 @@ function sendResponseCounter(adapter, msg, options, data, startTime) {
|
|
|
505
504
|
sessionId: options.sessionId
|
|
506
505
|
}, msg.callback);
|
|
507
506
|
}
|
|
508
|
-
|
|
507
|
+
|
|
509
508
|
if (data[0] && data[1]) {
|
|
510
509
|
// first | start | afterFirst | ...... | last | end | afterLast
|
|
511
510
|
// 5 | | 8 | 9 | 1 | 3 | | 5
|