iobroker-ucl 1.4.13 → 1.4.14
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/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) {
|