Skip to content

Commit 5e048b6

Browse files
committed
feat: introduce new admin configuration UI and update development dependencies.
1 parent 8d6192e commit 5e048b6

File tree

6 files changed

+416
-101
lines changed

6 files changed

+416
-101
lines changed

.releaseconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"plugins": ["iobroker", "license"]
2+
"plugins": [
3+
"iobroker",
4+
"license",
5+
"manual-review"
6+
]
37
}

admin/jsonConfig.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"type": "tabs",
3+
"items": {
4+
"main": {
5+
"type": "panel",
6+
"label": "Main settings",
7+
"items": {
8+
"ip-host": {
9+
"type": "text",
10+
"label": "IP-Address (If you use Cloud leave blank)",
11+
"placeholder": "192.168.1.100",
12+
"sm": 6
13+
},
14+
"serial-number": {
15+
"type": "text",
16+
"label": "Serial Number (Only in Cloud mode)",
17+
"sm": 6
18+
},
19+
"pass": {
20+
"type": "password",
21+
"label": "Password",
22+
"sm": 6
23+
},
24+
"useBcrypt": {
25+
"type": "checkbox",
26+
"label": "Use bcrypt for authentication (instead of PBKDF2)",
27+
"help": "Enable only if your device/firmware requires bcrypt",
28+
"sm": 6
29+
},
30+
"freq": {
31+
"type": "number",
32+
"label": "Interval to receive Wattpilot data (s)",
33+
"min": 1,
34+
"sm": 6
35+
},
36+
"parser": {
37+
"type": "checkbox",
38+
"label": "Only Common Data",
39+
"help": "Uncheck to get any data available from API",
40+
"sm": 6
41+
},
42+
"cloud": {
43+
"type": "checkbox",
44+
"label": "Use cloud to get data from the Pilot",
45+
"help": "Not recommended in a local environment",
46+
"sm": 6
47+
},
48+
"addParam": {
49+
"type": "text",
50+
"label": "Give additional Parameters as semicolon (;) seperated list",
51+
"help": "only needed if \"Only read most...\" is checked",
52+
"sm": 6
53+
}
54+
}
55+
}
56+
}
57+
}

admin/words.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,44 @@ systemDictionary = {
134134
"es": "Habilitar solo si su dispositivo/firmware requiere bcrypt",
135135
"pl": "Włącz tylko, jeśli urządzenie/firmware wymaga bcrypt",
136136
"zh-cn": "仅在设备/固件需要 bcrypt 时启用"
137+
},
138+
"Interval to receive Wattpilot data (s)": {
139+
"en": "Interval to receive Wattpilot data (s)",
140+
"de": "Intervall zum Empfang von Wattpilot-Daten (s)",
141+
"ru": "Интервал получения данных Wattpilot (с)",
142+
"pt": "Intervalo para receber dados do Wattpilot (s)",
143+
"nl": "Interval om Wattpilot-gegevens te ontvangen (s)",
144+
"fr": "Intervalle pour recevoir les données Wattpilot (s)",
145+
"it": "Intervallo per ricevere i dati Wattpilot (s)",
146+
"es": "Intervalo para recibir datos de Wattpilot (s)",
147+
"pl": "Interwał odbierania danych Wattpilot (s)",
148+
"uk": "Інтервал отримання даних Wattpilot (с)",
149+
"zh-cn": "接收 Wattpilot 数据的时间间隔 (s)"
150+
},
151+
"Only Common Data": {
152+
"en": "Only Common Data",
153+
"de": "Nur gängige Daten",
154+
"ru": "Только общие данные",
155+
"pt": "Apenas dados comuns",
156+
"nl": "Alleen algemene gegevens",
157+
"fr": "Uniquement les données communes",
158+
"it": "Solo dati comuni",
159+
"es": "Sólo datos comunes",
160+
"pl": "Tylko wspólne dane",
161+
"uk": "Тільки загальні дані",
162+
"zh-cn": "仅通用数据"
163+
},
164+
"Give additional Parameters as semicolon (;) seperated list": {
165+
"en": "Give additional Parameters as semicolon (;) seperated list",
166+
"de": "Zusätzliche Parameter als Semikolon (;) getrennte Liste angeben",
167+
"ru": "Укажите дополнительные параметры в виде списка, разделенного точкой с запятой (;)",
168+
"pt": "Forneça parâmetros adicionais como uma lista separada por ponto e vírgula (;)",
169+
"nl": "Geef aanvullende parameters op als een door puntkomma's (;) gescheiden lijst",
170+
"fr": "Donnez des paramètres supplémentaires sous forme de liste séparée par des points-virgules (;)",
171+
"it": "Fornire parametri aggiuntivi come elenco separato da punti e virgola (;)",
172+
"es": "Proporcione parámetros adicionales como una lista separada por punto y coma (;)",
173+
"pl": "Podaj dodatkowe parametry jako listę oddzieloną średnikami (;)",
174+
"uk": "Надайте додаткові параметри у вигляді списку, розділеного крапкою з комою (;)",
175+
"zh-cn": "以分号 (;) 分割的列表形式给出附加参数"
137176
}
138177
};

io-package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"connectionType": "local",
148148
"dataSource": "poll",
149149
"adminUI": {
150-
"config": "materialize"
150+
"config": "json"
151151
},
152152
"globalDependencies": [
153153
{
@@ -200,4 +200,4 @@
200200
"native": {}
201201
}
202202
]
203-
}
203+
}

0 commit comments

Comments
 (0)