Snapshot von Webcam an Telegram senden

Einrichtung, Anschluss und Programmierung der HomeMatic CCU

Moderator: Co-Administratoren

alchy
Beiträge: 10754
Registriert: 24.02.2011, 01:34
System: CCU
Hat sich bedankt: 65 Mal
Danksagung erhalten: 673 Mal

Re: Snapshot von Webcam an Telegram senden

Beitrag von alchy » 07.09.2017, 20:25

Ich würde mich auf eine Version festlegen. :shock:
Du verwendest http://user:pass und hängst hinten nochmal die Daten an. Hinten dran sollte eigentlich immer funzen.

Script 1 Holt das Bild und speichert es

Code: Alles auswählen

! +++++ Klingelbild von Haustür holen +++++
string url = "http://192.168.178.88:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=USERNAME&pwd=PASSWORT";
dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:1.CMD_EXEC").State("wget -q  --auth-no-challenge -O /tmp/snapshot.jpg '"#url#"'");
Script 2 - verzögert um x Sekunden ausführen - nimmt das Bild und verschickt es.

Code: Alles auswählen

! Bild  SCHICKEN EINZELN ABSENDEN MIT VERZÖGERUNG NACH SPEICHERN 
string chatid = "+++++++++++++++"; 
string botAPI = "+++++++++++++++++++"; 
string caption = "Es hat geklingelt";
dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:1.CMD_EXEC").State("curl -s -k https://api.telegram.org/bot"#botAPI#"/sendPhoto -F chat_id="#chatid#" -F photo='@/tmp/snapshot.jpg' -F caption='"#caption.ToUTF8()#"'");
Auch hier gilt, funktioniert Script 2 auf einer CCU2 nicht, dann den Pfad anpassen:
curl
ersetzen durch:
LD_LIBRARY_PATH=/usr/lib /usr/bin/curl

oder besser, richtig reparieren.

Alchy
Zuletzt geändert von alchy am 02.03.2020, 20:05, insgesamt 1-mal geändert.
Grund: Erklärung zur CCU2 hinzugefügt

Blacklist................... almost full
Ignoranz ist die Summe aller Maßnahmen die man ergreift, um bestehende Tatsachen nicht sehen zu müssen.

© Sandra Pulsfort (*1974)

Lies bitte die Logik von WebUI Programmen und die Tipps und Tricks für Anfänger.

Wichtig auch CUxD ersetzt System.exec. Die HM Script Doku (Downloadart Skripte) hilft auch weiter.
Zum Testen von Scripten den >> HomeMatic Script Executor << von Anli benutzen.

FrankOL
Beiträge: 6
Registriert: 03.03.2016, 11:46

Re: Snapshot von Webcam an Telegram senden

Beitrag von FrankOL » 07.09.2017, 22:15

Danke für Deinen Vorschlag, aber die URL scheint mir für eine Foscam zu sein, ich habe aber eine Edimax-Webcam. Ein Abruf damit ist auch nicht im Webbrowser möglich.
Für Edimax funktioniert:
http://192.168.178.88/snapshot.jpg?user ... =[PASSWORD]
oder auch
http://192.168.178.88/snapshot.jpg?acco ... =[PASSWORD]

Allerdings leider nur im Webbrowser, im Homematic-Script nicht.
Auch nicht wenn ich mich per SSU-Verbinde und wget direkt ausführe:

wget -q --auth-no-challenge -O /tmp/snapshot.jpg 'http://192.168.178.88/snapshot.jpg?acco ... ssword=yyy'

Die Datei snapshot.jpg bleibt anschliessend 0 Bytes gross.

FrankOL
Beiträge: 6
Registriert: 03.03.2016, 11:46

Re: Snapshot von Webcam an Telegram senden

Beitrag von FrankOL » 07.09.2017, 22:27

Ich seh gerade, dass ich wget gesprächiger machen kann wenn ich -q weglasse. :shock:

--2017-09-07 22:21:28-- http://192.168.178.xx/snapshot.jpg?acco ... ssword=yyy
Connecting to 192.168.178.xx:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.

Die URL muss aber stimmen, wie gesagt, ich gebe die im Webbrowser ein und bekomme das Bild.
Ich bin am Ende könnte man sagen. :roll:

FrankOL
Beiträge: 6
Registriert: 03.03.2016, 11:46

Re: Snapshot von Webcam an Telegram senden

Beitrag von FrankOL » 07.09.2017, 22:40

...doch nicht - ich habs jetzt, so funktionierts mit der Edimax 3005 WN:

Code: Alles auswählen

dom.GetObject("CUxD.CUX2801001:1.CMD_EXEC").State("wget -q --auth-no-challenge -O /tmp/snapshot.jpg 'http://xxx:yyy@192.168.178.xx/snapshot.jpg?user=xxx&pwd=yyy'");
Danke für die Geduld. :mrgreen:

Maks
Beiträge: 17
Registriert: 16.08.2017, 10:00

Re: Snapshot von Webcam an Telegram senden

Beitrag von Maks » 20.10.2017, 17:07

Das habe ich auch mal versucht jetzt - nur leider bekomme ich da das Foto nicht mit. Im Browser funktioniert die URL, beim Mailversand auch, aber Telegram schickt nichts.
Ändere ich den Telegramlink auf "reinen Text" funktioniert es, laut der Anleitung aber nicht.

Sieht bei mir so aus:

Code: Alles auswählen

dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:1.CMD_EXEC").State("extra/curl -s -k https://api.telegram.org/bot111111111/sendPhoto -F chat_id=4444444 -F photo='@/tmp/snapshot.jpg' -F caption='Es hat geklingelt!'");
Hoffe da kann jemand helfen. Den LInk zum Foto habe ich auch schon mal umgestrickt, geht bei mir immer noch im Browser, weiß aber nicht wo es jetzt hakt :(

Welche Infos würdet ihr brauchen zum analysieren helfen!? Danke schon mal!
Zuletzt geändert von alchy am 21.10.2017, 00:05, insgesamt 1-mal geändert.
Grund: Code in Codetags posten

alchy
Beiträge: 10754
Registriert: 24.02.2011, 01:34
System: CCU
Hat sich bedankt: 65 Mal
Danksagung erhalten: 673 Mal

Re: Snapshot von Webcam an Telegram senden

Beitrag von alchy » 20.10.2017, 23:59

Du hast das von mir 3 Post über deinem gelesen?

Alchy

Blacklist................... almost full
Ignoranz ist die Summe aller Maßnahmen die man ergreift, um bestehende Tatsachen nicht sehen zu müssen.

© Sandra Pulsfort (*1974)

Lies bitte die Logik von WebUI Programmen und die Tipps und Tricks für Anfänger.

Wichtig auch CUxD ersetzt System.exec. Die HM Script Doku (Downloadart Skripte) hilft auch weiter.
Zum Testen von Scripten den >> HomeMatic Script Executor << von Anli benutzen.

Maks
Beiträge: 17
Registriert: 16.08.2017, 10:00

Re: Snapshot von Webcam an Telegram senden

Beitrag von Maks » 21.10.2017, 14:41

Ja, habe ich. Das gesamte sieht bei mir so aus (siehe Anlage)

Das erste Script:

Code: Alles auswählen

dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:1.CMD_EXEC").State("wget -q  --auth-no-challenge -O /tmp/snapshot.jpg 'http://192.168.10.xx:80/tmpfs/auto.jpg?usr=admin&pwd=12345'");
Das zweite:

Code: Alles auswählen

dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:1.CMD_EXEC").State("extra/curl -s -k https://api.telegram.org/bot452xxxxxxx:AAEKMvG-74vDMu3UGqFzCV91rEm4Zazanp4/sendPhoto -F chat_id=1111111 -F photo='@/tmp/snapshot.jpg' -F caption='Es hat geklingelt - mit Foto!'");
Zu Testzwecken habe ich dann noch dieses Script mit drin - und das funktioniert auch:

Code: Alles auswählen

string stderr;
string stdout;
string url="\"https://api.telegram.org/bot452xxxxxxx:AAEKMvG-74vDMu3UGqFzCV91rEm4Zazanp4/sendMessage?chat_id=111111&text=Es hat gekllingelt!\"";
system.Exec("wget --no-check-certificate -q -O - "#url, &stdout, &stderr);
Wenn ich die URL für den Snapshot im Browser aufrufe geht es auch. Fehlt mir vielleicht sonst noch irgendwas?

Danke schon mal!

PS) Im letzten Script verschicke ich eine Mail mit nem Screenshot der Kamera, das funktioniert auch... aber dauert mir zu lange. Über Telegram wäre schon cooler :)
Dateianhänge
klingel1.JPG

alchy
Beiträge: 10754
Registriert: 24.02.2011, 01:34
System: CCU
Hat sich bedankt: 65 Mal
Danksagung erhalten: 673 Mal

Re: Snapshot von Webcam an Telegram senden

Beitrag von alchy » 21.10.2017, 23:19

Maks hat geschrieben:, habe ich.
Was? Und trotzdem verwendest du nicht die Scripte von mir, wenn ich dich schon darauf hinweise.
Du brauchst keine Hilfe?



Grundvoraussetzung "Installation CUxD inklusive funktionierenden CuxD.exec ist erfüllt :?: :?: (siehe Signatur)

ich habe deine Scripte mal bearbeitet, bitte lediglich die Zugangsdaten ändern und nicht drin rum ändern :

Unter Script testen oder im Executer ausführen Script 1:

Code: Alles auswählen

(dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:1.CMD_EXEC")).State("wget --auth-no-challenge -q -O '/tmp/snapshot.jpg' 'http://192.168.10.xx:80/tmpfs/auto.jpg?usr=admin&pwd=12345'");
Paar Sekunden später ebenfalls unter Script testen oder Executer ausführen, Script 2:

Code: Alles auswählen

(dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:1.CMD_EXEC")).State("curl -s -k 'https://api.telegram.org/bot452xxxxxxx:AAEKMvG-74vDMu3UGqFzCV91rEm4Zazanp4/sendPhoto' -F chat_id=1111111 -F photo='@/tmp/snapshot.jpg' -F caption='Es hat geklingelt - mit Foto'");
funktioniert nicht?

IMMER unaufgefordert >> Fehlerprotokoll << posten vom Zeitpunkt der Ausführung der Scripte +/- paar Sekunden


Ablauf Fehlersuche deinerseits:
  • SSH auf der CCU2 einschalten und ein Passwort vergeben wie >> H I E R << auf dem Bild angezeigt.
  • Für Windowsuser ein SFTP fähiges Client Programm herunterladen z.B. >>Filezilla<<
  • Script 1 ausführen
  • Filezilla starten und eine Verbindung unter Verwendung der IP der CCU2, des User roots und des oben eingerichteten Passworts sowie
  • wichtig dabei als Protokoll sFTP verwenden.
  • gibt es die Datei /tmp/snapshot.jpg :?: :?: hat diese ein paar kb Größe oder 0kb :?: :?: stimmt der Zeitstempel der Datei zur Ausführung des Scriptes :?: :?:
Alchy
Zuletzt geändert von alchy am 23.12.2019, 22:10, insgesamt 1-mal geändert.
Grund: curl Aufruf angepasst

Blacklist................... almost full
Ignoranz ist die Summe aller Maßnahmen die man ergreift, um bestehende Tatsachen nicht sehen zu müssen.

© Sandra Pulsfort (*1974)

Lies bitte die Logik von WebUI Programmen und die Tipps und Tricks für Anfänger.

Wichtig auch CUxD ersetzt System.exec. Die HM Script Doku (Downloadart Skripte) hilft auch weiter.
Zum Testen von Scripten den >> HomeMatic Script Executor << von Anli benutzen.

Maks
Beiträge: 17
Registriert: 16.08.2017, 10:00

Re: Snapshot von Webcam an Telegram senden

Beitrag von Maks » 23.10.2017, 08:08

Sorry, ich bin echt noch ziemlich neu in dem Gebiet, habe bitte ein bisschen Nachsicht. Nachdem Deine Scripte von oben nicht funktioniert haben, wollte ich den Weg gehen die Variablen fest einzutragen. Dabei habe ich mit dem Windows Editor gearbeitet der wohl zusätzlich beim copy and paste noch Fehler einbaut.

Jetzt habe ich Deine Scripte (vielen Dank!!!) 1:1 übernommen und nur von Hand meine Daten eingetragen.

Der Hinweis mit CuxD - naja... das hatte ich vorher wohl komplett überlesen und mich nur gewundert, warum ich die Mails nicht über diesen Befehl senden konnte:

dom.GetObject("CUxD.CUX2801001:1.CMD_EXEC").State("/etc/config/addons/email/email ID");

Naja... doof von mir,... aber CuxD ist nun installiert und der Mailversand klappt jetzt sogar über diesen Befehl.

Leider kommt nach wie vor kein Telegram an.

HIer aber die Logs - aus denen ich so gar nicht schlau werde...

Code: Alles auswählen

Oct 23 07:45:09 homematic-ccu2 syslog.info syslogd started: BusyBox v1.20.2
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: klogd started: BusyBox v1.20.2 (2017-10-11 14:29:35 CEST)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] Booting Linux on physical CPU 0
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] Initializing cgroup subsys cpu
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000] Linux version 3.4.11.ccu2 (hudson@entw-build-10) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #1 PREEMPT Wed Oct 11 14:58:54 CEST 2017
Oct 23 07:45:09 homematic-ccu2 user.warn kernel: [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Oct 23 07:45:09 homematic-ccu2 user.warn kernel: [    0.000000] CPU: VIVT data cache, VIVT instruction cache
Oct 23 07:45:09 homematic-ccu2 user.warn kernel: [    0.000000] Machine: eQ-3 HomeMatic CCU2
Oct 23 07:45:09 homematic-ccu2 user.warn kernel: [    0.000000] Memory policy: ECC disabled, Data cache writeback
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    0.000000] On node 0 totalpages: 65536
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    0.000000] free_area_init_node: node 0, pgdat c03c42ec, node_mem_map c03f8000
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    0.000000]   Normal zone: 512 pages used for memmap
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    0.000000]   Normal zone: 65024 pages, LIFO batch:15
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    0.000000] pcpu-alloc: [0] 0 
Oct 23 07:45:09 homematic-ccu2 user.warn kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000] Kernel command line: eQ3Mode=production console=ttyAMA0,115200 ubi.mtd=7 ubi.mtd=6 ro ip=none root=ubi0:root ubi.mtd=7 rootfstype=ubifs noinitrd mtdparts=gpmi-nand:1024k(fcb)ro,1024k(bbt),1024k(bootenv),1536k(boo
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] allocated 524288 bytes of page_cgroup
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] Memory: 256MB = 256MB total
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000] Memory: 255276k/255276k available, 6868k reserved, 0K highmem
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000] Virtual kernel memory layout:
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000]       .text : 0xc0008000 - 0xc037d000   (3540 kB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000]       .init : 0xc037d000 - 0xc039a000   ( 116 kB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000]       .data : 0xc039a000 - 0xc03c4a20   ( 171 kB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.000000]        .bss : 0xc03c4a44 - 0xc03f77dc   ( 204 kB)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] NR_IRQS:304
Oct 23 07:45:09 homematic-ccu2 user.err kernel: [    0.000000] saif0_clk_set_rate: clock is gated
Oct 23 07:45:09 homematic-ccu2 user.err kernel: [    0.000000] saif1_clk_set_rate: clock is gated
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] Console: colour dummy device 80x30
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.000000] Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.080000] pid_max: default: 32768 minimum: 301
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.080000] Mount-cache hash table entries: 512
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.080000] Initializing cgroup subsys cpuacct
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.080000] Initializing cgroup subsys memory
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.080000] Initializing cgroup subsys devices
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.080000] Initializing cgroup subsys freezer
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.080000] CPU: Testing write buffer coherency: ok
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.080000] Setting up static identity map for 0x402b1198 - 0x402b11f0
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.080000] devtmpfs: initialized
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.090000] dummy: 
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.090000] NET: Registered protocol family 16
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.090000] gpiochip_add: registered GPIOs 0 to 31 on device: gpio-mxs.0
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.090000] gpiochip_add: registered GPIOs 32 to 63 on device: gpio-mxs.1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.090000] gpiochip_add: registered GPIOs 64 to 95 on device: gpio-mxs.2
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.090000] gpiochip_add: registered GPIOs 96 to 127 on device: gpio-mxs.3
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.090000] gpiochip_add: registered GPIOs 128 to 159 on device: gpio-mxs.4
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.100000] Serial: AMBA PL011 UART driver
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.100000] duart: ttyAMA0 at MMIO 0x80074000 (irq = 47) is a PL011 rev2
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.110000] console [ttyAMA0] enabled
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.110000] mxs-usbphy mxs-usbphy.0: initialized usb phy
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.120000] mxs-usbphy mxs-usbphy.1: initialized usb phy
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.130000] bio: create slab <bio-0> at 0
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.140000] mxs-dma mxs-dma-apbh: initialized
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.150000] mxs-dma mxs-dma-apbx: initialized
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.150000] REG-3V3: 3300 mV normal 
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.160000] REG-1V8: 1800 mV normal 
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.160000] USB 5V: 5000 mV normal 
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.160000] VDDIO-SD: 3300 mV normal 
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.170000] Switching to clocksource mxs_timer
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.210000] NET: Registered protocol family 2
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.210000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.220000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.230000] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.230000] TCP: Hash tables configured (established 8192 bind 8192)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.240000] TCP: reno registered
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.240000] UDP hash table entries: 256 (order: 0, 4096 bytes)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.250000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.260000] NET: Registered protocol family 1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.260000] RPC: Registered named UNIX socket transport module.
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.270000] RPC: Registered udp transport module.
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.270000] RPC: Registered tcp transport module.
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.280000] RPC: Registered tcp NFSv4.1 backchannel transport module.
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.290000] audit: initializing netlink socket (disabled)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.290000] type=2000 audit(0.290:1): initialized
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.500000] fuse init (API version 7.18)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.510000] msgmni has been set to 498
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.510000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.520000] io scheduler noop registered (default)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.530000] uart-pl011 duart: no DMA platform data
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.530000] mxs-auart.1: ttyAPP1 at MMIO 0x8006c000 (irq = 113) is a mxs-auart.1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.540000] mxs-auart mxs-auart.1: Found APPUART 3.1.0
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.550000] ONFI param page 0 valid
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.550000] ONFI flash detected
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.560000] NAND device: Manufacturer ID: 0x01, Chip ID: 0xda (AMD S34ML02G1)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    0.560000] Scanning device for bad blocks
Oct 23 07:45:09 homematic-ccu2 user.warn kernel: [    0.780000] Bad eraseblock 1084 at 0x000008780000
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.980000] 8 cmdlinepart partitions found on MTD device gpmi-nand
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.980000] Creating 8 MTD partitions on "gpmi-nand":
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    0.990000] 0x000000000000-0x000000100000 : "fcb"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.000000] 0x000000100000-0x000000200000 : "bbt"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.000000] 0x000000200000-0x000000300000 : "bootenv"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.010000] 0x000000300000-0x000000480000 : "bootstream0"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.020000] 0x000000480000-0x000000a80000 : "bootstream1"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.030000] 0x000000a80000-0x000000e80000 : "kernel"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.040000] 0x000000e80000-0x000003e80000 : "user"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.050000] 0x000003e80000-0x000010000000 : "root"
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    1.060000] GPMI NAND driver registered. (IMX)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.060000] UBI: attaching mtd7 to ubi0
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.060000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.070000] UBI: logical eraseblock size:    126976 bytes
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.080000] UBI: smallest flash I/O unit:    2048
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.080000] UBI: VID header offset:          2048 (aligned 2048)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    1.090000] UBI: data offset:                4096
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.780000] UBI: max. sequence number:       4
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.810000] UBI: attached mtd7 to ubi0
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.810000] UBI: MTD device name:            "root"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.820000] UBI: MTD device size:            193 MiB
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.820000] UBI: number of good PEBs:        1547
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.830000] UBI: number of bad PEBs:         1
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.830000] UBI: number of corrupted PEBs:   0
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.840000] UBI: max. allowed volumes:       128
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.840000] UBI: wear-leveling threshold:    4096
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.850000] UBI: number of internal volumes: 1
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.850000] UBI: number of user volumes:     1
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.860000] UBI: available PEBs:             0
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.860000] UBI: total number of reserved PEBs: 1547
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.860000] UBI: number of PEBs reserved for bad PEB handling: 15
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.870000] UBI: max/mean erase counter: 5/2
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.880000] UBI: image sequence number:  837984687
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.880000] UBI: background thread "ubi_bgt0d" started, PID 32
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.890000] UBI: attaching mtd6 to ubi1
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.890000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.900000] UBI: logical eraseblock size:    126976 bytes
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.900000] UBI: smallest flash I/O unit:    2048
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.910000] UBI: VID header offset:          2048 (aligned 2048)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    2.910000] UBI: data offset:                4096
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.340000] UBI: max. sequence number:       1089
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.360000] UBI: attached mtd6 to ubi1
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.360000] UBI: MTD device name:            "user"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.370000] UBI: MTD device size:            48 MiB
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.370000] UBI: number of good PEBs:        384
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.380000] UBI: number of bad PEBs:         0
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.380000] UBI: number of corrupted PEBs:   0
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.390000] UBI: max. allowed volumes:       128
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.390000] UBI: wear-leveling threshold:    4096
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.400000] UBI: number of internal volumes: 1
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.400000] UBI: number of user volumes:     1
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.400000] UBI: available PEBs:             0
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.410000] UBI: total number of reserved PEBs: 384
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.410000] UBI: number of PEBs reserved for bad PEB handling: 3
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.420000] UBI: max/mean erase counter: 5/3
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.420000] UBI: image sequence number:  1076046500
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.430000] UBI: background thread "ubi_bgt1d" started, PID 33
Oct 23 07:45:09 homematic-ccu2 user.err kernel: [    3.430000] UBI error: ubi_init: cannot attach mtd7
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.470000] fec_enet_mii_bus: probed
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.480000] rtc-rs5c372 0-0032: rs5c372a found, 24hr, driver version 0.6
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.490000] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.500000] stmp3xxx-rtc stmp3xxx-rtc: rtc core: registered stmp3xxx-rtc as rtc1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.510000] watchdog watchdog0: watchdog initialized, 115 seconds remaining
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.520000] cpuidle: using governor ladder
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.520000] cpuidle: using governor menu
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    3.520000] Registered led device: power
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    3.530000] Registered led device: internet
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    3.530000] Registered led device: info
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.530000] NET: Registered protocol family 17
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.530000] registered taskstats version 1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.540000] rtc-rs5c372 0-0032: setting system clock to 2017-10-23 05:45:06 UTC (1508737506)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.690000] UBIFS: mounted UBI device 0, volume 0, name "root"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.700000] UBIFS: mounted read-only
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.700000] UBIFS: file system size:   192622592 bytes (188108 KiB, 183 MiB, 1517 LEBs)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.710000] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.720000] UBIFS: media format:       w4/r0 (latest is w4/r0)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.720000] UBIFS: default compressor: lzo
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    3.730000] UBIFS: reserved for root:  0 bytes (0 KiB)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.740000] VFS: Mounted root (ubifs filesystem) readonly on device 0:12.
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.750000] devtmpfs: mounted
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    3.750000] Freeing init memory: 116K
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    4.310000] UBIFS: mounted UBI device 1, volume 0, name "user"
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    4.310000] UBIFS: file system size:   46473216 bytes (45384 KiB, 44 MiB, 366 LEBs)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    4.320000] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    4.330000] UBIFS: media format:       w4/r0 (latest is w4/r0)
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    4.330000] UBIFS: default compressor: lzo
Oct 23 07:45:09 homematic-ccu2 user.notice kernel: [    4.340000] UBIFS: reserved for root:  0 bytes (0 KiB)
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.010000] eq3spi eq3spi.0: master is unqueued, this is deprecated
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.090000] input: gpio-keys as /devices/platform/gpio-keys/input/input0
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.140000] Freescale High-Speed USB SOC Device Controller driver (Apr 20, 2007)
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    5.150000] mxs-usbphy mxs-usbphy.0: enabling gadget mode
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.220000] usb0: MAC 00:1a:22:00:05:87
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.230000] usb0: HOST MAC 00:1a:22:00:05:86
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.240000] g_multi gadget: Mass Storage Function, version: 2009/09/11
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.240000] g_multi gadget: Number of LUNs=1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.250000]  lun0: LUN: read only CD-ROM file: /usr/share/eq3/install.iso
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.250000] g_multi gadget: Multifunction Composite Gadget
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.260000] g_multi gadget: g_multi ready
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.260000] fsl-usb2-udc: bind to driver g_multi
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.300000] tun: Universal TUN/TAP device driver, 1.6
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.300000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.380000] usbcore: registered new interface driver usbfs
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.390000] usbcore: registered new interface driver hub
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.390000] usbcore: registered new device driver usb
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.420000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.430000] mxs-ehci mxs-ehci.1: initializing i.MX USB Controller
Oct 23 07:45:09 homematic-ccu2 user.debug kernel: [    5.440000] mxs-usbphy mxs-usbphy.1: enabling host mode
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.460000] mxs-ehci mxs-ehci.1: using regulator to control VBUS
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.460000] mxs-ehci mxs-ehci.1: Freescale On-Chip EHCI Host Controller
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.470000] mxs-ehci mxs-ehci.1: new USB bus registered, assigned bus number 1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.510000] mxs-ehci mxs-ehci.1: irq 92, io mem 0x80090000
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.530000] mxs-ehci mxs-ehci.1: USB 2.0 started, EHCI 1.00
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.530000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.540000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.550000] usb usb1: Product: Freescale On-Chip EHCI Host Controller
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.550000] usb usb1: Manufacturer: Linux 3.4.11.ccu2 ehci_hcd
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.560000] usb usb1: SerialNumber: mxs-ehci.1
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.560000] hub 1-0:1.0: USB hub found
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.570000] hub 1-0:1.0: 1 port detected
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    5.600000] mxs-raw-auart mxs-raw-auart.0: Found raw APPUART 3.1.0
Oct 23 07:45:09 homematic-ccu2 user.info kernel: [    6.130000] ip_tables: (C) 2000-2006 Netfilter Core Team
Oct 23 07:45:09 homematic-ccu2 user.err kernel: 0>[    6.890000] udevd[118]: starting version 182
Oct 23 05:45:09 homematic-ccu2 daemon.err udevd[118]: specified group 'dialout' unknown
Oct 23 05:45:09 homematic-ccu2 daemon.err udevd[118]: specified group 'kmem' unknown
Oct 23 05:45:09 homematic-ccu2 daemon.err udevd[118]: specified group 'video' unknown
Oct 23 05:45:09 homematic-ccu2 daemon.err udevd[118]: specified group 'lp' unknown
Oct 23 05:45:10 homematic-ccu2 daemon.err udevd[118]: specified group 'floppy' unknown
Oct 23 05:45:10 homematic-ccu2 daemon.err udevd[118]: specified group 'cdrom' unknown
Oct 23 05:45:10 homematic-ccu2 daemon.err udevd[118]: specified group 'tape' unknown
Oct 23 07:45:11 homematic-ccu2 user.info kernel: [    8.190000] mxs-mmc mxs-mmc.0: using regulator to control VDDIO-SD
Oct 23 07:45:11 homematic-ccu2 user.info kernel: [    8.260000] mxs-mmc mxs-mmc.0: initialized
Oct 23 07:45:11 homematic-ccu2 daemon.info udhcpd[151]: udhcpd (v1.20.2) started
Oct 23 07:45:11 homematic-ccu2 daemon.err udhcpd[151]: can't open '/var/lib/misc/udhcpd.leases': No such file or directory
Oct 23 05:45:12 homematic-ccu2 daemon.info ifplugd(eth0)[200]: ifplugd 0.28 initializing.
Oct 23 07:45:12 homematic-ccu2 user.info kernel: [    9.790000] eth0: Freescale FEC PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=imx28-fec-1:00, irq=185)
Oct 23 05:45:12 homematic-ccu2 daemon.info ifplugd(eth0)[200]: Using interface eth0/00:1A:22:0A:B7:7A with driver <fec> (version: Revision: 1.0)
Oct 23 05:45:12 homematic-ccu2 daemon.info ifplugd(eth0)[200]: Using detection mode: SIOCETHTOOL
Oct 23 05:45:12 homematic-ccu2 daemon.info ifplugd(eth0)[200]: Initialization complete, link beat not detected.
Oct 23 07:45:13 homematic-ccu2 user.debug setclock: Try to get time from ntp.homematic.com
Oct 23 07:45:14 homematic-ccu2 user.debug setclock: Mon Oct 23 07:45:14 CEST 2017
Oct 23 07:45:14 homematic-ccu2 user.info kernel: [   11.790000] PHY: imx28-fec-1:00 - Link is Up - 100/Full
Oct 23 05:45:14 homematic-ccu2 daemon.info ifplugd(eth0)[200]: Link beat detected.
Oct 23 07:45:15 homematic-ccu2 user.info homematic: started cux-daemon
Oct 23 07:45:15 homematic-ccu2 daemon.info cuxd[256]: write_pid /var/run/cuxd.pid [256]
Oct 23 07:45:15 homematic-ccu2 daemon.info cuxd[256]: CUx-Daemon(1.11a) on CCU(2.29.23) start PID:256
Oct 23 07:45:15 homematic-ccu2 daemon.info cuxd[256]: load paramsets(/usr/local/addons/cuxd/cuxd.ps) size:587 update(-23s):Mon Oct 23 07:44:52 2017
Oct 23 07:45:15 homematic-ccu2 daemon.info cuxd[256]: write_proxy /var/cache/cuxd_proxy.ini (256 /usr/local/addons/cuxd/ 1.11a 2.29.23 0)
Oct 23 07:45:15 homematic-ccu2 daemon.info cuxd[256]: add interface 'CUxD'
Oct 23 07:45:15 homematic-ccu2 daemon.info cuxd[256]: write 4 interfaces to /usr/local/etc/config/InterfacesList.xml
Oct 23 05:45:15 homematic-ccu2 daemon.info ifplugd(eth0)[200]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
Oct 23 05:45:16 homematic-ccu2 daemon.warn ifplugd(eth0)[200]: client: net.ipv4.tcp_timestamps = 0
Oct 23 05:45:16 homematic-ccu2 daemon.warn ifplugd(eth0)[200]: client: eth0 carrier detected
Oct 23 05:45:16 homematic-ccu2 daemon.info ifplugd(eth0)[200]: Program executed successfully.
Oct 23 05:45:17 homematic-ccu2 user.info logger: Updating RF Lan Gateway Coprocessor Firmware
Oct 23 05:45:17 homematic-ccu2 user.debug update-coprocessor: firmware filename is: coprocessor_update_hm_only.eq3
Oct 23 05:45:17 homematic-ccu2 user.info logger: Updating RF Lan Gateway Firmware
Oct 23 05:45:17 homematic-ccu2 user.info update-lgw-firmware: No gateway found in config file /etc/config/rfd.conf
Oct 23 05:45:17 homematic-ccu2 user.info logger: Updating Wired Lan Gateway Firmware
Oct 23 05:45:17 homematic-ccu2 user.info update-lgw-firmware: No gateway found in config file /etc/config/hs485d.conf
Oct 23 07:45:23 homematic-ccu2 user.info update-coprocessor: Version: 2.8.5
Oct 23 07:45:23 homematic-ccu2 user.info update-coprocessor: No update necessary
Oct 23 07:45:24 homematic-ccu2 user.info kernel: [   21.640000] eq3loop: created slave ttyS0
Oct 23 07:45:24 homematic-ccu2 user.info kernel: [   21.640000] eq3loop: created slave mmd_bidcos
Oct 23 07:45:27 homematic-ccu2 user.info kernel: [   24.070000] eq3loop: eq3loop_open_slave() mmd_bidcos
Oct 23 07:46:14 homematic-ccu2 user.debug setclock: Try to get time from ntp.homematic.com
Oct 23 07:46:14 homematic-ccu2 user.debug setclock: Mon Oct 23 07:46:14 CEST 2017
Oct 23 07:47:10 homematic-ccu2 user.info kernel: [  127.640000] eq3loop: eq3loop_open_slave() ttyS0
Oct 23 07:47:10 homematic-ccu2 user.info kernel: [  127.650000] eq3loop: eq3loop_close_slave() ttyS0
Oct 23 07:47:11 homematic-ccu2 user.info kernel: [  127.760000] eq3loop: eq3loop_open_slave() ttyS0
Oct 23 07:47:11 homematic-ccu2 user.info kernel: [  127.760000] eq3loop: eq3loop_close_slave() ttyS0
Oct 23 07:47:11 homematic-ccu2 user.info kernel: [  128.140000] eq3loop: eq3loop_open_slave() ttyS0
Oct 23 07:47:11 homematic-ccu2 user.notice kernel: [  128.160000] eq3loop: eq3loop_ioctl_slave() ttyS0: unhandled ioctl 0x5459
Oct 23 07:47:11 homematic-ccu2 user.notice kernel: [  128.170000] eq3loop: eq3loop_ioctl_slave() ttyS0: unhandled ioctl 0x545D
Oct 23 07:47:48 homematic-ccu2 daemon.warn cuxd[256]: process_rpc_request(127.0.0.1) - illegal XMLRPC(listDevices) request
Oct 23 07:48:13 homematic-ccu2 daemon.warn cuxd[256]: process_rpc_request(127.0.0.1) - illegal XMLRPC(init) request
Oct 23 07:48:19 homematic-ccu2 user.info : hss_lcd: Programm initialisiert.
Oct 23 05:48:20 homematic-ccu2 daemon.info init: starting pid 574, tty '/dev/ttyAMA0': '/sbin/getty -L ttyAMA0 115200 vt100 '
Oct 23 05:48:20 homematic-ccu2 daemon.info init: starting pid 575, tty '/dev/ttyGS0': '/sbin/getty -L ttyGS0 115200 vt100 '
Oct 23 07:48:57 homematic-ccu2 local0.err ReGaHss: Error: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [iseXmlRpc.h:281]
Oct 23 07:48:57 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallXmlrpcMethod: execute failed; method =init Params = {"xmlrpc_bin://127.0.0.1:1999","1008"} result= nil [iseXmlRpc.cpp:2635]
Oct 23 07:48:57 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallInit: CallXmlrpcMethod failed [iseXmlRpc.cpp:1227]
Oct 23 07:48:57 homematic-ccu2 local0.err ReGaHss: Error: XmlRpcClientThread::ThreadFunction(): failed call init for interface=BidCos-Wired [iseRTHss.cpp:163]
Oct 23 07:48:57 homematic-ccu2 local0.err ReGaHss: Error: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [iseXmlRpc.h:281]
Oct 23 07:48:57 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallXmlrpcMethod: execute failed; method =init Params = {"xmlrpc_bin://127.0.0.1:1999","1009"} result= nil [iseXmlRpc.cpp:2635]
Oct 23 07:48:57 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallInit: CallXmlrpcMethod failed [iseXmlRpc.cpp:1227]
Oct 23 07:48:57 homematic-ccu2 local0.err ReGaHss: Error: XmlRpcClientThread::ThreadFunction(): failed call init for interface=System [iseRTHss.cpp:163]
Oct 23 07:49:09 homematic-ccu2 daemon.info cuxd[256]: INIT 'xmlrpc_bin://127.0.0.1:1999' '7643'
Oct 23 07:51:34 homematic-ccu2 local0.err ReGaHss: Error: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [iseXmlRpc.h:281]
Oct 23 07:51:34 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallXmlrpcMethod: execute failed; method =getDeviceDescription Params = {"System"} result= nil [iseXmlRpc.cpp:2635]
Oct 23 07:51:34 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallGetDeviceDescription: CallXmlrpcMethod failed [iseXmlRpc.cpp:2225]
Oct 23 07:51:34 homematic-ccu2 local0.err ReGaHss: Error: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [iseXmlRpc.h:281]
Oct 23 07:51:34 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallXmlrpcMethod: execute failed; method =getDeviceDescription Params = {"System"} result= nil [iseXmlRpc.cpp:2635]
Oct 23 07:51:34 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallGetDeviceDescription: CallXmlrpcMethod failed [iseXmlRpc.cpp:2225]
Oct 23 07:51:38 homematic-ccu2 daemon.info cuxd[694]: system(wget --auth-no-challenge -q -O '/tmp/snapshot.jpg' 'http://192.168.10.xx:80/tmpfs/auto.jpg?usr=admin&pwd=11111') exit(8) 0s
Oct 23 07:51:43 homematic-ccu2 daemon.info cuxd[711]: system(extra/curl -s -k 'https://api.telegram.org/bot452519858:AAEKxxx-74vDMu3UGqFzCV91rEm4Zazanp4 /sendPhoto' -F chat_id=413613111 -F photo='@/tmp/snapshot.jpg' -F caption='Es hat geklingelt - mit Foto') exit(3) 0s
Oct 23 07:51:50 homematic-ccu2 daemon.info cuxd[720]: system(wget --auth-no-challenge -q -O '/tmp/snapshot.jpg' 'http://192.168.10.110:80/tmpfs/auto.jpg?usr=admin&pwd=vije2010') exit(8) 0s
Oct 23 07:51:55 homematic-ccu2 daemon.info cuxd[734]: system(extra/curl -s -k 'https://api.telegram.org/bot452519858:AAEKxxx-74vDMu3UGqFzCV91rEm4Zazanp4 /sendPhoto' -F chat_id=413613111 -F photo='@/tmp/snapshot.jpg' -F caption='Es hat geklingelt - mit Foto') exit(3) 0s

Daruafhoin habe ich die beiden Scripte noch mal manuell ausgeführt über den Button: Script testen (ich hoffe, dass das der Punkt ist den du mit Executer meinst. Zusätzlich noch fix SSH aktiviert, der Log wurde dann entsprechend um diese 3 Zeilen ergänzt:

Code: Alles auswählen

Oct 23 07:56:11 homematic-ccu2 auth.info sshd[853]: Server listening on 0.0.0.0 port 22.
Oct 23 08:00:50 homematic-ccu2 daemon.info cuxd[952]: system(wget --auth-no-challenge -q -O '/tmp/snapshot.jpg' 'http://192.168.10.xx:80/tmpfs/auto.jpg?usr=admin&pwd=11111') exit(8) 0s
Oct 23 08:01:16 homematic-ccu2 daemon.info cuxd[966]: system(extra/curl -s -k 'https://api.telegram.org/bot452519858:AAEKMvG-74vDMu3UGqFzCV91rEm4xxxxxx /sendPhoto' -F chat_id=411111476 -F photo='@/tmp/snapshot.jpg' -F caption='Es hat geklingelt - mit Foto') exit(3) 0s

Per sFTP kann ich nun sehen, dass die Datei snapshot.jpg erzeugt wird, sie hat 38kb.
Müsste nicht aber zumindest der Text per Telegram rausgehen? Auch wenn das Foto nicht mitkommt?

Trage ich den Link zum Snapshot im Browser ein, funktioniert es...

Sorry nochmals... bin echt noch Anfänger, aber ich arbeite dran!

1000 Dank!

Ach so - hier auch noch der Log nach dem letzten Versuch bei dem Foto zumindest schon mal erstellt wurde:

Code: Alles auswählen

Oct 23 08:06:38 homematic-ccu2 auth.info sshd[1088]: Accepted password for root from 192.168.10.60 port 57100 ssh2
Oct 23 08:06:38 homematic-ccu2 auth.info sshd[1088]: subsystem request for sftp by user root
Oct 23 08:10:15 homematic-ccu2 local0.err ReGaHss: Error: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [iseXmlRpc.h:281]
Oct 23 08:10:15 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallXmlrpcMethod: execute failed; method =getDeviceDescription Params = {"System"} result= nil [iseXmlRpc.cpp:2635]
Oct 23 08:10:15 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallGetDeviceDescription: CallXmlrpcMethod failed [iseXmlRpc.cpp:2225]
Oct 23 08:10:15 homematic-ccu2 local0.err ReGaHss: Error: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [iseXmlRpc.h:281]
Oct 23 08:10:15 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallXmlrpcMethod: execute failed; method =getDeviceDescription Params = {"System"} result= nil [iseXmlRpc.cpp:2635]
Oct 23 08:10:15 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallGetDeviceDescription: CallXmlrpcMethod failed [iseXmlRpc.cpp:2225]
Oct 23 08:10:24 homematic-ccu2 daemon.info cuxd[1187]: system(extra/curl -s -k 'https://api.telegram.org/bot452519858:AAEKMvG-74vDMu3UGqFzCV91rExxxxxxx /sendPhoto' -F chat_id=4111111 -F photo='@/tmp/snapshot.jpg' -F caption='Es hat geklingelt - mit Foto') exit(3) 0s


alchy
Beiträge: 10754
Registriert: 24.02.2011, 01:34
System: CCU
Hat sich bedankt: 65 Mal
Danksagung erhalten: 673 Mal

Re: Snapshot von Webcam an Telegram senden

Beitrag von alchy » 23.10.2017, 08:45

Schon das Bild holen wirft einen Fehler.
Klären wir mal auf die Schnelle, woran das liegt.
Script 1 ausführen unverändert

Code: Alles auswählen

(dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:1.CMD_EXEC")).State("wget --auth-no-challenge -q -O /tmp/klingel.jpg 'http://www.uni-bielefeld.de/lili/webteam/images/bildchen4_aehm.png'");
kurz warten

Script 2 ausführen (nur Benutzerdaten ändern)

Code: Alles auswählen

(dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:1.CMD_EXEC")).State("extra/curl -s -k 'https://api.telegram.org/botXXXXXXXXXXXXXXXXXX/sendPhoto' -F chat_id=XXXXXXXXXXXXX -F photo='@/tmp/klingel.jpg' -F caption='Es wurde geklingelt'");
Funzt :?: :?: wenn nicht Fehlerprotokoll :!: :!: & Zustand /tmp/klingel.jpg

Alchy

Blacklist................... almost full
Ignoranz ist die Summe aller Maßnahmen die man ergreift, um bestehende Tatsachen nicht sehen zu müssen.

© Sandra Pulsfort (*1974)

Lies bitte die Logik von WebUI Programmen und die Tipps und Tricks für Anfänger.

Wichtig auch CUxD ersetzt System.exec. Die HM Script Doku (Downloadart Skripte) hilft auch weiter.
Zum Testen von Scripten den >> HomeMatic Script Executor << von Anli benutzen.

Antworten

Zurück zu „HomeMatic Zentrale (CCU / CCU2 / CCU3 / Charly)“