iobroker.renault 0.0.8 → 0.0.9
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/io-package.json +4 -1
- package/main.js +4 -2
- package/package.json +73 -73
package/io-package.json
CHANGED
package/main.js
CHANGED
|
@@ -135,7 +135,7 @@ class Renault extends utils.Adapter {
|
|
|
135
135
|
"Content-Type": "application/json",
|
|
136
136
|
Accept: "*/*",
|
|
137
137
|
"User-Agent": "MYRenault/39 CFNetwork/1312 Darwin/21.0.0",
|
|
138
|
-
apiKey: "
|
|
138
|
+
apiKey: "VAX7XYKGfa92yMvXculCkEFyfZbuM7Ss",
|
|
139
139
|
"Accept-Language": "de-de",
|
|
140
140
|
"x-gigya-id_token": this.session.id_token,
|
|
141
141
|
},
|
|
@@ -154,6 +154,7 @@ class Renault extends utils.Adapter {
|
|
|
154
154
|
this.account = filteredAccounts[0];
|
|
155
155
|
})
|
|
156
156
|
.catch((error) => {
|
|
157
|
+
this.log.error("Error while getting account");
|
|
157
158
|
this.log.error(error);
|
|
158
159
|
if (error.response) {
|
|
159
160
|
this.log.error(JSON.stringify(error.response.data));
|
|
@@ -165,7 +166,7 @@ class Renault extends utils.Adapter {
|
|
|
165
166
|
method: "get",
|
|
166
167
|
url: "https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/" + this.account.accountId + "/vehicles?country=" + this.country + "&oms=false",
|
|
167
168
|
headers: {
|
|
168
|
-
apikey: "
|
|
169
|
+
apikey: "VAX7XYKGfa92yMvXculCkEFyfZbuM7Ss",
|
|
169
170
|
"content-type": "application/json",
|
|
170
171
|
accept: "*/*",
|
|
171
172
|
"user-agent": "MYRenault/39 CFNetwork/1312 Darwin/21.0.0",
|
|
@@ -228,6 +229,7 @@ class Renault extends utils.Adapter {
|
|
|
228
229
|
}
|
|
229
230
|
})
|
|
230
231
|
.catch((error) => {
|
|
232
|
+
this.log.error("Error while getting vehicle list");
|
|
231
233
|
this.log.error(error);
|
|
232
234
|
error.response && this.log.error(JSON.stringify(error.response.data));
|
|
233
235
|
});
|
package/package.json
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
2
|
+
"name": "iobroker.renault",
|
|
3
|
+
"version": "0.0.9",
|
|
4
|
+
"description": "Adapter for Renault and Renault",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "TA2k",
|
|
7
|
+
"email": "tombox2020@gmail.com"
|
|
8
|
+
},
|
|
9
|
+
"contributors": [
|
|
10
|
+
{
|
|
11
|
+
"name": "fungus75"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/TA2k/ioBroker.renault",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"renault",
|
|
18
|
+
"Renault",
|
|
19
|
+
"dacia",
|
|
20
|
+
"Dacia"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/TA2k/ioBroker.renault"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@iobroker/adapter-core": "^2.5.1",
|
|
28
|
+
"axios": "^0.24.0",
|
|
29
|
+
"json-bigint": "^1.0.0",
|
|
30
|
+
"qs": "^6.10.1"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@iobroker/testing": "^2.5.2",
|
|
34
|
+
"@types/chai": "^4.2.22",
|
|
35
|
+
"@types/chai-as-promised": "^7.1.4",
|
|
36
|
+
"@types/gulp": "^4.0.9",
|
|
37
|
+
"@types/mocha": "^9.0.0",
|
|
38
|
+
"@types/node": "^14.17.19",
|
|
39
|
+
"@types/proxyquire": "^1.3.28",
|
|
40
|
+
"@types/sinon": "^10.0.4",
|
|
41
|
+
"@types/sinon-chai": "^3.2.5",
|
|
42
|
+
"chai": "^4.3.4",
|
|
43
|
+
"chai-as-promised": "^7.1.1",
|
|
44
|
+
"eslint": "^7.32.0",
|
|
45
|
+
"gulp": "^4.0.2",
|
|
46
|
+
"mocha": "^9.1.2",
|
|
47
|
+
"proxyquire": "^2.1.3",
|
|
48
|
+
"sinon": "^11.1.2",
|
|
49
|
+
"sinon-chai": "^3.7.0",
|
|
50
|
+
"typescript": "~4.4.3"
|
|
51
|
+
},
|
|
52
|
+
"main": "main.js",
|
|
53
|
+
"files": [
|
|
54
|
+
"admin{,/!(src)/**}/!(tsconfig|tsconfig.*).json",
|
|
55
|
+
"admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}",
|
|
56
|
+
"lib/",
|
|
57
|
+
"www/",
|
|
58
|
+
"io-package.json",
|
|
59
|
+
"LICENSE",
|
|
60
|
+
"main.js"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"test:js": "mocha --config test/mocharc.custom.json \"{!(node_modules|test)/**/*.test.js,*.test.js,test/**/test!(PackageFiles|Startup).js}\"",
|
|
64
|
+
"test:package": "mocha test/package --exit",
|
|
65
|
+
"test:unit": "mocha test/unit --exit",
|
|
66
|
+
"test:integration": "mocha test/integration --exit",
|
|
67
|
+
"test": "npm run test:js && npm run test:package",
|
|
68
|
+
"check": "tsc --noEmit -p tsconfig.check.json",
|
|
69
|
+
"lint": "eslint"
|
|
70
|
+
},
|
|
71
|
+
"bugs": {
|
|
72
|
+
"url": "https://github.com/TA2k/ioBroker.renault/issues"
|
|
73
|
+
},
|
|
74
|
+
"readmeFilename": "README.md"
|
|
75
75
|
}
|