homebridge-tauron-elicznik 0.0.3-beta.14 → 0.0.3-beta.15
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -138,6 +138,7 @@ class eLicznikDevice {
|
|
138
138
|
}
|
139
139
|
|
140
140
|
this.axiosInstance = axios.create({
|
141
|
+
method: 'POST',
|
141
142
|
httpsAgent: new https.Agent({
|
142
143
|
ciphers: 'DEFAULT@SECLEVEL=1'
|
143
144
|
})
|
@@ -187,8 +188,9 @@ class eLicznikDevice {
|
|
187
188
|
"dane[checkOZE]": "on"
|
188
189
|
};
|
189
190
|
|
190
|
-
const response = await this.axiosInstance
|
191
|
-
|
191
|
+
const response = await this.axiosInstance(url, payload, { headers: headers });
|
192
|
+
this.log('Device: %s, update Device state: %s', this.name, response.data);
|
193
|
+
const response1 = await this.axiosInstance(charturl, chart_year, { headers: headers });
|
192
194
|
this.log('Device: %s, update Device state: %s', this.name, response1.data);
|
193
195
|
|
194
196
|
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.3-beta.
|
4
|
+
"version": "0.0.3-beta.15",
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to read data from Tauron eLicznik.",
|
6
6
|
"license": "MIT",
|
7
7
|
"author": "grzegorz914",
|