iobroker-ucl 1.4.13 → 1.4.15
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/camera.js +4 -4
- package/camera.ts +4 -4
- package/homematicClasses.js +6 -0
- package/homematicClasses.ts +8 -0
- package/package.json +1 -1
package/camera.js
CHANGED
|
@@ -18,7 +18,7 @@ function sendToPictureGartenToTelegram(adapter, caption) {
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
function sendToPictureSeiteToTelegram(adapter, caption) {
|
|
21
|
-
axios.get("
|
|
21
|
+
axios.get("http://192.168.178.38/snap.jpeg", { responseType: 'arraybuffer' }).then(function (response) {
|
|
22
22
|
var filename = "/opt/iobroker/telegramm.jpeg";
|
|
23
23
|
fs.writeFile(filename, response.data, 'binary', function (err) {
|
|
24
24
|
if (err == null) {
|
|
@@ -28,7 +28,7 @@ function sendToPictureSeiteToTelegram(adapter, caption) {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
function sendToPictureHaustuereToTelegram(adapter, caption) {
|
|
31
|
-
axios.get("
|
|
31
|
+
axios.get("http://192.168.178.173/snap.jpeg", { responseType: 'arraybuffer' }).then(function (response) {
|
|
32
32
|
var filename = "/opt/iobroker/telegramm.jpeg";
|
|
33
33
|
fs.writeFile(filename, response.data, 'binary', function (err) {
|
|
34
34
|
if (err == null) {
|
|
@@ -38,7 +38,7 @@ function sendToPictureHaustuereToTelegram(adapter, caption) {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
function sendToPictureDoorbellToTelegram(adapter, caption) {
|
|
41
|
-
axios.get("
|
|
41
|
+
axios.get("http://192.168.178.90/snap.jpeg", { responseType: 'arraybuffer' }).then(function (response) {
|
|
42
42
|
var filename = "/opt/iobroker/telegramm.jpeg";
|
|
43
43
|
fs.writeFile(filename, response.data, 'binary', function (err) {
|
|
44
44
|
if (err == null) {
|
|
@@ -48,7 +48,7 @@ function sendToPictureDoorbellToTelegram(adapter, caption) {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
function sendToPictureGarageToTelegram(adapter, caption) {
|
|
51
|
-
axios.get("
|
|
51
|
+
axios.get("http://192.168.178.166/snap.jpeg", { responseType: 'arraybuffer' }).then(function (response) {
|
|
52
52
|
var filename = "/opt/iobroker/telegramm.jpeg";
|
|
53
53
|
fs.writeFile(filename, response.data, 'binary', function (err) {
|
|
54
54
|
if (err == null) {
|
package/camera.ts
CHANGED
|
@@ -13,7 +13,7 @@ export function sendToPictureGartenToTelegram(adapter:any, caption:string) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export function sendToPictureSeiteToTelegram(adapter:any, caption:string) {
|
|
16
|
-
axios.get("
|
|
16
|
+
axios.get("http://192.168.178.38/snap.jpeg", { responseType: 'arraybuffer'}).then(function (response) {
|
|
17
17
|
let filename = "/opt/iobroker/telegramm.jpeg";
|
|
18
18
|
fs.writeFile(filename, response.data, 'binary', function(err) { // Hier wird der erzeugte Namen (picdate) mit dem Pfad zum Speichern übergeben!
|
|
19
19
|
if (err == null) {
|
|
@@ -24,7 +24,7 @@ export function sendToPictureSeiteToTelegram(adapter:any, caption:string) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export function sendToPictureHaustuereToTelegram(adapter:any, caption:string) {
|
|
27
|
-
axios.get("
|
|
27
|
+
axios.get("http://192.168.178.173/snap.jpeg", { responseType: 'arraybuffer'}).then(function (response) {
|
|
28
28
|
let filename = "/opt/iobroker/telegramm.jpeg";
|
|
29
29
|
fs.writeFile(filename, response.data, 'binary', function(err) { // Hier wird der erzeugte Namen (picdate) mit dem Pfad zum Speichern übergeben!
|
|
30
30
|
if (err == null) {
|
|
@@ -35,7 +35,7 @@ export function sendToPictureHaustuereToTelegram(adapter:any, caption:string) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export function sendToPictureDoorbellToTelegram(adapter:any, caption:string) {
|
|
38
|
-
axios.get("
|
|
38
|
+
axios.get("http://192.168.178.90/snap.jpeg", { responseType: 'arraybuffer'}).then(function (response) {
|
|
39
39
|
let filename = "/opt/iobroker/telegramm.jpeg";
|
|
40
40
|
fs.writeFile(filename, response.data, 'binary', function(err) { // Hier wird der erzeugte Namen (picdate) mit dem Pfad zum Speichern übergeben!
|
|
41
41
|
if (err == null) {
|
|
@@ -46,7 +46,7 @@ export function sendToPictureDoorbellToTelegram(adapter:any, caption:string) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export function sendToPictureGarageToTelegram(adapter:any, caption:string) {
|
|
49
|
-
axios.get("
|
|
49
|
+
axios.get("http://192.168.178.166/snap.jpeg", { responseType: 'arraybuffer'}).then(function (response) {
|
|
50
50
|
let filename = "/opt/iobroker/telegramm.jpeg";
|
|
51
51
|
fs.writeFile(filename, response.data, 'binary', function(err) { // Hier wird der erzeugte Namen (picdate) mit dem Pfad zum Speichern übergeben!
|
|
52
52
|
if (err == null) {
|
package/homematicClasses.js
CHANGED
|
@@ -228,6 +228,9 @@ var HomematicWandthermostat = /** @class */ (function (_super) {
|
|
|
228
228
|
return true;
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
+
HomematicWandthermostat.prototype.getOeffnungsgrad = function () {
|
|
232
|
+
return this.adapter.getState(this.baseState + ".1.LEVEL").val; // hm-rpc.0.000A1F29932CD5.1.LEVEL
|
|
233
|
+
};
|
|
231
234
|
return HomematicWandthermostat;
|
|
232
235
|
}(AbstractHomematic));
|
|
233
236
|
exports.HomematicWandthermostat = HomematicWandthermostat;
|
|
@@ -330,6 +333,9 @@ var HomematicHeizkoerper = /** @class */ (function (_super) {
|
|
|
330
333
|
return true;
|
|
331
334
|
}
|
|
332
335
|
};
|
|
336
|
+
HomematicHeizkoerper.prototype.getOeffnungsgrad = function () {
|
|
337
|
+
return this.adapter.getState(this.baseState + ".1.LEVEL").val; // hm-rpc.0.000A1F29932CD5.1.LEVEL
|
|
338
|
+
};
|
|
333
339
|
return HomematicHeizkoerper;
|
|
334
340
|
}(AbstractHomematic));
|
|
335
341
|
exports.HomematicHeizkoerper = HomematicHeizkoerper;
|
package/homematicClasses.ts
CHANGED
|
@@ -241,6 +241,10 @@ export class HomematicWandthermostat extends AbstractHomematic {
|
|
|
241
241
|
return true;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
+
|
|
245
|
+
public getOeffnungsgrad(): number { // Ventilöffnungsgrad
|
|
246
|
+
return this.adapter.getState(this.baseState + ".1.LEVEL").val; // hm-rpc.0.000A1F29932CD5.1.LEVEL
|
|
247
|
+
}
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
export class HomematicPraesenzmelder extends AbstractHomematic {
|
|
@@ -348,6 +352,10 @@ export class HomematicHeizkoerper extends AbstractHomematic {
|
|
|
348
352
|
return true;
|
|
349
353
|
}
|
|
350
354
|
}
|
|
355
|
+
|
|
356
|
+
public getOeffnungsgrad(): number { // Ventilöffnungsgrad
|
|
357
|
+
return this.adapter.getState(this.baseState + ".1.LEVEL").val; // hm-rpc.0.000A1F29932CD5.1.LEVEL
|
|
358
|
+
}
|
|
351
359
|
}
|
|
352
360
|
|
|
353
361
|
export class DimmerAlexaScheme {
|