49_SSCam: Fragen, Hinweise, Neuigkeiten und mehr rund um dieses Modul

Begonnen von DS_Starter, 14 Dezember 2015, 16:19:08

Vorheriges Thema - Nächstes Thema

DS_Starter

Schau doch mal bitte auf deiner DS -> Systemsteuerung -> Sicherheit -> Konto -> Liste blockierter IPs.
Steht dort evtl die Adresse 192.168.178.10 drin ?
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Dracolein

Danke für den Hinweis.
Die besagte Liste habe ich gefunden, aber dort steht keine IP-Adresse meiner lokalen Geräte drin.
(192.168.178.10 = Synology Diskstation)

Allerdings habe ich gestern abend unmittelbar nach dem Verfassen des vorigen Postings mehrere Stunden gebraucht, um Zugang zur DS zu erhalten. Mir fiel auf, dass die LAN-LED im Minutentakt ausging! Aus völlig unklare Gründen, verlor die DS kontinuierlich ihre Netzwerkverbindung und folglich auch die Verbindung zu den Überwachungskameras. Die gesamte Benutzeroberfläche war so dermaßen laggy, dass es ewig dauerte, ein simplen Backup-Task anzustoßen (der wenigstens über Nacht dann doch vollständig durchgelaufen ist). Laut Systemprotokoll begann das Problem am Sonntag früh und seither verlor die DS im Minutentakt die LAN-Verbindung. Weitere Logeinträge bzgl. Fehler sind nicht zu finden.
Ich habe gestern abend die Kabelverbindung vom Switch direkt zum Router übergangsweise geändert, so konnte ich zumindest diesen Verbindungsfehler beheben. Trotzdem stimmt irgendwas nicht, die DS ist permanent auf 100% CPU-Last und die Bedienung ist unerträglich langsam.
Vermutlich muss ich den überfälligen Schritt endlich gehen und sowohl neue Platten, wie auch ein neues Device kaufen, um die alte und seit längerem überforderte DS zu ersetzen.  :-\
Raspberry Pi 4 mit FHEM; FTUI Dashboard auf Asus 15,6" VT168H Touchscreen; ZigBee mit ConBee2 USB-Stick; div. Shelly 2.5; integr. Gaszähler mit ESP8266 & ESPEasy;

rohlande

#1922
Hallo Heiko,

bin gerade dabei mich mit Deinem SSCam Modul auseinander zu setzten.
Dabei stoße ich auf einen JSON Fehler innerhalb der beiden angelegten CAM's.
Autocreate ist zuvor problemlos durchgelaufen!
Zitatmalformed JSON string received

Fhem läuft in ein Docker auf der Synology.
SVS habe ich installiert und aber noch keinen Neustart gemacht.

Verbose 5 bringt keinen Hinweis was nicht stimmt.
Kannst Du mir sagen wie ich das debuggen kann?

Vg Denny

EDIT:

Hallo Heiko,

Habe evtl. einen Bug gefunden. Beim autocreate der CAMS wird im DEV das https nicht angelegt.
Als ich mir das WIKI angeschaut habe, stand dort aber HTTPS.
Kannst DU das mal checken.? Jetzt ist der Fehler weg und die Reading sind alle da.
Allerdings habe ich auch als SESSION jetzt den DSM Pfad von Anfang an gewählt.
Ich teste das aber noch auf Baisi der 9901 bzw. 9900 Ports!

VG Denny
HostSystem: Synology DS918 | FHEM im Docker Version: 6.0-s22528_v2.2.4 (dedizierte IP Adresse) | MQTT_Broker auf DS918 NAS | MQTT_FHEM | TASMOTA_DEVICE | SSChatBot | SSCam | LaMetric | FBAHAHTTP | CUL | SONOS | HUEBridge (deCONZ) Zigbee | FB_CALLMONITOR | InfluxDBLogger

DS_Starter

Morgen Denny,

ZitatHabe evtl. einen Bug gefunden. Beim autocreate der CAMS wird im DEV das https nicht angelegt.
Ja danke für den Hinweis, schaue ich  mir an.
Nur zum Verständnis ... du hast ein SVS Device mit https angelegt und dann ein autocreate durchgeführt. Die entstandenen Cam-Devices waren dann aber ohne https definiert. So richtig verstanden ?

ZitatAllerdings habe ich auch als SESSION jetzt den DSM Pfad von Anfang an gewählt.
Session = DSM ist zu Beginn meist eine gute Wahl um mit dem Modul und den Möglichkeiten "warm" zu werden. Dann kann man umschalten auf SurveillanceStation um die Rechte filigraner zu bestimmen.

Die SSChatBot Unterterstützung ist in SSCam eingebaut und auch im Wiki beschrieben: https://wiki.fhem.de/wiki/SSCAM_-_Steuerung_von_Kameras_in_Synology_Surveillance_Station#Versand_von_Aufnahmen_und_Schnappsch.C3.BCssen_mit_Synology_Chat_.28SSChatBot.29


Grüße,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

rohlande

Zitat von: DS_Starter am 14 April 2020, 08:49:00
Nur zum Verständnis ... du hast ein SVS Device mit https angelegt und dann ein autocreate durchgeführt. Die entstandenen Cam-Devices waren dann aber ohne https definiert. So richtig verstanden ?

Grüße,
Heiko

Hallo Heiko,
Ja richtig verstanden.
Vg denny
HostSystem: Synology DS918 | FHEM im Docker Version: 6.0-s22528_v2.2.4 (dedizierte IP Adresse) | MQTT_Broker auf DS918 NAS | MQTT_FHEM | TASMOTA_DEVICE | SSChatBot | SSCam | LaMetric | FBAHAHTTP | CUL | SONOS | HUEBridge (deCONZ) Zigbee | FB_CALLMONITOR | InfluxDBLogger

DS_Starter

Kurze Rückmeldung ... ja hast recht  8)  ich fixe/teste das und melde mich wieder mit einem Update.

LG,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

DS_Starter

Habe den https-bug bei autocreate gefixt. Wer es testen mag:


"wget -qO ./FHEM/49_SSCam.pm https://svn.fhem.de/fhem/trunk/fhem/contrib/DS_Starter/49_SSCam.pm"


Und restart.
Ansonsten ist das Update morgen früh in der Regelverteilung.

LG,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Frazzor

Hi Zusammen,

ich habe aktuell auch ein Problem.  Ich konnte das SVS anlegen, aber beim Autocreate der Cameras passiert irgendein Fehler.

5000://Sued:192.168.178.250/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.API.Auth,SYNO.SurveillanceStation.ExternalRecording,SYNO.SurveillanceStation.Camera,SYNO.SurveillanceStation.SnapShot,SYNO.SurveillanceStation.PTZ,SYNO.SurveillanceStation.PTZ.Preset,SYNO.SurveillanceStation.Info,SYNO.SurveillanceStation.Camera.Event,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.VideoStreaming,SYNO.SurveillanceStation.ExternalEvent,SYNO.SurveillanceStation.Stream,SYNO.SurveillanceStation.HomeMode,SYNO.SurveillanceStation.Log,SYNO.SurveillanceStation.AudioStream,SYNO.SurveillanceStation.VideoStream,SYNO.SurveillanceStation.Recording: malformed or unsupported URL

Das steht als Fehlercode im Device.
Im Log steht:
5000://Vorne:192.168.178.250/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.API.Auth,SYNO.SurveillanceStation.ExternalRecording,SYNO.SurveillanceStation.Camera,SYNO.SurveillanceStation.SnapShot,SYNO.SurveillanceStation.PTZ,SYNO.SurveillanceStation.PTZ.Preset,SYNO.SurveillanceStation.Info,SYNO.SurveillanceStation.Camera.Event,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.VideoStreaming,SYNO.SurveillanceStation.ExternalEvent,SYNO.SurveillanceStation.Stream,SYNO.SurveillanceStation.HomeMode,SYNO.SurveillanceStation.Log,SYNO.SurveillanceStation.AudioStream,SYNO.SurveillanceStation.VideoStream,SYNO.SurveillanceStation.Recording: malformed or unsupported URL

Weis jemand was für einen Fehler ich gemacht habe?

Danke schonmal.

Gruß
Michael

DS_Starter

#1928
Hallo Michael,

welche SSCam Version benutzt du ?  Das steht im Internal "FVERSION".

Edit: bitte noch ein list deines SVS Devices:

list <SVS-Device>

Grüße,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Frazzor

Hallo Heiko,

anbei meine FVersion: 49_SSCam.pm:v9.2.2-s21684/2020-04-14

Internals:
   CAMNAME    Kamera
   CFGFN     
   COMPATIBILITY 8.2.7
   CREDENTIALS Set
   DEF        Kamera Vorne 192.168.178.250 5000 http
   FUUID      5eca71b0-f33f-f649-102b-b261b170f4477206
   FVERSION   49_SSCam.pm:v9.2.2-s21684/2020-04-14
   MODEL      CAM
   NAME       SSCam.Kamera_Vorne
   NR         245924
   OPMODE     getStmUrlPath
   PROTOCOL   5000
   SERVERADDR Vorne
   SERVERPORT 192.168.178.250
   STATE      off
   TYPE       SSCam
   HELPER:
     ACTIVE     off
     APIAUDIOSTM SYNO.SurveillanceStation.AudioStream
     APIAUTH    SYNO.API.Auth
     APICAM     SYNO.SurveillanceStation.Camera
     APICAMEVENT SYNO.SurveillanceStation.Camera.Event
     APIEVENT   SYNO.SurveillanceStation.Event
     APIEXTEVT  SYNO.SurveillanceStation.ExternalEvent
     APIEXTREC  SYNO.SurveillanceStation.ExternalRecording
     APIHM      SYNO.SurveillanceStation.HomeMode
     APIINFO    SYNO.API.Info
     APILOG     SYNO.SurveillanceStation.Log
     APIPRESET  SYNO.SurveillanceStation.PTZ.Preset
     APIPTZ     SYNO.SurveillanceStation.PTZ
     APIREC     SYNO.SurveillanceStation.Recording
     APISNAPSHOT SYNO.SurveillanceStation.SnapShot
     APISTM     SYNO.SurveillanceStation.Stream
     APISVSINFO SYNO.SurveillanceStation.Info
     APIVIDEOSTM SYNO.SurveillanceStation.VideoStreaming
     APIVIDEOSTMS SYNO.SurveillanceStation.VideoStream
     CREDENTIALS **********
     GETSNAPGALLERY 1
     HLSSTREAM  inactive
     KEYWORD    Kamera
     LOGINRETRIES 0
     OLDPTZHOME
     OLDVALPOLL 210
     OLDVALPOLLNOLOGGING 1
     PACKAGE    main
     RECTIME_DEF 15
     SNAPIMGSIZE 1
     SNAPLIMIT  1
     TOTALCNT   0
     VERSION    9.2.2
   READINGS:
     2020-05-24 15:08:00   Availability    ???
     2020-05-24 15:11:02   CamStreamFormat no API
     2020-05-24 15:11:02   Error           5000://Vorne:192.168.178.250/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.API.Auth,SYNO.SurveillanceStation.ExternalRecording,SYNO.SurveillanceStation.Camera,SYNO.SurveillanceStation.SnapShot,SYNO.SurveillanceStation.PTZ,SYNO.SurveillanceStation.PTZ.Preset,SYNO.SurveillanceStation.Info,SYNO.SurveillanceStation.Camera.Event,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.VideoStreaming,SYNO.SurveillanceStation.ExternalEvent,SYNO.SurveillanceStation.Stream,SYNO.SurveillanceStation.HomeMode,SYNO.SurveillanceStation.Log,SYNO.SurveillanceStation.AudioStream,SYNO.SurveillanceStation.VideoStream,SYNO.SurveillanceStation.Recording: malformed or unsupported URL
     2020-05-24 15:11:00   PollState       Active - next time: 15:14:30
     2020-05-24 15:08:04   compstate       true
     2020-05-24 15:08:00   state           off
Attributes:
   devStateIcon .*isable.*:set_off .*nap:li_wht_on
   httptimeout 20
   icon       it_camera
   pollcaminfoall 210
   pollnologging 1
   room       SSCAM
   session    DSM
   showStmInfoFull 1
   webCmd     on:off:snap:enable:disable:runView:stopView


Gruß
Michael

DS_Starter

Hallo Michael,

danke, die Version ist iO.
Aber bitte ein list von dem definierten SVS Device, nicht der Kamera.

Und setze solche Listings bitte in Code-Tags. Das ist das # Button oben in der Editorleiste.

LG,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Frazzor

Hallo Heiko,

hab dich falsch Verstanden :)
Internals:
   CAMNAME    SVS
   COMPATIBILITY 8.2.7
   CREDENTIALS Set
   DEF        SVS 192.168.178.250
   FUUID      5ec585dd-f33f-f649-fd44-e400f794b0ce47f2
   FVERSION   49_SSCam.pm:v9.2.2-s21684/2020-04-14
   MODEL      SVS
   NAME       SurveillanceStation
   NR         707
   OPMODE     getsvsinfo
   PROTOCOL   http
   SERVERADDR 192.168.178.250
   SERVERPORT 5000
   STATE      initialized
   TYPE       SSCam
   HELPER:
     ACTIVE     off
     APIAUDIOSTM SYNO.SurveillanceStation.AudioStream
     APIAUDIOSTMMAXVER 2
     APIAUDIOSTMPATH SurveillanceStation/audioStreaming.cgi
     APIAUTH    SYNO.API.Auth
     APIAUTHMAXVER 6
     APIAUTHPATH auth.cgi
     APICAM     SYNO.SurveillanceStation.Camera
     APICAMEVENT SYNO.SurveillanceStation.Camera.Event
     APICAMEVENTMAXVER 1
     APICAMEVENTPATH entry.cgi
     APICAMMAXVER 9
     APICAMPATH entry.cgi
     APIEVENT   SYNO.SurveillanceStation.Event
     APIEVENTMAXVER 5
     APIEVENTPATH entry.cgi
     APIEXTEVT  SYNO.SurveillanceStation.ExternalEvent
     APIEXTEVTMAXVER 1
     APIEXTEVTPATH entry.cgi
     APIEXTREC  SYNO.SurveillanceStation.ExternalRecording
     APIEXTRECMAXVER 3
     APIEXTRECPATH entry.cgi
     APIHM      SYNO.SurveillanceStation.HomeMode
     APIHMMAXVER 1
     APIHMPATH  entry.cgi
     APIINFO    SYNO.API.Info
     APILOG     SYNO.SurveillanceStation.Log
     APILOGMAXVER 3
     APILOGPATH entry.cgi
     APIPARSET  1
     APIPRESET  SYNO.SurveillanceStation.PTZ.Preset
     APIPRESETMAXVER 1
     APIPRESETPATH entry.cgi
     APIPTZ     SYNO.SurveillanceStation.PTZ
     APIPTZMAXVER 5
     APIPTZPATH entry.cgi
     APIREC     SYNO.SurveillanceStation.Recording
     APIRECMAXVER 6
     APIRECPATH entry.cgi
     APISNAPSHOT SYNO.SurveillanceStation.SnapShot
     APISTM     SYNO.SurveillanceStation.Stream
     APISTMMAXVER 1
     APISTMPATH entry.cgi
     APISVSINFO SYNO.SurveillanceStation.Info
     APISVSINFOMAXVER 8
     APISVSINFOPATH entry.cgi
     APITAKESNAPMAXVER 1
     APITAKESNAPPATH entry.cgi
     APIVIDEOSTM SYNO.SurveillanceStation.VideoStreaming
     APIVIDEOSTMMAXVER 1
     APIVIDEOSTMPATH entry.cgi
     APIVIDEOSTMS SYNO.SurveillanceStation.VideoStream
     APIVIDEOSTMSMAXVER 1
     APIVIDEOSTMSPATH SurveillanceStation/videoStreaming.cgi
     CREDENTIALS ********
     HLSSTREAM  inactive
     LOGINRETRIES 1
     OLDPTZHOME
     OLDVALPOLL 0
     OLDVALPOLLNOLOGGING 0
     PACKAGE    main
     RECTIME_DEF 15
     SID        gzwJkZc3W18zI1760NEN755702
     SNAPLIMIT  0
     TOTALCNT   0
     VERSION    9.2.2
     SVSVERSION:
       BUILD      6222
       MAJOR      8
       MINOR      2
       SMALL      7
   READINGS:
     2020-05-24 16:38:51   Error           none
     2020-05-24 16:38:51   Errorcode       none
     2020-05-24 15:07:37   HomeModeState   off
     2020-05-24 15:07:38   LastLogEntry    2020-05-24 14:56:28 - Information - Camera [Kamera Poolalarm] connection was restored.
     2020-05-24 15:07:37   LastUpdateTime  2020-05-24 / 15:07:37
     2020-05-24 15:08:03   NumberAutocreatedCams 6
     2020-05-24 16:38:24   PollState       Inactive
     2020-05-24 16:38:51   SVScustomPortHttp 9900
     2020-05-24 16:38:51   SVSlicenseNumber 6
     2020-05-24 16:38:51   SVSuserPriv     Admin
     2020-05-24 16:38:51   SVSversion      8.2.7-6222
     2020-05-24 16:38:51   compstate       true
     2020-05-24 16:38:24   state           initialized
Attributes:
   disable    0
   room       SSCAM
   webCmd     homeMode
   webCmdLabel HomeMode


Gruß
Michael

DS_Starter

Danke, das sieht erstmal ganz ok aus. Ich versuche es bei mir mal nachzustellen.
Wie heißen denn deine Kameras in der Synology Surveillance Station ?
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Frazzor

Hallo Heiko,

also :
Kamera Sued
Kamera Vorne
Kamera Hühnerstall
Kamera West
Kamera Poolalarm
PZT Cam West

Gruß
Michael

DS_Starter

Also ich habe es bei mir durchgetestet. Das Autorcreate funktioniert einwandfrei.
Die Leerzeichen in den Kameranamen sind nicht gut.

Verwende statt dessen _ , zB.:

Kamera_Sued
Kamera_Vorne
Kamera_Hühnerstall
Kamera_West
Kamera_Poolalarm
PZT_Cam_West

Dann nochmal autoreate. Dann wird es flutschen.  ;)
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter