homebridge-tauron-elicznik 0.0.3-beta.8 → 0.0.3-beta.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -167,20 +167,16 @@ class eLicznikDevice {
167
167
 
168
168
  try {
169
169
  // Add login details & meter ID here:
170
- const username = this.user;
171
- const password = this.passwd;
172
- const meterId = this.meterId;
173
-
174
170
  const payload = {
175
- username,
176
- password,
171
+ username: this.user,
172
+ password: this.passwd,
177
173
  service: 'https://elicznik.tauron-dystrybucja.pl'
178
174
  };
179
175
 
180
176
  const chartYear = {
181
177
  'dane[chartYear]': 2021,
182
178
  'dane[paramType]': 'year',
183
- 'dane[smartNr]': meterId,
179
+ 'dane[smartNr]': this.meterId,
184
180
  'dane[checkOZE]': 'on'
185
181
  };
186
182
 
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.3-beta.8",
4
+ "version": "0.0.3-beta.9",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to read data from Tauron eLicznik.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",