homebridge-tauron-elicznik 0.0.2-beta46 → 0.0.2-beta47
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 +7 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -143,6 +143,7 @@ class eLicznikDevice {
|
|
143
143
|
|
144
144
|
this.axiosInstance = axios.create({
|
145
145
|
method: 'POST',
|
146
|
+
baseURL: LOGIN_URL,
|
146
147
|
data: data,
|
147
148
|
headers: headers,
|
148
149
|
httpsAgent: new https.Agent({
|
@@ -194,9 +195,13 @@ class eLicznikDevice {
|
|
194
195
|
|
195
196
|
async updateDeviceState() {
|
196
197
|
this.log.debug('Device: %s %s, requesting Device state.', this.meterId, this.name);
|
198
|
+
const url = CHARTS_URL + '?dane[chartYear]=2021&dane[paramType]=year&dane[checkOZE]=on&dane[smartNr]=' + this.meterId;
|
197
199
|
try {
|
198
|
-
|
199
|
-
|
200
|
+
const options = {
|
201
|
+
method: 'POST',
|
202
|
+
url: url
|
203
|
+
};
|
204
|
+
const response = await this.axiosInstance(options);
|
200
205
|
|
201
206
|
this.log(response)
|
202
207
|
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-beta47",
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to read data from Tauron eLicznik.",
|
6
6
|
"license": "MIT",
|
7
7
|
"author": "grzegorz914",
|