homebridge-tauron-elicznik 0.0.2-beta70 → 0.0.2-beta74
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/index.js +1 -6
- package/package.json +1 -1
- package/src/tauronAuth.js +2 -5
package/index.js
CHANGED
@@ -135,7 +135,6 @@ class eLicznikDevice {
|
|
135
135
|
this.energyExport = 0;
|
136
136
|
|
137
137
|
const data = {
|
138
|
-
log: this.log,
|
139
138
|
username: this.user,
|
140
139
|
password: this.passwd,
|
141
140
|
service: SERVICE_URL
|
@@ -194,11 +193,7 @@ class eLicznikDevice {
|
|
194
193
|
try {
|
195
194
|
const url = CHARTS_URL + '?dane[chartYear]=2021&dane[paramType]=year&dane[checkOZE]=on&dane[smartNr]=' + this.meterId;
|
196
195
|
|
197
|
-
const
|
198
|
-
method: 'POST',
|
199
|
-
url: url
|
200
|
-
};
|
201
|
-
const response = await this.tauronAuth.request(options);
|
196
|
+
const response = await this.tauronAuth.request(url);
|
202
197
|
|
203
198
|
this.log('11112222', response.data);
|
204
199
|
const energyImport = 0;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"displayName": "Tauron eLicznik",
|
3
3
|
"name": "homebridge-tauron-elicznik",
|
4
|
-
"version": "0.0.2-
|
4
|
+
"version": "0.0.2-beta74",
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to read data from Tauron eLicznik.",
|
6
6
|
"license": "MIT",
|
7
7
|
"author": "grzegorz914",
|
package/src/tauronAuth.js
CHANGED
@@ -8,7 +8,6 @@ class axiosTauronAuth {
|
|
8
8
|
constructor({
|
9
9
|
data
|
10
10
|
}) {
|
11
|
-
this.log = data.log;
|
12
11
|
this.username = data.username;
|
13
12
|
this.password = data.password;
|
14
13
|
}
|
@@ -22,12 +21,10 @@ class axiosTauronAuth {
|
|
22
21
|
};
|
23
22
|
|
24
23
|
const options = {
|
25
|
-
baseURL: LOGIN_URL,
|
26
24
|
data: data
|
27
25
|
};
|
28
|
-
const response = await axios.post(options);
|
29
|
-
|
30
|
-
returnUrl.url = response.data;
|
26
|
+
const response = await axios.post(LOGIN_URL, options);
|
27
|
+
console.log('aaaaaaaaa', response.data);
|
31
28
|
|
32
29
|
return response.data;
|
33
30
|
} catch (err) {
|