Neues Modul: 70_ZoneMinder, 71_ZM_Monitor

Begonnen von delMar, 07 Oktober 2018, 18:45:04

Vorheriges Thema - Nächstes Thema

delMar

Zitat von: Sky am 02 Februar 2020, 16:40:29
Ich weiß nicht ob folgende Eingabe mit meinen Daten ( USER / PASS ) ausgeführt werden muss ?

sudo mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"


Diese Daten müssen mit jenen in /etc/zm/zm.conf übereinstimmen. Da gehts nur um die Verbindung zwischen ZM und der Datenbank.

Zitat von: Sky am 02 Februar 2020, 16:40:29
Eine Abfrage über

curl -XPOST -d "user=admin&pass=admin" https://192.168.178.xx/zm/api/host/login.json


ergibt

curl: (7) Failed to connect to 192.168.178.xx port 443: Connection refused

Im Gegensatz zu gestern bist du hier nun mit https unterwegs. Das ist beabsichtigt?


Zitat von: Sky am 02 Februar 2020, 16:40:29
Ein Neustart von Zoneminder bringt folgende ERROR-Meldung :
Zoneminder besteht aus mehreren, verbundenen Prozessen.
Welcher was macht, findest du in der ZM Doku sehr detailiert aufgelistet.
Diese Meldung muss also nicht zwingend ein Problem sein.

Ist die ZM-Console im Web erreichbar? Wenn du auf die über http gehst, musst du auch mit dem curl über http gehen.
Wenn curl über https nicht geht, dürfte auch die Web-Console nicht über https funktionieren.
Maintainer von: ZoneMinder, TA_CMI_JSON, ONKYO_AVR, DENON_AVR, CanOverEthernet, IPCAM.

Vielgenutzte Module sind die größte Motivation für Entwickler.
Bitte zumindest 'attr global sendStatistics onUpdate' setzen.
Denn: ohne 'sendStatistics' keine Zahlen.

Sky

Zitat von: delMar am 02 Februar 2020, 21:43:42
Diese Daten müssen mit jenen in /etc/zm/zm.conf übereinstimmen. Da gehts nur um die Verbindung zwischen ZM und der Datenbank.

Das muss ich noch kontrollieren , kann diese im Moment über Filezilla/Notepad noch nicht öffnen, Berechtigungsprobleme ( siehe Bild ) ??


Im Gegensatz zu gestern bist du hier nun mit https unterwegs. Das ist beabsichtigt?

Dies ist ein Fehler .Hatte dies im Zoneminderforum gesehen , aber dieses https übersehen .
Mit

curl -XPOST -d "user=admin&pass=admin" http://192.168.178.xx/zm/api/host/login.json

kommmt folgendes :

curl: (6) Could not resolve host: 192.168.178.xx


Zoneminder besteht aus mehreren, verbundenen Prozessen.
Welcher was macht, findest du in der ZM Doku sehr detailiert aufgelistet.
Diese Meldung muss also nicht zwingend ein Problem sein.

Ist die ZM-Console im Web erreichbar? Wenn du auf die über http gehst, musst du auch mit dem curl über http gehen.
Wenn curl über https nicht geht, dürfte auch die Web-Console nicht über https funktionieren.

Über

http://192.168.178.xx/zm/index.php

ist die ZM-Console erreichbar

delMar

#197
die zm.conf gehört dem root user, wahrscheinlich bist du bei filezilla mit dem falschen angemeldet (zB pi)

Ja, und dass du über den Browser die Adresse problemlos aufrufen kannst, über die shell aber nicht, das verstehe ich nach wie vor nicht.
wobei: Sind das zwei unterschiedliche Geräte, die evtl unterschiedlich mit dem Netzwerk verbunden sind?

Jetzt kommt noch dazu "could not resolve host", wobei es nur eine IP Adresse ist.
Dh die Gegenstelle wird nicht gefunden.
Die xx in den Adresse machen es halt auch schwer, zB Tipp- oder Denkfehler zu erkennen

Sind Zoneminder und FHEM am selben Switch, oder gehst du über einen Router, wo evtl etwas falsch laufen könnte?


Maintainer von: ZoneMinder, TA_CMI_JSON, ONKYO_AVR, DENON_AVR, CanOverEthernet, IPCAM.

Vielgenutzte Module sind die größte Motivation für Entwickler.
Bitte zumindest 'attr global sendStatistics onUpdate' setzen.
Denn: ohne 'sendStatistics' keine Zahlen.

Sky


Den Ping habe ich von meinem 1. Raspi mit Fhem ( 192.168.178.yyy ) gemacht .
Also nochmal zum Verständniss :

Fhem ( Stretch ) läuft auf einem Raspi 3+
IP-Adresse : 192.168.178.yyy

Zoneminder 1.32.3 läuft auf einem Raspi 4 mit Buster
IP-Adresse : 192.168.178.xx

Ich habe 2 Raspberry's gleichzeitig in Betrieb .
Der erste mit Stretch und Fhem ,läuft unter 192.168.178.131
Der zweite läuft nur mit Buster und Zoneminder 1.32.3 unter 192.168.178.22

Also beide gleichzeitig in meinem Netzwerk , vielleicht benutzen beide den Port 80 ?

Das "could not resolve host" hat sich erledigt , war ein User/Pass Fehler meinerseits

delMar

Zitat von: Sky am 03 Februar 2020, 08:01:30
Das "could not resolve host" hat sich erledigt , war ein User/Pass Fehler meinerseits
Sorry, die Verwirrung steigt: ich weiß nicht, wie falsche credentials ein "could not resolve host" hervorbringen können.

Ok, das Ping kam vom fhem-RPi. Dh die Erreichbarkeit der Zoneminder RPIs selber ist gewährleistet.

Das Öffnen der URLs (zB /api/host/login.json) mit curl funktioniert aber nicht, richrtig?
Das wurde auch vom fhem-RPi aus gemacht?

Du hast früher mal erwähnt, dass die URLs im Browser aber schon funktionieren. Wo ist dieser Browser gelaufen?
Auch auf dem fhem-RPi, oder nochmal wo anders?


Zitat von: Sky am 03 Februar 2020, 08:01:30
Also beide gleichzeitig in meinem Netzwerk , vielleicht benutzen beide den Port 80 ?
Kannst du bitte mal auflisten, welche Adresse du im Browser eingibst, um auf die ZM-Webconsole(n) zu kommen?
Und auch, auf welchem Gerät dieser Browser läuft?



schöne Grüße
Martin
Maintainer von: ZoneMinder, TA_CMI_JSON, ONKYO_AVR, DENON_AVR, CanOverEthernet, IPCAM.

Vielgenutzte Module sind die größte Motivation für Entwickler.
Bitte zumindest 'attr global sendStatistics onUpdate' setzen.
Denn: ohne 'sendStatistics' keine Zahlen.

Sky

#200
Zitat
Sorry, die Verwirrung steigt: ich weiß nicht, wie falsche credentials ein "could not resolve host" hervorbringen können.

Ich hatte bei

curl -XPOST -d "user=admin&pass=admin" http://192.168.178.xx/zm/api/host/login.json

übersehen , daß die Standartanmeldung über admin bei einer Neueinrichtung von Zoneminder kein Passwort hat . Daher die Rückmeldung  "could not resolve host" .

Zitat

Das Öffnen der URLs (zB /api/host/login.json) mit curl funktioniert aber nicht, richrtig?
Das wurde auch vom fhem-RPi aus gemacht?


Ja , wurde vom fhem-RPi gemacht .

Zitat

Du hast früher mal erwähnt, dass die URLs im Browser aber schon funktionieren. Wo ist dieser Browser gelaufen?
Auch auf dem fhem-RPi, oder nochmal wo anders?


Ich habe die Weboberfläche von Zoneminder auf einem Windows-PC aufgerufen
http://192.168.178.22/zm/

Ich habe jetzt einmal versucht heraus zu finden ,welcher Port bei dem fhemRPi und bei dem ZoneminderRPi
belegt oder offen ist , kann damit aber nicht viel anfangen

delMar

Ganz wichtige Frage: hast du in deinem Netzwerk nur normale Switches, oder machst du auch was mit Routing zwischen Subnetzen, etc?
Du hast eine Fritzbox, wie ich sehe. Hängen da alle diese Geräte dran?
Maintainer von: ZoneMinder, TA_CMI_JSON, ONKYO_AVR, DENON_AVR, CanOverEthernet, IPCAM.

Vielgenutzte Module sind die größte Motivation für Entwickler.
Bitte zumindest 'attr global sendStatistics onUpdate' setzen.
Denn: ohne 'sendStatistics' keine Zahlen.

Sky

Aufgrund der Vielzahl an Geräten im Heimischen Netzwerk habe ich normale Switches im Einsatz . Wie Du richtig gesehen hast , ist mein Router eine FritzBox , wo im Endeffekt alle Geräte ,,angeschlossen ,, sind

delMar

1.30 funktioniert ja mit fhem, richtig?
Dh wir konzentrieren uns auf 1.32

Stell bitte sicher, dass die ZM-Installation für sich läuft.
Ohne Rücksicht auf FHEM einfach sicherstellen, dass man sich anmelden kann und die Monitore angelegt sind.
Ein einziger User, der alle Rechte hat, reicht auch. Das ordentliche Absichern kann man auch später noch machen.
Und: die ZM Installation muss OPT_TRIGGER und OPT_USE_API gesetzt haben (aus dem Gedächtnis wiedergegeben).

Erst wenn das alles erledigt ist, weitermachen.

1) ist die ZM-Webconsole über deinen Browser erreichbar?
2) Falls ja, das Device in FHEM anlegen. Mit genau der IP und den Credentials, die auch im Browser funktioniert haben.
define zm2 ZoneMinder 192.168.178.22 admin admin
Außerdem muss apiVersion auf post132 gesetzt sein.
An dieser Stelle fhem mal neu starten, nur zur sicherheit

Wenn dann immer noch für die API n/a im Status steht, dann wieder verbose auf 5 (save) und fhem mal durchstarten und die meldung aus dem Log hier reinstellen.

Ja, irgendwie dreht sich das alles im Kreis.
Maintainer von: ZoneMinder, TA_CMI_JSON, ONKYO_AVR, DENON_AVR, CanOverEthernet, IPCAM.

Vielgenutzte Module sind die größte Motivation für Entwickler.
Bitte zumindest 'attr global sendStatistics onUpdate' setzen.
Denn: ohne 'sendStatistics' keine Zahlen.

Sky

Zitat
1.30 funktioniert ja mit fhem, richtig?
Dh wir konzentrieren uns auf 1.32

1.30 auf Stretch funktionierte,habe dann den Zoneminder-RPi mit Buster neu aufgesetzt .

Zitat
Stell bitte sicher, dass die ZM-Installation für sich läuft.
Ohne Rücksicht auf FHEM einfach sicherstellen, dass man sich anmelden kann und die Monitore angelegt sind.
Ein einziger User, der alle Rechte hat, reicht auch. Das ordentliche Absichern kann man auch später noch machen.
Und: die ZM Installation muss OPT_TRIGGER und OPT_USE_API gesetzt haben (aus dem Gedächtnis wiedergegeben).


ZM-Installation 1.32.3 läuft ,habe einen Test-User angelegt ,Anmeldung auf der Weboberfläche mit " http://192.168.178.22/zm/ " funktioniert . 
OPT_TRIGGER und OPT_USE_API sind aktiv .

Device ist mit


defmod zm2 ZoneMinder 192.168.178.22 Test1 test
attr zm2 apiVersion post132
attr zm2 room Zoneminder
attr zm2 verbose 5

setstate zm2 Trigger-Port: opened, API: opened
setstate zm2 2020-02-03 21:34:49 state Trigger-Port: opened, API: opened



angelegt .


2020.02.03 21:17:13 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/monitors.json with callback CODE(0x2195018)
2020.02.03 21:17:13 4: ZoneMinder (zm2) - (?^:"Id":\s*") NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:17:13 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/monitors.json with callback CODE(0x2194898)
2020.02.03 21:17:13 4: ZoneMinder (zm2) - (?^:"Id":\s*") NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:34:49 4: ZoneMinder (zm2) - loginUrl: http://192.168.178.22/zm/api/host/login.json?user=Test1&pass=test
2020.02.03 21:34:49 3: ZoneMinder (zm2) - login status: 404
2020.02.03 21:34:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/configs.json with callback CODE(0x2193ac8)
2020.02.03 21:34:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:34:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/monitors.json with callback CODE(0x2194898)
2020.02.03 21:34:49 4: ZoneMinder (zm2) - (?^:"version":\s*") NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:34:49 4: ZoneMinder (zm2) - (?^:"apiversion":\s*") NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:34:49 4: ZoneMinder (zm2) - (?^:"credentials":\s*") NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address>
</body></html>
.
2020.02.03 21:34:49 1: PERL WARNING: Use of uninitialized value $credentials in substitution (s///) at ./FHEM/70_ZoneMinder.pm line 272.
2020.02.03 21:34:49 4: ZoneMinder (zm2) - (?^:"Id":\s*") NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:34:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:34:49 4: ZoneMinder (zm2) - (?^:"Name":\s*"ZM_PATH_ZMS",\s*"Value":\s*") NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:35:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:35:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:36:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:36:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:37:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:37:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:38:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:38:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:39:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:39:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:40:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:40:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:41:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:41:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:42:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:42:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:43:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:43:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:44:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:44:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:45:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:45:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:46:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:46:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:47:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:47:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:48:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:48:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:49:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:49:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:50:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:50:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:51:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:51:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:52:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:52:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:53:49 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:53:49 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:54:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:54:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:55:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:55:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:56:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:56:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:57:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:57:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:58:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:58:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 21:59:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 21:59:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 22:00:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 22:00:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 22:01:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 22:01:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 22:02:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 22:02:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 22:03:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 22:03:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 22:04:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 22:04:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 22:05:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)
2020.02.03 22:05:50 4: ZoneMinder (zm2) - (?^:"load":\s*\[) NOT found in <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80</address></body></html>.
2020.02.03 22:06:50 4: ZoneMinder (zm2) SimpleGet calling http://192.168.178.22/zm/api/host/getLoad.json with callback CODE(0x27b66c0)

delMar

Das ist ja seltsam:
Zitat von: Sky am 03 Februar 2020, 22:09:42

setstate zm2 Trigger-Port: opened, API: opened

Neue Information: Wie kann bei API 'opened' stehen?
Das würde ja darauf hinweisen, dass der Login funktioniert hat - dem widerspricht aber der Log-Auszug

Was liefert die Login-URL im Browser?

http://192.168.178.22/zm/api/host/login.json?user=Test1&pass=test

Auch ein 404? Oder kommt ein valides JSON zurück?

Kannst du auch das Ergebnis dieses Requests mal hier rein stellen?

http://192.168.178.22/zm/api/host/getVersion.json

Falls nix kommt, zuerst ganz normal anmelden, und dann diese URL im selben Browser-Fenster oder Tab öffnen.
Ich möchte gern sehen, ob die ZoneMinder API-version bei dir 1.0 oder 2.0 ist...

Danke
schöne Grüße
Martin

Maintainer von: ZoneMinder, TA_CMI_JSON, ONKYO_AVR, DENON_AVR, CanOverEthernet, IPCAM.

Vielgenutzte Module sind die größte Motivation für Entwickler.
Bitte zumindest 'attr global sendStatistics onUpdate' setzen.
Denn: ohne 'sendStatistics' keine Zahlen.

Sky

Ein

http://192.168.178.22/zm/api/host/login.json?user=Test1&pass=test

liefert folgendes

Not Found
The requested URL was not found on this server.

Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80


Bei

http://192.168.178.22/zm/api/host/getVersion.json


ebenfalls

Not Found
The requested URL was not found on this server.

Apache/2.4.38 (Raspbian) Server at 192.168.178.22 Port 80


auch nach diesem Vorgang

Falls nix kommt, zuerst ganz normal anmelden, und dann diese URL im selben Browser-Fenster oder Tab öffnen.

Sky

Heute Morgen nach einem Neustart von Fhem ......

Das soll jemand verstehen

delMar

Maintainer von: ZoneMinder, TA_CMI_JSON, ONKYO_AVR, DENON_AVR, CanOverEthernet, IPCAM.

Vielgenutzte Module sind die größte Motivation für Entwickler.
Bitte zumindest 'attr global sendStatistics onUpdate' setzen.
Denn: ohne 'sendStatistics' keine Zahlen.

Sky

Hallo Martin ,

vielen Dank für die Geduld und Hilfe .
Ausschlaggebend war Dein letzter Post ,dieser hat mein Probleme gelöst.

Im Moment scheint alles fehlerfrei zu laufen , Daumen hoch !!