From ba7592586da1e6f1643c5d05c02233d1e60a8130 Mon Sep 17 00:00:00 2001 From: Hombach Date: Wed, 25 Dec 2024 16:26:08 +0100 Subject: [PATCH] 1.0.0 --- README.md | 4 +++- admin/i18n/de/translations.json | 3 ++- admin/i18n/en/translations.json | 1 + admin/i18n/es/translations.json | 3 ++- admin/i18n/fr/translations.json | 3 ++- admin/i18n/it/translations.json | 3 ++- admin/i18n/nl/translations.json | 3 ++- admin/i18n/pl/translations.json | 3 ++- admin/i18n/pt/translations.json | 3 ++- admin/i18n/ru/translations.json | 3 ++- admin/i18n/uk/translations.json | 3 ++- admin/i18n/zh-cn/translations.json | 3 ++- admin/jsonConfig.json | 14 ++++++++++++++ build/lib/teslafiAPICaller.js | 3 ++- build/lib/teslafiAPICaller.js.map | 2 +- io-package.json | 19 +++++++++++++++---- package.json | 2 +- src/lib/adapter-config.d.ts | 1 + src/lib/teslafiAPICaller.ts | 4 +++- 19 files changed, 61 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index ebbffaa..5c538ff 100644 --- a/README.md +++ b/README.md @@ -75,9 +75,11 @@ If you enjoyed this project — or just feeling generous, consider buying me a b ## Changelog -### 0.4.7 (2024-12-xx) +### 1.0.0 (2024-12-25) +- (hombach) set version to 1.0 for stable release - (hombach) add newVersionStatus (#80) +- (hombach) add configurable poll timeout ### 0.4.6 (2024-12-21) diff --git a/admin/i18n/de/translations.json b/admin/i18n/de/translations.json index 6a741a9..8fd3105 100644 --- a/admin/i18n/de/translations.json +++ b/admin/i18n/de/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "Token für die TeslaFi-API", "LBL_UpdateInterval": "Aktualisierungsintervall in Sekunden", "LBL_helpLink": "Adapterdokumentation anzeigen", - "TXT_donateTx": "Wenn Ihnen dieses Projekt gefallen hat – oder Sie sich einfach großzügig fühlen, denken Sie darüber nach, mir ein Bier zu spendieren. Prost! 🍻" + "TXT_donateTx": "Wenn Ihnen dieses Projekt gefallen hat – oder Sie sich einfach großzügig fühlen, denken Sie darüber nach, mir ein Bier zu spendieren. Prost! 🍻", + "LBL_UpdateTimeout": "Update-Timeout in Millisekunden" } diff --git a/admin/i18n/en/translations.json b/admin/i18n/en/translations.json index a1cd21a..1201357 100644 --- a/admin/i18n/en/translations.json +++ b/admin/i18n/en/translations.json @@ -2,6 +2,7 @@ "LBL_StandardTab": "Standard Settings", "LBL_TeslaFiAPIToken": "Token for TeslaFi API", "LBL_UpdateInterval": "Update interval in seconds", + "LBL_UpdateTimeout": "Update timeout in milliseconds", "LBL_helpLink": "Show adapter documentation", "TXT_donateTx": "If you enjoyed this project — or just feeling generous, consider buying me a beer. Cheers! 🍻" } diff --git a/admin/i18n/es/translations.json b/admin/i18n/es/translations.json index db40f25..32926bf 100644 --- a/admin/i18n/es/translations.json +++ b/admin/i18n/es/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "Token para la API de TeslaFi", "LBL_UpdateInterval": "Intervalo de actualización en segundos", "LBL_helpLink": "Mostrar documentación del adaptador", - "TXT_donateTx": "Si disfrutó este proyecto, o simplemente se siente generoso, considere invitarme a una cerveza. ¡Salud! 🍻" + "TXT_donateTx": "Si disfrutó este proyecto, o simplemente se siente generoso, considere invitarme a una cerveza. ¡Salud! 🍻", + "LBL_UpdateTimeout": "Tiempo de espera de actualización en milisegundos" } diff --git a/admin/i18n/fr/translations.json b/admin/i18n/fr/translations.json index 7c69652..d1032ff 100644 --- a/admin/i18n/fr/translations.json +++ b/admin/i18n/fr/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "Jeton pour l'API TeslaFi", "LBL_UpdateInterval": "Intervalle de mise à jour en secondes", "LBL_helpLink": "Afficher la documentation de l'adaptateur", - "TXT_donateTx": "Si vous avez apprécié ce projet – ou si vous vous sentez simplement généreux, pensez à m'acheter une bière. Acclamations! 🍻" + "TXT_donateTx": "Si vous avez apprécié ce projet – ou si vous vous sentez simplement généreux, pensez à m'acheter une bière. Acclamations! 🍻", + "LBL_UpdateTimeout": "Délai d'expiration de la mise à jour en millisecondes" } diff --git a/admin/i18n/it/translations.json b/admin/i18n/it/translations.json index 6421068..676880f 100644 --- a/admin/i18n/it/translations.json +++ b/admin/i18n/it/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "Token per l'API TeslaFi", "LBL_UpdateInterval": "Intervallo di aggiornamento in secondi", "LBL_helpLink": "Mostra la documentazione dell'adattatore", - "TXT_donateTx": "Se ti è piaciuto questo progetto o semplicemente ti senti generoso, valuta l'idea di comprarmi una birra. Saluti! 🍻" + "TXT_donateTx": "Se ti è piaciuto questo progetto o semplicemente ti senti generoso, valuta l'idea di comprarmi una birra. Saluti! 🍻", + "LBL_UpdateTimeout": "Timeout aggiornamento in millisecondi" } diff --git a/admin/i18n/nl/translations.json b/admin/i18n/nl/translations.json index f083f11..8ec81ed 100644 --- a/admin/i18n/nl/translations.json +++ b/admin/i18n/nl/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "Token voor TeslaFi-API", "LBL_UpdateInterval": "Update-interval in seconden", "LBL_helpLink": "Adapterdocumentatie tonen", - "TXT_donateTx": "Als je van dit project hebt genoten – of je gewoon vrijgevig bent, overweeg dan om een ​​biertje voor me te kopen. Proost! 🍻" + "TXT_donateTx": "Als je van dit project hebt genoten – of je gewoon vrijgevig bent, overweeg dan om een ​​biertje voor me te kopen. Proost! 🍻", + "LBL_UpdateTimeout": "Updatetime-out in milliseconden" } diff --git a/admin/i18n/pl/translations.json b/admin/i18n/pl/translations.json index a9fb9f6..e300468 100644 --- a/admin/i18n/pl/translations.json +++ b/admin/i18n/pl/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "Token dla API TeslaFi", "LBL_UpdateInterval": "Interwał aktualizacji w sekundach", "LBL_helpLink": "Pokaż dokumentację adaptera", - "TXT_donateTx": "Jeśli spodobał Ci się ten projekt — lub po prostu czujesz się hojny, rozważ kupienie mi piwa. Dzięki! 🍻" + "TXT_donateTx": "Jeśli spodobał Ci się ten projekt — lub po prostu czujesz się hojny, rozważ kupienie mi piwa. Dzięki! 🍻", + "LBL_UpdateTimeout": "Limit czasu aktualizacji w milisekundach" } diff --git a/admin/i18n/pt/translations.json b/admin/i18n/pt/translations.json index e59f961..58f453e 100644 --- a/admin/i18n/pt/translations.json +++ b/admin/i18n/pt/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "Token para API TeslaFi", "LBL_UpdateInterval": "Intervalo de atualização em segundos", "LBL_helpLink": "Mostrar documentação do adaptador", - "TXT_donateTx": "Se você gostou deste projeto - ou apenas se sente generoso, considere comprar uma cerveja para mim. Saúde! 🍻" + "TXT_donateTx": "Se você gostou deste projeto - ou apenas se sente generoso, considere comprar uma cerveja para mim. Saúde! 🍻", + "LBL_UpdateTimeout": "Tempo limite de atualização em milissegundos" } diff --git a/admin/i18n/ru/translations.json b/admin/i18n/ru/translations.json index 79f9288..e350e07 100644 --- a/admin/i18n/ru/translations.json +++ b/admin/i18n/ru/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "Токен для TeslaFi API", "LBL_UpdateInterval": "Интервал обновления в секундах", "LBL_helpLink": "Показать документацию по адаптеру", - "TXT_donateTx": "Если вам понравился этот проект или вы просто чувствуете щедрость, подумайте о том, чтобы купить мне пива. Ваше здоровье! 🍻" + "TXT_donateTx": "Если вам понравился этот проект или вы просто чувствуете щедрость, подумайте о том, чтобы купить мне пива. Ваше здоровье! 🍻", + "LBL_UpdateTimeout": "Тайм-аут обновления в миллисекундах" } diff --git a/admin/i18n/uk/translations.json b/admin/i18n/uk/translations.json index b02782f..772ae3c 100644 --- a/admin/i18n/uk/translations.json +++ b/admin/i18n/uk/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "Токен для TeslaFi API", "LBL_UpdateInterval": "Інтервал оновлення в секундах", "LBL_helpLink": "Показати документацію адаптера", - "TXT_donateTx": "Якщо вам сподобався цей проект — або ви просто відчуваєте щедрість, купіть мені пива. здоров'я! 🍻" + "TXT_donateTx": "Якщо вам сподобався цей проект — або ви просто відчуваєте щедрість, купіть мені пива. здоров'я! 🍻", + "LBL_UpdateTimeout": "Час очікування оновлення в мілісекундах" } diff --git a/admin/i18n/zh-cn/translations.json b/admin/i18n/zh-cn/translations.json index 2727508..422049a 100644 --- a/admin/i18n/zh-cn/translations.json +++ b/admin/i18n/zh-cn/translations.json @@ -3,5 +3,6 @@ "LBL_TeslaFiAPIToken": "TeslaFi API 的令牌", "LBL_UpdateInterval": "更新间隔(秒)", "LBL_helpLink": "显示适配器文档", - "TXT_donateTx": "如果你喜欢这个项目——或者只是觉得慷慨,可以考虑给我买瓶啤酒。干杯! 🍻" + "TXT_donateTx": "如果你喜欢这个项目——或者只是觉得慷慨,可以考虑给我买瓶啤酒。干杯! 🍻", + "LBL_UpdateTimeout": "更新超时(以毫秒为单位)" } diff --git a/admin/jsonConfig.json b/admin/jsonConfig.json index 43f4eb5..7a5db95 100644 --- a/admin/jsonConfig.json +++ b/admin/jsonConfig.json @@ -35,6 +35,20 @@ "xl": 6, "newLine": true }, + "UpdateTimeout": { + "type": "number", + "label": "LBL_UpdateTimeout", + "hidden": "!data.TeslaFiAPIToken", + "min": 1000, + "max": 30000, + "step": 100, + "default": 5000, + "xs": 12, + "sm": 12, + "md": 10, + "lg": 8, + "xl": 6 + }, "_headerDocumentation": { "type": "header", diff --git a/build/lib/teslafiAPICaller.js b/build/lib/teslafiAPICaller.js index 1b94f29..93683f4 100644 --- a/build/lib/teslafiAPICaller.js +++ b/build/lib/teslafiAPICaller.js @@ -8,7 +8,7 @@ const axios_1 = __importDefault(require("axios")); const date_fns_1 = require("date-fns"); const projectUtils_1 = require("./projectUtils"); const axiosInstance = axios_1.default.create({ - timeout: 5000, // Standard-Timeout von 5 Sekunden +//timeout: 5000, //by default }); // structure of vehicle data const stVD = { @@ -222,6 +222,7 @@ class TeslaFiAPICaller extends projectUtils_1.ProjectUtils { try { const response = await axiosInstance.get(`${this.queryUrl}${this.adapter.config.TeslaFiAPIToken}&command=`, { transformResponse: r => r, + timeout: this.adapter.config.UpdateTimeout, // 5000 by default }); if (!response.data) { throw new Error(`Empty answer from TeslaFi.`); diff --git a/build/lib/teslafiAPICaller.js.map b/build/lib/teslafiAPICaller.js.map index cc5f674..284cc29 100644 --- a/build/lib/teslafiAPICaller.js.map +++ b/build/lib/teslafiAPICaller.js.map @@ -1 +1 @@ -{"version":3,"file":"teslafiAPICaller.js","sourceRoot":"","sources":["../../src/lib/teslafiAPICaller.ts"],"names":[],"mappings":";;;;;;AACA,kDAA+C;AAC/C,uCAAqD;AACrD,iDAA8C;AAE9C,MAAM,aAAa,GAAG,eAAK,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,IAAI,EAAE,kCAAkC;CACjD,CAAC,CAAC;AAQH,4BAA4B;AAC5B,MAAM,IAAI,GAAgC;IACzC,IAAI,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,EAAE,KAAK,EAAE,IAAI,EAAE;IACzE,oDAAoD;IACpD,YAAY,EAAE;QACb,GAAG,EAAE,cAAc;QACnB,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,IAAI;KACX;IACD,2EAA2E;IAC3E,GAAG,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,IAAI,EAAE;IAC3D,qFAAqF;IACrF,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,IAAI,EAAE;IACjE,uDAAuD;IACvD,mBAAmB,EAAE;QACpB,GAAG,EAAE,qBAAqB;QAC1B,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,IAAI;KACX;IACD,sBAAsB,EAAE;QACvB,GAAG,EAAE,wBAAwB;QAC7B,IAAI,EAAE,sCAAsC;QAC5C,KAAK,EAAE,IAAI;KACX;IACD,sDAAsD;IACtD,cAAc,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,CAAC,eAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gCAC/C,MAAM,CAAC,cAAc,CAAC,kBAAkB,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC;4BACpE,CAAC,CAAC,CAAC;wBACJ,KAAK,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE;4BACnD,GAAG,EAAE,OAAO,CAAC,OAAO;4BACpB,GAAG,EAAE,IAAI;yBACT,CAAC,CAAC;oBACJ,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;CACD;AA9aD,4CA8aC"} \ No newline at end of file +{"version":3,"file":"teslafiAPICaller.js","sourceRoot":"","sources":["../../src/lib/teslafiAPICaller.ts"],"names":[],"mappings":";;;;;;AACA,kDAA+C;AAC/C,uCAAqD;AACrD,iDAA8C;AAE9C,MAAM,aAAa,GAAG,eAAK,CAAC,MAAM,CAAC;AAClC,6BAA6B;CAC7B,CAAC,CAAC;AAQH,4BAA4B;AAC5B,MAAM,IAAI,GAAgC;IACzC,IAAI,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,EAAE,KAAK,EAAE,IAAI,EAAE;IACzE,oDAAoD;IACpD,YAAY,EAAE;QACb,GAAG,EAAE,cAAc;QACnB,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,IAAI;KACX;IACD,2EAA2E;IAC3E,GAAG,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,IAAI,EAAE;IAC3D,qFAAqF;IACrF,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,IAAI,EAAE;IACjE,uDAAuD;IACvD,mBAAmB,EAAE;QACpB,GAAG,EAAE,qBAAqB;QAC1B,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,IAAI;KACX;IACD,sBAAsB,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;wBAChD,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;wBACxB,MAAM;4BACL,MAAM,CAAC,SAAS,CAAC,CAAC,KAAkG,EAAE,EAAE;gCACvH,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCACvB,KAAK,CAAC,MAAM,CAAC,eAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gCAC/C,MAAM,CAAC,cAAc,CAAC,kBAAkB,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC;4BACpE,CAAC,CAAC,CAAC;wBACJ,KAAK,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE;4BACnD,GAAG,EAAE,OAAO,CAAC,OAAO;4BACpB,GAAG,EAAE,IAAI;yBACT,CAAC,CAAC;oBACJ,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;CACD;AAhbD,4CAgbC"} \ No newline at end of file diff --git a/io-package.json b/io-package.json index fbf91bb..f2ec471 100644 --- a/io-package.json +++ b/io-package.json @@ -1,10 +1,20 @@ { "common": { "name": "teslafi", - "version": "0.4.7", + "version": "1.0.0", "news": { - "0.4.7": { - "en": "add newVersionStatus (#80)" + "1.0.0": { + "en": "version bumped to 1.0 for stable release\nadd newVersionStatus (#80)\nadd configurable poll timeout", + "de": "Version wurde für eine stabile Veröffentlichung auf 1.0 erhöht\nnewVersionStatus hinzufügen (#80)\nFügen Sie ein konfigurierbares Poll-Timeout hinzu", + "ru": "версия увеличена до 1.0 для стабильной версии\nдобавить новыйVersionStatus (#80)\nдобавить настраиваемый тайм-аут опроса", + "pt": "versão passou para 1.0 para versão estável\nadicione newVersionStatus (#80)\nadicionar tempo limite de pesquisa configurável", + "nl": "versie verhoogd naar 1.0 voor stabiele release\nnieuweVersionStatus toevoegen (#80)\nconfigureerbare poll-time-out toevoegen", + "fr": "version passée à 1.0 pour une version stable\najouter newVersionStatus (#80)\najouter un délai d'attente d'interrogation configurable", + "it": "versione aumentata alla 1.0 per il rilascio stabile\naggiungi nuovo stato versione (#80)\naggiungere timeout del sondaggio configurabile", + "es": "La versión aumentó a 1.0 para una versión estable.\nagregar nuevo estado de versión (#80)\nagregar tiempo de espera de encuesta configurable", + "pl": "wersja została zmieniona na 1.0 w celu uzyskania stabilnego wydania\ndodaj nowyStatus wersji (#80)\ndodaj konfigurowalny limit czasu ankiety", + "uk": "версія підвищена до 1.0 для стабільного випуску\nдодати newVersionStatus (#80)\nдодати настроюваний тайм-аут опитування", + "zh-cn": "版本已升至 1.0 以进行稳定发布\n添加新版本状态 (#80)\n添加可配置的轮询超时" }, "0.4.6": { "en": "fix chai\noptimize documentation", @@ -155,7 +165,8 @@ "protectedNative": ["TeslaFiAPIToken", "teslafiapitokenpass"], "native": { "TeslaFiAPIToken": "", - "UpdateInterval": "60" + "UpdateInterval": "60", + "UpdateTimeout": 5000 }, "objects": [], "instanceObjects": [ diff --git a/package.json b/package.json index 277af63..2884015 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.teslafi", - "version": "0.4.7", + "version": "1.0.0", "description": "Adapter to poll TeslaFi data of your car", "author": { "name": "Hombach", diff --git a/src/lib/adapter-config.d.ts b/src/lib/adapter-config.d.ts index 8b5c703..1ded13a 100644 --- a/src/lib/adapter-config.d.ts +++ b/src/lib/adapter-config.d.ts @@ -6,6 +6,7 @@ declare global { interface AdapterConfig { TeslaFiAPIToken: string; UpdateInterval: number; + UpdateTimeout: number; } } } diff --git a/src/lib/teslafiAPICaller.ts b/src/lib/teslafiAPICaller.ts index f32862e..e997565 100644 --- a/src/lib/teslafiAPICaller.ts +++ b/src/lib/teslafiAPICaller.ts @@ -4,7 +4,7 @@ import { add, format, fromUnixTime } from "date-fns"; import { ProjectUtils } from "./projectUtils"; const axiosInstance = axios.create({ - timeout: 5000, // Standard-Timeout von 5 Sekunden + //timeout: 5000, //by default }); interface VehicleData { @@ -212,6 +212,7 @@ function calculateEndTimeFromNow(hours: number, dateFormat = "dd.MM.yyyy HH:mm:s */ export class TeslaFiAPICaller extends ProjectUtils { queryUrl = ""; + /** * constructor * @@ -229,6 +230,7 @@ export class TeslaFiAPICaller extends ProjectUtils { try { const response = await axiosInstance.get(`${this.queryUrl}${this.adapter.config.TeslaFiAPIToken}&command=`, { transformResponse: r => r, + timeout: this.adapter.config.UpdateTimeout, // 5000 by default }); if (!response.data) {