iobroker.teslafi 0.1.2 → 0.1.3
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/README.md +6 -0
- package/admin/jsonConfig.json +8 -1
- package/build/lib/teslafiAPICaller.js +5 -5
- package/io-package.json +14 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -45,6 +45,12 @@ If you enjoyed this project — or just feeling generous, consider buying me a b
|
|
|
45
45
|
|
|
46
46
|
## Changelog
|
|
47
47
|
|
|
48
|
+
### 0.1.3 (2024-10-30)
|
|
49
|
+
|
|
50
|
+
- (hombach) fix typo in error text
|
|
51
|
+
- (hombach) optimize responsive design
|
|
52
|
+
- (hombach) bump dependencies
|
|
53
|
+
|
|
48
54
|
### 0.1.2 (2024-10-28)
|
|
49
55
|
|
|
50
56
|
- (hombach) introduce to ioBroker latest repo
|
package/admin/jsonConfig.json
CHANGED
|
@@ -75,9 +75,11 @@
|
|
|
75
75
|
"type": "header",
|
|
76
76
|
"text": "",
|
|
77
77
|
"noTranslation": true,
|
|
78
|
+
"xs": 12,
|
|
78
79
|
"sm": 12,
|
|
79
80
|
"md": 12,
|
|
80
81
|
"lg": 12,
|
|
82
|
+
"xl": 12,
|
|
81
83
|
"size": 3
|
|
82
84
|
},
|
|
83
85
|
"_helpLink": {
|
|
@@ -140,7 +142,12 @@
|
|
|
140
142
|
"pl": "Jeśli spodobał ci się ten projekt — lub po prostu czujesz się hojny, rozważ kupienie mi piwa. Na zdrowie! 🍻",
|
|
141
143
|
"uk": "Якщо вам сподобався цей проект — або ви просто хочете зробити приємне, подумайте про те, щоб купити мені пиво. Ура! 🍻",
|
|
142
144
|
"zh-cn": "如果你喜欢这个项目,或者只是觉得慷慨,请考虑请我喝一杯啤酒。干杯!🍻"
|
|
143
|
-
}
|
|
145
|
+
},
|
|
146
|
+
"xs": 12,
|
|
147
|
+
"sm": 12,
|
|
148
|
+
"md": 12,
|
|
149
|
+
"lg": 12,
|
|
150
|
+
"xl": 12
|
|
144
151
|
}
|
|
145
152
|
}
|
|
146
153
|
}
|
|
@@ -33,7 +33,7 @@ class TeslaFiAPICaller extends teslafiHelper_1.TeslaFiHelper {
|
|
|
33
33
|
const result = JSON.parse(response.data);
|
|
34
34
|
// Check if the response indicates an unauthorized access {"response":{"reason":"","result":"unauthorized"}}
|
|
35
35
|
if (result.response?.result === "unauthorized") {
|
|
36
|
-
this.adapter.log.warn(`TeslaFI data read - unauthorized access detected - please verify your API
|
|
36
|
+
this.adapter.log.warn(`TeslaFI data read - unauthorized access detected - please verify your API Token`);
|
|
37
37
|
return false;
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
@@ -558,22 +558,22 @@ class TeslaFiAPICaller extends teslafiHelper_1.TeslaFiHelper {
|
|
|
558
558
|
switch (stError.code) {
|
|
559
559
|
case "ETIMEDOUT":
|
|
560
560
|
this.adapter.log.warn(`Connection timeout error when calling ${sOccasion}`);
|
|
561
|
-
this.adapter.log.warn(`Please verify the API Token or adapt
|
|
561
|
+
this.adapter.log.warn(`Please verify the API Token or adapt your poll interval, (e${sErrorOccInt}.2)`);
|
|
562
562
|
break;
|
|
563
563
|
case "EHOSTUNREACH":
|
|
564
564
|
this.adapter.log.warn(`TeslaFi not reachable error when calling ${sOccasion}`);
|
|
565
|
-
this.adapter.log.warn(`Please verify
|
|
565
|
+
this.adapter.log.warn(`Please verify your network environment, (e${sErrorOccInt}.2)`);
|
|
566
566
|
break;
|
|
567
567
|
case "ENETUNREACH":
|
|
568
568
|
this.adapter.log.warn(`Inverter network not reachable error when calling ${sOccasion}`);
|
|
569
|
-
this.adapter.log.warn(`Please verify
|
|
569
|
+
this.adapter.log.warn(`Please verify your network environment, (e${sErrorOccInt}.2)`);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
// errors: 'Unexpected end of JSON input' 'read ECONNRESET' 'connect ECONNREFUSED 192.168.0.1:80'
|
|
573
573
|
}
|
|
574
574
|
else {
|
|
575
575
|
this.adapter.log.error(`Unknown error when calling ${sOccasion}: ${stError.message}`);
|
|
576
|
-
this.adapter.log.error(`Please verify the API Token or adapt
|
|
576
|
+
this.adapter.log.error(`Please verify the API Token or adapt your poll interval, (e${sErrorOccInt}.3)`);
|
|
577
577
|
if (this.adapter.supportsFeature && this.adapter.supportsFeature("PLUGINS")) {
|
|
578
578
|
// send Sentry error
|
|
579
579
|
const sentryInstance = this.adapter.getPluginInstance("sentry");
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "teslafi",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.1.3": {
|
|
7
|
+
"en": "Fix typo in error text\nOptimize responsive design\nBump dependencies",
|
|
8
|
+
"de": "Tippfehler im Fehlermeldungstext korrigieren\nResponsives Design optimieren\nAbhängigkeiten aktualisieren",
|
|
9
|
+
"ru": "Исправить опечатку в тексте ошибки\nОптимизировать адаптивный дизайн\nОбновить зависимости",
|
|
10
|
+
"pt": "Corrigir erro de digitação no texto de erro\nOtimizar design responsivo\nAtualizar dependências",
|
|
11
|
+
"nl": "Typfout in fouttekst corrigeren\nResponsief ontwerp optimaliseren\nAfhankelijkheden bijwerken",
|
|
12
|
+
"fr": "Corriger la faute de frappe dans le texte d'erreur\nOptimiser le design adaptatif\nMettre à jour les dépendances",
|
|
13
|
+
"it": "Correggi errore di battitura nel testo di errore\nOttimizza il design responsivo\nAggiorna le dipendenze",
|
|
14
|
+
"es": "Corregir error tipográfico en el texto de error\nOptimizar diseño responsivo\nActualizar dependencias",
|
|
15
|
+
"pl": "Popraw błąd w tekście błędu\nOptymalizuj responsywny design\nAktualizuj zależności",
|
|
16
|
+
"uk": "Виправити помилку у тексті помилки\nОптимізувати адаптивний дизайн\nОновити залежності",
|
|
17
|
+
"zh-cn": "修正错误文本中的拼写错误\n优化响应式设计\n更新依赖项"
|
|
18
|
+
},
|
|
6
19
|
"0.1.2": {
|
|
7
20
|
"en": "Introduce to ioBroker latest repo\nBump dependencies",
|
|
8
21
|
"de": "In ioBroker-Latest-Repo einführen\nAbhängigkeiten aktualisieren",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.teslafi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Adapter to poll TeslaFi data of your car",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Hombach",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@iobroker/adapter-core": "^3.2.2",
|
|
27
27
|
"axios": "^1.7.7",
|
|
28
|
-
"cron": "^3.1.
|
|
28
|
+
"cron": "^3.1.8"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@alcalzone/pak": "^0.11.0",
|
|
@@ -38,25 +38,25 @@
|
|
|
38
38
|
"@types/eslint__eslintrc": "^2.1.2",
|
|
39
39
|
"@types/eslint__js": "^8.42.3",
|
|
40
40
|
"@types/mocha": "^10.0.9",
|
|
41
|
-
"@types/node": "^22.8.
|
|
41
|
+
"@types/node": "^22.8.4",
|
|
42
42
|
"@types/proxyquire": "^1.3.31",
|
|
43
43
|
"@types/sinon": "^17.0.3",
|
|
44
44
|
"@types/sinon-chai": "^3.2.12",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^8.12.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
|
46
46
|
"@typescript-eslint/parser": "^8.12.0",
|
|
47
47
|
"chai": "^4.5.0",
|
|
48
48
|
"chai-as-promised": "^7.1.2",
|
|
49
49
|
"eslint": "^9.13.0",
|
|
50
50
|
"eslint-config-prettier": "^9.1.0",
|
|
51
51
|
"eslint-plugin-prettier": "^5.2.1",
|
|
52
|
-
"mocha": "^10.
|
|
52
|
+
"mocha": "^10.8.1",
|
|
53
53
|
"prettier": "^3.3.3",
|
|
54
54
|
"proxyquire": "^2.1.3",
|
|
55
55
|
"sinon": "^19.0.2",
|
|
56
56
|
"sinon-chai": "^3.7.0",
|
|
57
57
|
"ts-node": "^10.9.2",
|
|
58
58
|
"typescript": "~5.6.3",
|
|
59
|
-
"typescript-eslint": "^8.12.
|
|
59
|
+
"typescript-eslint": "^8.12.2"
|
|
60
60
|
},
|
|
61
61
|
"main": "build/main.js",
|
|
62
62
|
"files": [
|