iobroker.volvo 0.1.2 → 1.0.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/.github/workflows/test-and-release.yml +2 -2
- package/README.md +143 -30
- package/admin/i18n/de/translations.json +14 -0
- package/admin/i18n/en/translations.json +14 -0
- package/admin/jsonConfig.json +93 -0
- package/io-package.json +97 -27
- package/lib/extractKeys.js +1 -1
- package/main.js +605 -404
- package/package.json +21 -17
- package/.create-adapter.json +0 -35
- package/.eslintignore +0 -3
- package/.prettierignore +0 -2
- package/.prettierrc.js +0 -9
- package/admin/index_m.html +0 -144
- package/admin/style.css +0 -10
- package/admin/words.js +0 -41
- package/lib/tools.js +0 -91
|
@@ -40,7 +40,7 @@ jobs:
|
|
|
40
40
|
runs-on: ${{ matrix.os }}
|
|
41
41
|
strategy:
|
|
42
42
|
matrix:
|
|
43
|
-
node-version: [
|
|
43
|
+
node-version: [20.x, 22.x]
|
|
44
44
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
45
45
|
|
|
46
46
|
steps:
|
|
@@ -74,7 +74,7 @@ jobs:
|
|
|
74
74
|
steps:
|
|
75
75
|
- uses: ioBroker/testing-action-deploy@v1
|
|
76
76
|
with:
|
|
77
|
-
node-version: '
|
|
77
|
+
node-version: '20.x'
|
|
78
78
|
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
|
|
79
79
|
# install-command: 'npm install'
|
|
80
80
|
npm-token: ${{ secrets.NPM_TOKEN }}
|
package/README.md
CHANGED
|
@@ -4,80 +4,193 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/iobroker.volvo)
|
|
6
6
|
[](https://www.npmjs.com/package/iobroker.volvo)
|
|
7
|
-

|
|
8
|
-

|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
## Volvo Cars Adapter for ioBroker
|
|
11
9
|
|
|
12
|
-
[
|
|
10
|
+
This adapter connects your Volvo car to ioBroker using the [Volvo Connected Vehicle API](https://developer.volvocars.com/apis/) and [Energy API v2](https://developer.volvocars.com/apis/energy/v2/overview/).
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
### Supported Features
|
|
15
13
|
|
|
16
|
-
|
|
14
|
+
- 🔋 Battery charge level, electric range, charging status (PHEV / BEV)
|
|
15
|
+
- ⛽ Fuel level, odometer, trip statistics
|
|
16
|
+
- 🚪 Door, window, and lock status
|
|
17
|
+
- 📍 GPS location
|
|
18
|
+
- 🔧 Diagnostics (service warnings, brake fluid, oil, tyres, lights)
|
|
19
|
+
- 🔑 Remote commands (lock/unlock, honk, flash, climatization)
|
|
20
|
+
- 🔄 Automatic data refresh at configurable intervals
|
|
21
|
+
- 🔐 Token persistence — survives adapter restarts without re-login
|
|
17
22
|
|
|
18
|
-
|
|
23
|
+
---
|
|
19
24
|
|
|
20
|
-
##
|
|
25
|
+
## Setup Guide
|
|
21
26
|
|
|
22
|
-
|
|
27
|
+
### 1. Get a VCC API Key
|
|
23
28
|
|
|
24
|
-
|
|
29
|
+
1. Go to [developer.volvocars.com](https://developer.volvocars.com/account/) and sign in (Google or GitHub account).
|
|
30
|
+
2. Create a new **Application**.
|
|
31
|
+
3. Copy the **VCC API Key (Primary)**.
|
|
25
32
|
|
|
26
|
-
|
|
27
|
-
<https://developer.volvocars.com/account/>
|
|
33
|
+

|
|
28
34
|
|
|
29
|
-
|
|
35
|
+
### 2. Configure the Adapter
|
|
30
36
|
|
|
31
|
-
|
|
37
|
+
1. Open the adapter settings in ioBroker.
|
|
38
|
+
2. Enter your **Volvo ID email** and **password** (the same credentials you use in the Volvo Cars app).
|
|
39
|
+
3. Paste the **VCC API Key**.
|
|
40
|
+
4. Set the **update interval** (default: 5 minutes).
|
|
32
41
|
|
|
33
|
-
|
|
42
|
+
### 3. Login with OTP
|
|
34
43
|
|
|
35
|
-
|
|
44
|
+
The Volvo API uses a two-factor authentication flow with a one-time password (OTP):
|
|
45
|
+
|
|
46
|
+
1. Click **"Start Login (Send OTP)"** in the adapter settings.
|
|
47
|
+
2. Check your email for the OTP code from Volvo.
|
|
48
|
+
3. Enter the code and click **"Submit OTP"**.
|
|
49
|
+
4. The adapter will store the refresh token so you won't need to repeat this unless the token expires (typically weeks/months).
|
|
50
|
+
|
|
51
|
+
> **Note:** If the refresh token expires, the adapter will show a warning in the log. Simply repeat the OTP login from the adapter settings.
|
|
36
52
|
|
|
37
|
-
|
|
53
|
+
---
|
|
38
54
|
|
|
39
|
-
|
|
55
|
+
## Data Points
|
|
40
56
|
|
|
41
|
-
|
|
57
|
+
The adapter creates the following data point structure under `volvo.0.<VIN>`:
|
|
42
58
|
|
|
43
|
-
|
|
59
|
+
| Path | Description |
|
|
60
|
+
|---|---|
|
|
61
|
+
| `energy.batteryChargeLevel.*` | Battery charge level (%), updated timestamp |
|
|
62
|
+
| `energy.electricRange.*` | Electric driving range (km) |
|
|
63
|
+
| `energy.chargingStatus.*` | Charging status (IDLE, CHARGING, etc.) |
|
|
64
|
+
| `energy.chargerConnectionStatus.*` | Charger connection (CONNECTED, DISCONNECTED) |
|
|
65
|
+
| `status.doors.*` | Door states (OPEN/CLOSED), central lock |
|
|
66
|
+
| `status.windows.*` | Window states including sunroof |
|
|
67
|
+
| `status.fuel.*` | Fuel amount (liters) |
|
|
68
|
+
| `status.odometer.*` | Odometer reading (km) |
|
|
69
|
+
| `status.diagnostics.*` | Service warnings, distance/time to service |
|
|
70
|
+
| `status.statistics.*` | Fuel/energy consumption, trip meters |
|
|
71
|
+
| `status.engine-status.*` | Engine running state |
|
|
72
|
+
| `status.warnings.*` | Light warnings (brake lights, fog, indicators, etc.) |
|
|
73
|
+
| `location.*` | GPS coordinates, heading, timestamp |
|
|
74
|
+
| `remote.*` | Remote commands (buttons) |
|
|
44
75
|
|
|
45
|
-
##
|
|
76
|
+
## Remote Commands
|
|
46
77
|
|
|
47
|
-
Use
|
|
78
|
+
Use the buttons under `volvo.0.<VIN>.remote` to control your vehicle:
|
|
79
|
+
|
|
80
|
+
- `lock` / `unlock` — Lock or unlock the car
|
|
81
|
+
- `climatization-start` / `climatization-stop` — Start or stop pre-conditioning
|
|
82
|
+
- `honk` / `flash` / `honk-flash` — Sound horn, flash lights, or both
|
|
83
|
+
- `lock-reduced-guard` — Lock with reduced guard
|
|
84
|
+
- `refresh` — Manually refresh all data
|
|
85
|
+
|
|
86
|
+
---
|
|
48
87
|
|
|
49
88
|
## Changelog
|
|
89
|
+
|
|
90
|
+
### 1.0.0 🎉
|
|
91
|
+
|
|
92
|
+
First stable release — complete rewrite of the Volvo ioBroker adapter.
|
|
93
|
+
|
|
94
|
+
**New Features:**
|
|
95
|
+
- **Vehicle Details**: Model, year, color and images fetched from API
|
|
96
|
+
- **Retry Logic**: Automatic retry with exponential backoff on API errors (429/5xx)
|
|
97
|
+
- **Command Status Tracking**: Polls async command results (up to 5x) and stores status in `lastCommandStatus`
|
|
98
|
+
- **Auto-Refresh after Commands**: Doors auto-refresh after lock/unlock, engine-status after climatization
|
|
99
|
+
- **Last Update Timestamp**: `lastUpdate` state per vehicle shows last successful data fetch
|
|
100
|
+
- **Admin UI: jsonConfig Migration**: Modern React-based settings UI (Admin5) with i18n support
|
|
101
|
+
- **Admin UI: Connection Test**: Test API connection directly from adapter settings
|
|
102
|
+
- **Admin UI: Vehicle Info**: Display vehicle details from settings page
|
|
103
|
+
|
|
104
|
+
**Versioning Policy (SemVer):**
|
|
105
|
+
- MAJOR: Breaking changes (config changes, removed states, new minimum Node.js)
|
|
106
|
+
- MINOR: New features (new data points, commands, UI features)
|
|
107
|
+
- PATCH: Bug fixes, dependency updates, cleanup
|
|
108
|
+
|
|
109
|
+
### 0.2.7
|
|
110
|
+
|
|
111
|
+
- Extracted inline JavaScript from `admin/index_m.html` into separate `admin/index_m.js`
|
|
112
|
+
- Added ESLint config for admin browser JS (jQuery/browser globals)
|
|
113
|
+
|
|
114
|
+
### 0.2.6
|
|
115
|
+
|
|
116
|
+
- Removed obsolete files: `.create-adapter.json` (wrong adapter name), `lib/tools.js` (unused), `.prettierrc.js`/`.prettierignore` (Prettier not installed)
|
|
117
|
+
- Updated `.npmignore` (removed references to deleted `.eslintrc.json`)
|
|
118
|
+
- Updated CI workflow: dropped Node 18 (EOL), testing on Node 20 + 22
|
|
119
|
+
|
|
120
|
+
### 0.2.5
|
|
121
|
+
|
|
122
|
+
- Updated all dependencies to latest major versions
|
|
123
|
+
- @alcalzone/release-script 3.7 → 5.1, eslint 9 → 10, @iobroker/testing 5.0 → 5.2
|
|
124
|
+
|
|
125
|
+
### 0.2.4
|
|
126
|
+
|
|
127
|
+
- Migrated from ESLint 8 to ESLint 9 (flat config) — fixes CVE-2025-50537
|
|
128
|
+
- Removed deprecated `.eslintrc.json` and `.eslintignore`
|
|
129
|
+
|
|
130
|
+
### 0.2.3
|
|
131
|
+
|
|
132
|
+
- Fixed all npm audit vulnerabilities (0 remaining)
|
|
133
|
+
- Added npm overrides for serialize-javascript, diff, esbuild
|
|
134
|
+
|
|
135
|
+
### 0.2.2
|
|
136
|
+
|
|
137
|
+
- Fixed ESLint lint error (single quotes)
|
|
138
|
+
- Removed credentials and IPs from AGENTS.md, added discovery instructions
|
|
139
|
+
- Updated devDependencies: @iobroker/testing 5.2, @types/node 25.5, eslint 8.57
|
|
140
|
+
|
|
141
|
+
### 0.2.1
|
|
142
|
+
|
|
143
|
+
- Fixed refresh token not being preserved across token refreshes (caused 401 errors after ~25 minutes)
|
|
144
|
+
- Removed dead legacy code: old VOC API (`vocapi.wirelesscar.net`), `request` module, `uuid`, `json-bigint`
|
|
145
|
+
- Updated dependencies: axios 1.14, qs 6.15, json2iob 2.6.22, @iobroker/adapter-core 3.3
|
|
146
|
+
- Added update migration notice for users upgrading from pre-0.2.0 versions
|
|
147
|
+
- Removed unused `newApi` config option from io-package.json
|
|
148
|
+
|
|
149
|
+
### 0.2.0
|
|
150
|
+
|
|
151
|
+
- **Complete rewrite of authentication**: Replaced dead `grant_type: password` OAuth flow with new multi-step OTP (one-time password) login via PingFederate
|
|
152
|
+
- **All API endpoints updated to v2**: Vehicle list (`connected-vehicle/v2`), Energy (`energy/v2`), Commands (`connected-vehicle/v2/commands`)
|
|
153
|
+
- **Fixed remote commands**: Changed `Content-Type` from deprecated vendor-specific format to `application/json` (was causing HTTP 415 errors)
|
|
154
|
+
- **Fixed refresh button**: Now triggers a data re-fetch instead of sending an invalid API command (was causing HTTP 404)
|
|
155
|
+
- **Buttons are now proper buttons**: Remote controls use `role: button` with auto-reset instead of toggle booleans
|
|
156
|
+
- **Fixed Energy API parsing**: `batteryChargeLevel`, `electricRange`, `chargingStatus` etc. now update correctly (v2 response format differs from v1)
|
|
157
|
+
- **Added OTP login UI** in adapter settings with step-by-step flow
|
|
158
|
+
- **Added token persistence**: Refresh token stored in ioBroker state, survives adapter restarts
|
|
159
|
+
- **Removed dead code**: Old VOC API (`vocapi.wirelesscar.net`), `extended-vehicle/v1`, `energy/v1`, `newApi` checkbox — all removed
|
|
160
|
+
- **Admin UI localized**: English + German via `words.js`
|
|
161
|
+
- **Updated README** with new setup guide
|
|
162
|
+
|
|
50
163
|
### 0.1.2 (2024-05-02)
|
|
51
164
|
|
|
52
|
-
-
|
|
165
|
+
- Added support for v2 API
|
|
53
166
|
|
|
54
167
|
### 0.1.1
|
|
55
168
|
|
|
56
|
-
-
|
|
169
|
+
- Added location API information
|
|
57
170
|
|
|
58
171
|
### 0.1.0
|
|
59
172
|
|
|
60
|
-
- (TA2k)
|
|
173
|
+
- (TA2k) Add new API for electric cars
|
|
61
174
|
|
|
62
175
|
### 0.0.6
|
|
63
176
|
|
|
64
|
-
- (TA2k)
|
|
177
|
+
- (TA2k) Fix trip object naming
|
|
65
178
|
|
|
66
179
|
### 0.0.5
|
|
67
180
|
|
|
68
|
-
- (TA2k)
|
|
181
|
+
- (TA2k) Fix receiving data
|
|
69
182
|
|
|
70
183
|
### 0.0.4
|
|
71
184
|
|
|
72
|
-
- (TA2k)
|
|
185
|
+
- (TA2k) Fix jscontroller
|
|
73
186
|
|
|
74
187
|
### 0.0.3
|
|
75
188
|
|
|
76
|
-
- (TA2k)
|
|
189
|
+
- (TA2k) Fix preclimate
|
|
77
190
|
|
|
78
191
|
### 0.0.2
|
|
79
192
|
|
|
80
|
-
- (TA2k)
|
|
193
|
+
- (TA2k) Initial release
|
|
81
194
|
|
|
82
195
|
## License
|
|
83
196
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"accountSettings": "Kontoeinstellungen",
|
|
3
|
+
"volvoIdEmail": "Volvo ID E-Mail",
|
|
4
|
+
"volvoIdPassword": "Volvo ID Passwort",
|
|
5
|
+
"vccApiKey": "VCC API-Schlüssel",
|
|
6
|
+
"vccApiKeyHelp": "API-Schlüssel unter developer.volvocars.com beziehen",
|
|
7
|
+
"updateInterval": "Aktualisierungsintervall (Minuten)",
|
|
8
|
+
"otpLogin": "Anmeldung mit Einmalpasswort",
|
|
9
|
+
"otpDescription": "Einstellungen zuerst speichern, dann 'Login starten' klicken um ein Einmalpasswort per E-Mail zu erhalten. Code eingeben und 'OTP bestätigen' klicken.",
|
|
10
|
+
"startLoginButton": "Login starten (OTP senden)",
|
|
11
|
+
"otpCode": "Einmalpasswort",
|
|
12
|
+
"submitOtpButton": "OTP bestätigen",
|
|
13
|
+
"testConnectionButton": "Verbindung testen"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"accountSettings": "Account Settings",
|
|
3
|
+
"volvoIdEmail": "Volvo ID Email",
|
|
4
|
+
"volvoIdPassword": "Volvo ID Password",
|
|
5
|
+
"vccApiKey": "VCC API Key",
|
|
6
|
+
"vccApiKeyHelp": "Get your API key at developer.volvocars.com",
|
|
7
|
+
"updateInterval": "Update interval (minutes)",
|
|
8
|
+
"otpLogin": "Login with OTP",
|
|
9
|
+
"otpDescription": "Save settings first, then click 'Start Login' to receive a one-time password via email. Enter the code and click 'Submit OTP' to complete authentication.",
|
|
10
|
+
"startLoginButton": "Start Login (Send OTP)",
|
|
11
|
+
"otpCode": "OTP Code",
|
|
12
|
+
"submitOtpButton": "Submit OTP",
|
|
13
|
+
"testConnectionButton": "Test Connection"
|
|
14
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"i18n": true,
|
|
3
|
+
"type": "panel",
|
|
4
|
+
"items": {
|
|
5
|
+
"_settingsHeader": {
|
|
6
|
+
"type": "header",
|
|
7
|
+
"text": "accountSettings",
|
|
8
|
+
"size": 4
|
|
9
|
+
},
|
|
10
|
+
"user": {
|
|
11
|
+
"type": "text",
|
|
12
|
+
"label": "volvoIdEmail",
|
|
13
|
+
"sm": 12,
|
|
14
|
+
"md": 6
|
|
15
|
+
},
|
|
16
|
+
"password": {
|
|
17
|
+
"type": "password",
|
|
18
|
+
"label": "volvoIdPassword",
|
|
19
|
+
"sm": 12,
|
|
20
|
+
"md": 6
|
|
21
|
+
},
|
|
22
|
+
"vccapikey": {
|
|
23
|
+
"type": "text",
|
|
24
|
+
"label": "vccApiKey",
|
|
25
|
+
"help": "vccApiKeyHelp",
|
|
26
|
+
"sm": 12,
|
|
27
|
+
"md": 6
|
|
28
|
+
},
|
|
29
|
+
"interval": {
|
|
30
|
+
"type": "number",
|
|
31
|
+
"label": "updateInterval",
|
|
32
|
+
"min": 1,
|
|
33
|
+
"max": 1440,
|
|
34
|
+
"sm": 12,
|
|
35
|
+
"md": 6
|
|
36
|
+
},
|
|
37
|
+
"_divider1": {
|
|
38
|
+
"type": "divider"
|
|
39
|
+
},
|
|
40
|
+
"_otpHeader": {
|
|
41
|
+
"type": "header",
|
|
42
|
+
"text": "otpLogin",
|
|
43
|
+
"size": 4
|
|
44
|
+
},
|
|
45
|
+
"_otpDescription": {
|
|
46
|
+
"type": "staticText",
|
|
47
|
+
"text": "otpDescription",
|
|
48
|
+
"style": {
|
|
49
|
+
"marginBottom": 16
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"_startLogin": {
|
|
53
|
+
"type": "sendTo",
|
|
54
|
+
"label": "startLoginButton",
|
|
55
|
+
"command": "startLogin",
|
|
56
|
+
"jsonData": "{\"user\": \"${data.user}\", \"password\": \"${data.password}\"}",
|
|
57
|
+
"variant": "contained",
|
|
58
|
+
"color": "primary",
|
|
59
|
+
"sm": 12,
|
|
60
|
+
"md": 4
|
|
61
|
+
},
|
|
62
|
+
"otp": {
|
|
63
|
+
"type": "text",
|
|
64
|
+
"label": "otpCode",
|
|
65
|
+
"doNotSave": true,
|
|
66
|
+
"noTranslation": true,
|
|
67
|
+
"sm": 12,
|
|
68
|
+
"md": 4
|
|
69
|
+
},
|
|
70
|
+
"_submitOtp": {
|
|
71
|
+
"type": "sendTo",
|
|
72
|
+
"label": "submitOtpButton",
|
|
73
|
+
"command": "submitOtp",
|
|
74
|
+
"jsonData": "{\"otp\": \"${data.otp}\"}",
|
|
75
|
+
"variant": "contained",
|
|
76
|
+
"color": "secondary",
|
|
77
|
+
"sm": 12,
|
|
78
|
+
"md": 4
|
|
79
|
+
},
|
|
80
|
+
"_divider2": {
|
|
81
|
+
"type": "divider"
|
|
82
|
+
},
|
|
83
|
+
"_testConnection": {
|
|
84
|
+
"type": "sendTo",
|
|
85
|
+
"label": "testConnectionButton",
|
|
86
|
+
"command": "testConnection",
|
|
87
|
+
"jsonData": "{\"vccapikey\": \"${data.vccapikey}\"}",
|
|
88
|
+
"variant": "outlined",
|
|
89
|
+
"sm": 12,
|
|
90
|
+
"md": 4
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "volvo",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.0.0": {
|
|
7
|
+
"en": "First stable release! Vehicle details, retry logic, command status tracking, auto-refresh, jsonConfig Admin5 UI, connection test, vehicle info display",
|
|
8
|
+
"de": "Erstes stabiles Release! Fahrzeugdetails, Retry-Logik, Befehlsstatus-Tracking, Auto-Refresh, jsonConfig Admin5-UI, Verbindungstest, Fahrzeug-Info-Anzeige"
|
|
9
|
+
},
|
|
10
|
+
"0.2.7": {
|
|
11
|
+
"en": "Extracted inline JS from admin HTML into separate admin/index_m.js",
|
|
12
|
+
"de": "Inline-JS aus Admin-HTML in separate admin/index_m.js ausgelagert"
|
|
13
|
+
},
|
|
14
|
+
"0.2.6": {
|
|
15
|
+
"en": "Repository cleanup: removed obsolete files, updated CI to Node 20+",
|
|
16
|
+
"de": "Repository aufgeräumt: veraltete Dateien entfernt, CI auf Node 20+ aktualisiert"
|
|
17
|
+
},
|
|
18
|
+
"0.2.5": {
|
|
19
|
+
"en": "Updated all dependencies to latest major versions",
|
|
20
|
+
"de": "Alle Abhängigkeiten auf neueste Hauptversionen aktualisiert"
|
|
21
|
+
},
|
|
22
|
+
"0.2.4": {
|
|
23
|
+
"en": "Migrated to ESLint 9 (flat config), fixes CVE-2025-50537",
|
|
24
|
+
"de": "Migration auf ESLint 9 (Flat Config), behebt CVE-2025-50537"
|
|
25
|
+
},
|
|
26
|
+
"0.2.3": {
|
|
27
|
+
"en": "Fix all npm audit vulnerabilities via overrides",
|
|
28
|
+
"de": "Alle npm-Audit-Schwachstellen über Overrides behoben"
|
|
29
|
+
},
|
|
6
30
|
"0.1.2": {
|
|
7
31
|
"en": "added support for v2 api",
|
|
8
32
|
"de": "Unterstützung für v2 api hinzugefügt",
|
|
@@ -26,33 +50,38 @@
|
|
|
26
50
|
"en": "fix trip objects naming"
|
|
27
51
|
}
|
|
28
52
|
},
|
|
29
|
-
"title": "Volvo
|
|
53
|
+
"title": "Volvo Cars",
|
|
30
54
|
"titleLang": {
|
|
31
|
-
"en": "Volvo
|
|
32
|
-
"de": "Volvo
|
|
33
|
-
"ru": "Volvo
|
|
34
|
-
"pt": "Volvo
|
|
35
|
-
"nl": "Volvo
|
|
36
|
-
"fr": "Volvo
|
|
37
|
-
"it": "Volvo
|
|
38
|
-
"es": "Volvo
|
|
39
|
-
"pl": "Volvo
|
|
40
|
-
"zh-cn": "
|
|
55
|
+
"en": "Volvo Cars",
|
|
56
|
+
"de": "Volvo Cars",
|
|
57
|
+
"ru": "Volvo Cars",
|
|
58
|
+
"pt": "Volvo Cars",
|
|
59
|
+
"nl": "Volvo Cars",
|
|
60
|
+
"fr": "Volvo Cars",
|
|
61
|
+
"it": "Volvo Cars",
|
|
62
|
+
"es": "Volvo Cars",
|
|
63
|
+
"pl": "Volvo Cars",
|
|
64
|
+
"zh-cn": "沃尔沃汽车"
|
|
41
65
|
},
|
|
42
66
|
"desc": {
|
|
43
|
-
"en": "Volvo
|
|
44
|
-
"de": "Volvo
|
|
45
|
-
"ru": "Volvo
|
|
46
|
-
"pt": "Adaptador Volvo
|
|
47
|
-
"nl": "Volvo
|
|
48
|
-
"fr": "Adaptateur Volvo
|
|
49
|
-
"it": "Adattatore Volvo
|
|
50
|
-
"es": "Adaptador Volvo
|
|
51
|
-
"pl": "Adapter Volvo
|
|
52
|
-
"zh-cn": "
|
|
67
|
+
"en": "Volvo Cars Adapter (Connected Vehicle API v2)",
|
|
68
|
+
"de": "Volvo Cars Adapter (Connected Vehicle API v2)",
|
|
69
|
+
"ru": "Volvo Cars Адаптер (Connected Vehicle API v2)",
|
|
70
|
+
"pt": "Adaptador Volvo Cars (Connected Vehicle API v2)",
|
|
71
|
+
"nl": "Volvo Cars adapter (Connected Vehicle API v2)",
|
|
72
|
+
"fr": "Adaptateur Volvo Cars (Connected Vehicle API v2)",
|
|
73
|
+
"it": "Adattatore Volvo Cars (Connected Vehicle API v2)",
|
|
74
|
+
"es": "Adaptador Volvo Cars (Connected Vehicle API v2)",
|
|
75
|
+
"pl": "Adapter Volvo Cars (Connected Vehicle API v2)",
|
|
76
|
+
"zh-cn": "沃尔沃汽车适配器 (Connected Vehicle API v2)"
|
|
53
77
|
},
|
|
54
|
-
"authors": [
|
|
55
|
-
|
|
78
|
+
"authors": [
|
|
79
|
+
"TA2k <tombox2020@gmail.com>"
|
|
80
|
+
],
|
|
81
|
+
"keywords": [
|
|
82
|
+
"volvo",
|
|
83
|
+
"volvo cars"
|
|
84
|
+
],
|
|
56
85
|
"license": "MIT",
|
|
57
86
|
"platform": "Javascript/Node.js",
|
|
58
87
|
"main": "main.js",
|
|
@@ -64,6 +93,7 @@
|
|
|
64
93
|
"mode": "daemon",
|
|
65
94
|
"type": "vehicle",
|
|
66
95
|
"compact": true,
|
|
96
|
+
"messagebox": true,
|
|
67
97
|
"connectionType": "cloud",
|
|
68
98
|
"dataSource": "poll",
|
|
69
99
|
"materialize": true,
|
|
@@ -71,13 +101,15 @@
|
|
|
71
101
|
{
|
|
72
102
|
"js-controller": ">=1.4.2"
|
|
73
103
|
}
|
|
74
|
-
]
|
|
104
|
+
],
|
|
105
|
+
"adminUI": {
|
|
106
|
+
"config": "json"
|
|
107
|
+
}
|
|
75
108
|
},
|
|
76
109
|
"native": {
|
|
77
110
|
"user": "",
|
|
78
111
|
"vccapikey": "",
|
|
79
112
|
"password": "",
|
|
80
|
-
"newApi": false,
|
|
81
113
|
"interval": 5
|
|
82
114
|
},
|
|
83
115
|
"objects": [],
|
|
@@ -103,5 +135,43 @@
|
|
|
103
135
|
},
|
|
104
136
|
"native": {}
|
|
105
137
|
}
|
|
106
|
-
]
|
|
138
|
+
],
|
|
139
|
+
"messages": [
|
|
140
|
+
{
|
|
141
|
+
"condition": {
|
|
142
|
+
"operand": "and",
|
|
143
|
+
"rules": [
|
|
144
|
+
"oldVersion<0.2.0",
|
|
145
|
+
"newVersion>=0.2.0"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"title": {
|
|
149
|
+
"en": "Important: Complete rewrite of authentication",
|
|
150
|
+
"de": "Wichtig: Authentifizierung komplett neu geschrieben"
|
|
151
|
+
},
|
|
152
|
+
"text": {
|
|
153
|
+
"en": "This update replaces the old Volvo On Call API with the new Volvo Cars Connected Vehicle API v2. After updating:\n\n1. Open the adapter settings\n2. Enter your VCC API Key (get one at developer.volvocars.com)\n3. Click \"Start Login\" and complete the OTP verification\n4. Recommended: Delete and recreate the adapter instance to remove stale data points from the old API",
|
|
154
|
+
"de": "Dieses Update ersetzt die alte Volvo On Call API durch die neue Volvo Cars Connected Vehicle API v2. Nach dem Update:\n\n1. Öffne die Adapter-Einstellungen\n2. Gib deinen VCC API-Schlüssel ein (erhältlich unter developer.volvocars.com)\n3. Klicke auf \"Login starten\" und schließe die OTP-Verifizierung ab\n4. Empfohlen: Lösche die Adapter-Instanz und erstelle sie neu, um veraltete Datenpunkte der alten API zu entfernen"
|
|
155
|
+
},
|
|
156
|
+
"level": "warn",
|
|
157
|
+
"buttons": [
|
|
158
|
+
"agree",
|
|
159
|
+
"cancel"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"news": {
|
|
164
|
+
"0.2.1": {
|
|
165
|
+
"en": "Fix refresh token persistence, remove dead VOC code, update dependencies",
|
|
166
|
+
"de": "Refresh-Token-Speicherung repariert, alten VOC-Code entfernt, Dependencies aktualisiert"
|
|
167
|
+
},
|
|
168
|
+
"0.2.0": {
|
|
169
|
+
"en": "Complete rewrite: OTP auth, Connected Vehicle API v2, Energy API v2, remote commands fixed, German localization",
|
|
170
|
+
"de": "Komplett-Umbau: OTP-Authentifizierung, Connected Vehicle API v2, Energy API v2, Fernbedienung repariert, deutsche Übersetzung"
|
|
171
|
+
},
|
|
172
|
+
"0.2.2": {
|
|
173
|
+
"en": "Fix ESLint, update devDependencies, clean AGENTS.md of credentials",
|
|
174
|
+
"de": "ESLint repariert, devDependencies aktualisiert, Zugangsdaten aus AGENTS.md entfernt"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
107
177
|
}
|
package/lib/extractKeys.js
CHANGED