iobroker.bmw 4.3.0 → 4.3.1

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 CHANGED
@@ -209,6 +209,10 @@ If you're not seeing expected data in `VIN.api.*`:
209
209
  This adapter is available at: [https://github.com/TA2k/ioBroker.bmw](https://github.com/TA2k/ioBroker.bmw)
210
210
 
211
211
  ## Changelog
212
+ ### 4.3.1 (2025-10-11)
213
+
214
+ - fix gps coordinate parsing
215
+
212
216
  ### 4.3.0 (2025-10-09)
213
217
 
214
218
  - improve logs
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "bmw",
4
- "version": "4.3.0",
4
+ "version": "4.3.1",
5
5
  "news": {
6
+ "4.3.1": {
7
+ "en": "fix gps coordinate parsing",
8
+ "de": "fix gps koordinate paring",
9
+ "ru": "фиксация gps координаты парсинга",
10
+ "pt": "corrigir a análise de coordenadas do gps",
11
+ "nl": "fix gps-coördinaat ontleden",
12
+ "fr": "correction de l'analyse des coordonnées de gps",
13
+ "it": "correzione gps coordinate parsing",
14
+ "es": "fijar gps coordenadas paresing",
15
+ "pl": "parsowanie współrzędnych gps",
16
+ "uk": "фіксувати gps координацію парсингу",
17
+ "zh-cn": "gps 坐标解析"
18
+ },
6
19
  "4.3.0": {
7
20
  "en": "improve logs\nadd autocast\nadd descriptions",
8
21
  "de": "logs verbessern\nautocast hinzufügen\nbeschreibungen hinzufügen",
@@ -80,19 +93,6 @@
80
93
  "pl": "BREAKING: Upuszczone wsparcie dla Node.js 18 (# 88)\nBREAKING: Utracone wsparcie dla kontrolera js- 5 (# 111)\nBREAKING: zmiana na admin 7.4.10 zgodnie z zaleceniami jOBrokera (# 111)\nszyfrowanie i ochrona hasła drugiego użytkownika - należy ponownie wprowadzić (# 111)\nuzależnienia od guza",
81
94
  "uk": "BREAKING: Dropped підтримка для Node.js 18 (#88)\nBREAKING: Dropped підтримка для js-controller 5 (#111)\nBREAKING: зміни до адміністратора 7.4.10, як рекомендовано ioBroker (#111)\nзашифрувати і захистити другий пароль користувача - повинен бути повторний (#111)\nbump залежності",
82
95
  "zh-cn": "对节点18(#88)的支持下降\n中断 : js 控制器 5 已放弃支持 (# 111)\n根据ioBroker的建议(# 111) 改为admin 7.4.10\n加密和保护第二个用户密码 - 必须重新输入( # 111)\n意外依赖"
83
- },
84
- "2.9.5": {
85
- "en": "update axios\nfixing issues detected by repository checker (#88)\nsome small code cleanups/modernisations\nadd/translate description\nupdate logo",
86
- "de": "axios\nproblembehebung durch repository checker (#88)\neinige kleine code-reinigungen/modernisierungen\nbeschreibung hinzufügen/übersetzen\nupdate-logo",
87
- "ru": "обновление axios\nисправление проблем, обнаруженных с помощью проверки репозитория (#88)\nнебольшая очистка кода / модернизация\nдобавить/перевести описание\nобновление логотипа",
88
- "pt": "axios de atualização\nproblemas de fixação detectados pelo verificador de repositório (#88)\nalgumas pequenas limpezas de código/modernizações\nadd/translate description\natualização do logotipo",
89
- "nl": "axios bijwerken\nvastleggen van problemen gedetecteerd door repository checker (#88)\nenkele kleine code opruimingen/modernisaties\nbeschrijving toevoegen/vertalen\nlogo bijwerken",
90
- "fr": "mettre à jour axios\ncorrection des problèmes détectés par le contrôleur du dépôt (#88)\nquelques petits nettoyages/modernisations de code\najouter/transférer la description\nmettre à jour le logo",
91
- "it": "aggiornamento assio\nrisolvere i problemi rilevati da repository checker (#88)\nalcune piccole pulizia del codice/modernizzazioni\naggiungere/tradurre la descrizione\nlogo aggiornamento",
92
- "es": "actualización axios\nproblemas de fijación detectados por repositorio (#88)\nalgunas pequeñas limpiezas/modernizaciones de código\nadd/translate description\nactualización del logo",
93
- "pl": "aktualizacja axios\nproblemy z ustawianiem wykryte przez kontroler repozytorium (# 88)\nniektóre małe czystki kodu / modernizacje\ndodaj / przetłumacz opis\naktualizacja logo",
94
- "uk": "оновлення axios\nфіксація питань, виявлених репозиторійною перевіркою (#88)\nдеякі невеликі очищення коду / модернізації\nопис\nоновлення логотипу",
95
- "zh-cn": "更新轴线\n修复仓库检查器检测到的问题(#88)\n一些小代码清理/现代化\n添加/翻译说明\n更新标志"
96
96
  }
97
97
  },
98
98
  "titleLang": {
package/lib/tools.js CHANGED
@@ -1,4 +1,6 @@
1
- const axios = require('axios').default;
1
+ // DEACTIVATED
2
+
3
+ // const axios = require('axios').default;
2
4
 
3
5
  /**
4
6
  * Tests whether the given variable is a real object and not an Array
@@ -6,13 +8,14 @@ const axios = require('axios').default;
6
8
  * @param {any} it The variable to test
7
9
  * @returns {it is Record<string, any>} True if the variable is a real object, false otherwise.
8
10
  */
11
+ /*
9
12
  function isObject(it) {
10
13
  // This is necessary because:
11
14
  // typeof null === 'object'
12
15
  // typeof [] === 'object'
13
16
  // [] instanceof Object === true
14
17
  return Object.prototype.toString.call(it) === '[object Object]';
15
- }
18
+ }*/
16
19
 
17
20
  /**
18
21
  * Tests whether the given variable is really an Array
@@ -20,12 +23,12 @@ function isObject(it) {
20
23
  * @param {any} it The variable to test
21
24
  * @returns {it is any[]} True if the variable is an array, false otherwise.
22
25
  */
23
- function isArray(it) {
26
+ /*function isArray(it) {
24
27
  if (typeof Array.isArray === 'function') {
25
28
  return Array.isArray(it);
26
29
  }
27
30
  return Object.prototype.toString.call(it) === '[object Array]';
28
- }
31
+ }*/
29
32
 
30
33
  /**
31
34
  * Translates text to the target language. Automatically chooses the right translation API.
@@ -35,7 +38,7 @@ function isArray(it) {
35
38
  * @param {string} [yandexApiKey] The yandex API key. You can create one for free at https://translate.yandex.com/developers
36
39
  * @returns {Promise<string>} A promise that resolves to the translated text.
37
40
  */
38
- async function translateText(text, targetLang, yandexApiKey) {
41
+ /*async function translateText(text, targetLang, yandexApiKey) {
39
42
  if (targetLang === 'en') {
40
43
  return text;
41
44
  } else if (!text) {
@@ -45,7 +48,7 @@ async function translateText(text, targetLang, yandexApiKey) {
45
48
  return translateYandex(text, targetLang, yandexApiKey);
46
49
  }
47
50
  return translateGoogle(text, targetLang);
48
- }
51
+ }*/
49
52
 
50
53
  /**
51
54
  * Translates text with Yandex API
@@ -55,7 +58,7 @@ async function translateText(text, targetLang, yandexApiKey) {
55
58
  * @param {string} apiKey The yandex API key. You can create one for free at https://translate.yandex.com/developers
56
59
  * @returns {Promise<string>} A promise that resolves to the translated text.
57
60
  */
58
- async function translateYandex(text, targetLang, apiKey) {
61
+ /*async function translateYandex(text, targetLang, apiKey) {
59
62
  if (targetLang === 'zh-cn') {
60
63
  targetLang = 'zh';
61
64
  }
@@ -71,7 +74,7 @@ async function translateYandex(text, targetLang, apiKey) {
71
74
  } catch (e) {
72
75
  throw new Error(`Could not translate to "${targetLang}": ${e}`);
73
76
  }
74
- }
77
+ }*/
75
78
 
76
79
  /**
77
80
  * Translates text with Google API
@@ -80,7 +83,7 @@ async function translateYandex(text, targetLang, apiKey) {
80
83
  * @param {string} targetLang The target languate
81
84
  * @returns {Promise<string>} A promise that resolves to the translated text.
82
85
  */
83
- async function translateGoogle(text, targetLang) {
86
+ /*async function translateGoogle(text, targetLang) {
84
87
  try {
85
88
  const url = `http://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodeURIComponent(
86
89
  text,
@@ -98,10 +101,10 @@ async function translateGoogle(text, targetLang) {
98
101
  throw new Error(`Could not translate to "${targetLang}": ${e}`);
99
102
  }
100
103
  }
101
- }
104
+ }*/
102
105
 
103
- module.exports = {
106
+ /*module.exports = {
104
107
  isArray,
105
108
  isObject,
106
109
  translateText,
107
- };
110
+ };*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.bmw",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "Adapter for BMW",
5
5
  "author": {
6
6
  "name": "TA2k",
@@ -22,23 +22,23 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@iobroker/adapter-core": "^3.3.2",
25
- "axios": "^1.12.2",
25
+ "axios": "^1.13.2",
26
26
  "axios-retry": "^4.5.0",
27
- "json2iob": "^2.6.20",
27
+ "json2iob": "^2.6.21",
28
28
  "mqtt": "^5.14.1",
29
29
  "qs": "^6.14.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@alcalzone/release-script": "^3.8.0",
33
- "@alcalzone/release-script-plugin-iobroker": "^3.7.2",
34
- "@alcalzone/release-script-plugin-license": "^3.7.0",
35
- "@alcalzone/release-script-plugin-manual-review": "^3.7.0",
32
+ "@alcalzone/release-script": "^5.0.0",
33
+ "@alcalzone/release-script-plugin-iobroker": "^4.0.0",
34
+ "@alcalzone/release-script-plugin-license": "^4.0.0",
35
+ "@alcalzone/release-script-plugin-manual-review": "^4.0.0",
36
36
  "@iobroker/eslint-config": "^2.2.0",
37
- "@iobroker/testing": "^5.1.1",
38
- "@tsconfig/node20": "^20.1.6",
39
- "@types/node": "^24.7.0",
37
+ "@iobroker/testing": "^5.2.2",
38
+ "@tsconfig/node20": "^20.1.8",
39
+ "@types/node": "^24.10.1",
40
40
  "@types/qs": "^6.14.0",
41
- "globals": "^16.4.0",
41
+ "globals": "^16.5.0",
42
42
  "typescript": "~5.9.3"
43
43
  },
44
44
  "main": "main.js",