homebridge-tauron-elicznik 0.0.3-beta.10 → 0.0.3-beta.12

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -168,8 +168,8 @@ class eLicznikDevice {
168
168
 
169
169
  // Add login details & meter ID here:
170
170
  const payload = {
171
- 'username': username,
172
- 'password': password,
171
+ 'username': this.user,
172
+ 'password': this.passwd,
173
173
  'service': 'https://elicznik.tauron-dystrybucja.pl'
174
174
  }
175
175
 
@@ -188,7 +188,7 @@ class eLicznikDevice {
188
188
  const chart_year = {
189
189
  "dane[chartYear]": 2020,
190
190
  "dane[paramType]": "year",
191
- "dane[smartNr]": meter_id,
191
+ "dane[smartNr]": this.meterId,
192
192
  "dane[checkOZE]": "on"
193
193
  };
194
194
  return axiosInstance.post(charturl, chart_year, { headers: headers });
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.10",
4
+ "version": "0.0.3-beta.12",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to read data from Tauron eLicznik.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",