iobroker-ucl 1.4.10 → 1.4.11
Sign up to get free protection for your applications and to get access to all the features.
- package/!!!_INSTRUCTIONS_!!!.ts +38 -3
- package/camera.js +5 -5
- package/camera.ts +5 -5
- package/package.json +1 -1
package/!!!_INSTRUCTIONS_!!!.ts
CHANGED
@@ -22,7 +22,42 @@ npm update iobroker-ucl (initial installieren mit: npm install
|
|
22
22
|
// 6.) In iobroker Weboberfläche die Javascript Instance restarten
|
23
23
|
|
24
24
|
|
25
|
-
// TODO: Auto TS:
|
26
|
-
https://www.youtube.com/watch?v=PDhQQCI4PJE
|
27
25
|
|
28
|
-
|
26
|
+
|
27
|
+
Neuer Rechner alles wieder einrichten:
|
28
|
+
|
29
|
+
Basierend auf:
|
30
|
+
https://www.youtube.com/watch?v=NqANV4wXhx4
|
31
|
+
|
32
|
+
1.) Node.js installieren auf Windows (Checkbox bei Installation "Chocolatey" aktivieren)
|
33
|
+
https://nodejs.org/en/download/
|
34
|
+
|
35
|
+
2.) IDE Visual Studio Code installieren
|
36
|
+
https://code.visualstudio.com/download
|
37
|
+
|
38
|
+
3.) Download Git für Windows:
|
39
|
+
https://git-scm.com/downloads/win
|
40
|
+
|
41
|
+
Auf Github gehen:
|
42
|
+
uwe72@gmx.de
|
43
|
+
|
44
|
+
URL vom Projekt kopieren:
|
45
|
+
https://github.com/uwe72/iobroker-ucl.git
|
46
|
+
|
47
|
+
Mit DOS-Konsole gehen auf c:/Projects
|
48
|
+
Dann Befehl
|
49
|
+
git clone https://github.com/uwe72/iobroker-ucl.git
|
50
|
+
|
51
|
+
Dann Visual Studio Code rein und links auf "Open Folder klicker"
|
52
|
+
|
53
|
+
Iin Git Bash:
|
54
|
+
$ git config --global user.name "John Doe"
|
55
|
+
$ git config --global user.email johndoe@example.com
|
56
|
+
|
57
|
+
npm adduser
|
58
|
+
|
59
|
+
User is: uwe72.iobroker
|
60
|
+
https://www.npmjs.com/settings/uwe72.iobroker/packages
|
61
|
+
|
62
|
+
|
63
|
+
npm install -g typescript
|
package/camera.js
CHANGED
@@ -8,7 +8,7 @@ exports.sendToPictureGarageToTelegram = sendToPictureGarageToTelegram;
|
|
8
8
|
var fs = require('fs');
|
9
9
|
var axios = require('axios');
|
10
10
|
function sendToPictureGartenToTelegram(adapter, caption) {
|
11
|
-
axios.get("
|
11
|
+
axios.get("https://192.168.178.188/snap.jpeg", { responseType: 'arraybuffer' }).then(function (response) {
|
12
12
|
var filename = "/opt/iobroker/telegramm.jpeg";
|
13
13
|
fs.writeFile(filename, response.data, 'binary', function (err) {
|
14
14
|
if (err == null) {
|
@@ -18,7 +18,7 @@ function sendToPictureGartenToTelegram(adapter, caption) {
|
|
18
18
|
});
|
19
19
|
}
|
20
20
|
function sendToPictureSeiteToTelegram(adapter, caption) {
|
21
|
-
axios.get("
|
21
|
+
axios.get("https://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("https://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("https://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("https://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
@@ -2,7 +2,7 @@ var fs = require('fs');
|
|
2
2
|
const axios = require('axios');
|
3
3
|
|
4
4
|
export function sendToPictureGartenToTelegram(adapter:any, caption:string) {
|
5
|
-
axios.get("
|
5
|
+
axios.get("https://192.168.178.188/snap.jpeg", { responseType: 'arraybuffer'}).then(function (response) {
|
6
6
|
let filename = "/opt/iobroker/telegramm.jpeg";
|
7
7
|
fs.writeFile(filename, response.data, 'binary', function(err) { // Hier wird der erzeugte Namen (picdate) mit dem Pfad zum Speichern übergeben!
|
8
8
|
if (err == null) {
|
@@ -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("https://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("https://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("https://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("https://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) {
|