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

TNT0068

Hallo zusammen,
ich habe mir nun SScam auch eingerichtet. Ich möchte mir gerne die Snaps automatisch anzeigen lassen die meine DiskStation erzeugt. Snaps die ich durch FHEM auslöse klappt bestens. Aber irgendwie fehlt mir da was, ich weiß bloß nicht wo. Wenn ich hier in dem Thread etwas überlesen habe dann tut es mir leid :( und steinigt mich bitte nicht gleich :)

List Cam:
Internals:
   CAMID      12
   CAMNAME    Kueche
   COMPATIBILITY 8.2.5
   CREDENTIALS Set
   DEF        Kueche 192.168.10.3 5000
   FUUID      5d3ab9ce-f33f-0b0b-6da9-d70fe7df7d1dd26d
   FVERSION   49_SSCam.pm:v8.16.2-s19846/2019-07-17
   MODEL      D-Link - DCS-5222L
   NAME       SSCam.Kueche
   NR         494
   OPMODE     getsnapgallery
   PROTOCOL   http
   SERVERADDR 192.168.10.3
   SERVERPORT 5000
   STATE      off
   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 6
     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 T6KzRoiy[KRuhGKzVEfA
     HLSSTREAM  inactive
     KEYWORD    Kueche
     LOGINRETRIES 0
     OLDPTZHOME goPreset home
     OLDVALPOLL 180
     OLDVALPOLLNOLOGGING 0
     PACKAGE    main
     RECTIME_DEF 15
     SID        1DPHqN8aYrGws1490MHN832101
     SNAPIMGSIZE 1
     SNAPLAG    60
     SNAPLIMIT  3
     SNAPNUMCOUNT 1
     STMKEYMJPEGHTTP http://192.168.10.3:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mjpeg&cameraId=12&StmKey="6faf51bd05be6340c2b0634f1ea1a056"
     STMKEYMXPEGHTTP http://192.168.10.3:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mxpeg&cameraId=12&StmKey="6faf51bd05be6340c2b0634f1ea1a056"
     STMKEYUNICST rtsp://syno:6faf51bd05be6340c2b0634f1ea1a056@192.168.10.3:554/Sms=12.unicast
     STMKEYUNICSTOVERHTTP rtsp://192.168.10.3:5000/webman/3rdparty/SurveillanceStation/cgi/rtsp.cgi?Sms=12.unicast&DsId=0&StmKey=6faf51bd05be6340c2b0634f1ea1a056
     STRMDETAIL
     STRMDEV    SSCamSTRM.SSCam.Kueche.mjpeg
     STRMROOM   
     TOTALCNT   11
     VERSION    8.16.2
     ALLPATROLS:
     ALLPRESETS:
       home       -1
     SVSVERSION:
       BUILD      5850
       MAJOR      8
       MINOR      2
       SMALL      5
   READINGS:
     2019-07-29 13:06:20   Availability    enabled
     2019-07-29 13:06:20   CamAudioType    Unknown
     2019-07-29 13:06:20   CamEventNum     1032
     2019-07-29 13:06:20   CamExposureControl Auto
     2019-07-29 13:06:20   CamExposureMode Auto
     2019-07-29 13:06:20   CamIP           192.168.10.162
     2019-07-29 13:06:20   CamLastRec      20190729PM/Kueche-20190729-122820-1564396100.mp4
     2019-07-29 13:06:20   CamLastRecId    363996
     2019-07-29 13:06:20   CamLastRecTime  2019-07-29 / 12:28:20 - 12:28:38
     2019-07-29 13:06:20   CamLiveFps      10
     2019-07-29 13:06:20   CamLiveMode     Liveview from DS
     2019-07-29 13:06:20   CamLiveQuality  5
     2019-07-29 13:06:20   CamLiveResolution 640x352
     2019-07-29 13:06:20   CamLiveStreamNo 1
     2019-07-29 13:06:20   CamModel        DCS-5222L
     2019-07-29 13:06:22   CamMotDetSc     SVS, sensitivity: 90, threshold: 6
     2019-07-29 13:06:20   CamNTPServer    Surveillance Station
     2019-07-29 13:06:20   CamPort         80
     2019-07-29 13:06:20   CamPreRecTime   5
     2019-07-29 13:06:20   CamPtSpeed      3
     2019-07-29 13:06:20   CamRecShare     surveillance
     2019-07-29 13:06:20   CamRecVolume    /volume3
     2019-07-29 13:06:22   CamStreamFormat MJPEG
     2019-07-29 13:06:20   CamVendor       D-Link
     2019-07-29 13:06:20   CamVideoFlip    false
     2019-07-29 13:06:20   CamVideoMirror  false
     2019-07-29 13:06:20   CamVideoRotate  false
     2019-07-29 13:06:20   CamVideoType    MJPEG
     2019-07-29 13:06:20   CamblPresetSpeed false
     2019-07-29 13:06:20   CapAudioOut     false
     2019-07-29 13:06:20   CapChangeSpeed  false
     2019-07-29 13:06:20   CapPIR          true
     2019-07-29 13:06:20   CapPTZAbs       true
     2019-07-29 13:06:20   CapPTZAutoFocus false
     2019-07-29 13:06:20   CapPTZDirections 32
     2019-07-29 13:06:20   CapPTZFocus     false
     2019-07-29 13:06:20   CapPTZHome      true
     2019-07-29 13:06:20   CapPTZIris      false
     2019-07-29 13:06:20   CapPTZObjTracking false
     2019-07-29 13:06:20   CapPTZPan       support step operation
     2019-07-29 13:06:20   CapPTZPresetNumber 10
     2019-07-29 13:06:20   CapPTZTilt      support step operation
     2019-07-29 13:06:20   CapPTZZoom      false
     2019-07-29 13:06:20   DeviceType      PTZ
     2019-07-29 13:06:24   Error           none
     2019-07-29 13:06:24   Errorcode       none
     2019-07-29 13:06:24   LastSnapFilename Kueche-20190729-1150334210.jpg
     2019-07-29 13:06:24   LastSnapId      26
     2019-07-29 13:06:24   LastSnapTime    2019-07-29 / 11:50:33
     2019-07-29 13:06:20   LastUpdateTime  2019-07-29 / 13:06:20
     2019-07-29 13:06:21   Patrols         
     2019-07-29 13:06:19   PollState       Active - next time: 13:09:19
     2019-07-29 13:06:21   PresetHome      home
     2019-07-29 13:06:21   Presets         home
     2019-07-29 13:06:20   Record          Stop
     2019-07-29 13:06:22   SVScustomPortHttp 9900
     2019-07-29 13:06:22   SVScustomPortHttps 9901
     2019-07-29 13:06:22   SVSlicenseNumber 4
     2019-07-29 13:06:22   SVSuserPriv     Manager
     2019-07-29 13:06:22   SVSversion      8.2.5-5850
     2019-07-29 13:06:21   StmKey          "6faf51bd05be6340c2b0634f1ea1a056"
     2019-07-29 13:06:20   UsedSpaceMB     9.841
     2019-07-29 13:06:20   VideoFolder     /volume3/surveillance/Kueche
     2019-07-29 13:06:22   compstate       true
     2019-07-29 13:06:24   state           off
Attributes:
   devStateIcon .*isable.*:set_off .*nap:li_wht_on
   httptimeout 20
   icon       it_camera
   pollcaminfoall 180
   pollnologging 0
   ptzPanel_row00 move upleft:CAMUPLEFTFAST.png,:CAMBLANK.png,move up:CAMUPFAST.png,:CAMBLANK.png,move upright:CAMUPRIGHTFAST.png
   ptzPanel_row01 :CAMBLANK.png,move upleft 0.5:CAMUPLEFT.png,move up 0.5:CAMUP.png,move upright 0.5:CAMUPRIGHT.png
   ptzPanel_row02 move left:CAMLEFTFAST.png,move left 0.5:CAMLEFT.png,goPreset home:CAMHOME.png,move right 0.5:CAMRIGHT.png,move right:CAMRIGHTFAST.png
   ptzPanel_row03 :CAMBLANK.png,move downleft 0.5:CAMDOWNLEFT.png,move down 0.5:CAMDOWN.png,move downright 0.5:CAMDOWNRIGHT.png
   ptzPanel_row04 move downleft:CAMDOWNLEFTFAST.png,:CAMBLANK.png,move down:CAMDOWNFAST.png,:CAMBLANK.png,move downright:CAMDOWNRIGHTFAST.png
   room       Cam
   session    SurveillanceStation
   snapGalleryBoost 1
   snapGallerySize Icon
   userattr   ptzPanel_Home:home ptzPanel_iconPath ptzPanel_iconPrefix ptzPanel_row00 ptzPanel_row01 ptzPanel_row02 ptzPanel_row03 ptzPanel_row04 ptzPanel_row05 ptzPanel_row06 ptzPanel_row07 ptzPanel_row08 ptzPanel_row09 ptzPanel_use:0,1
   webCmd     on:off:snap:enable:disable:runView:stopView


List SScam Modul:
Internals:
   CAMNAME    SVS
   COMPATIBILITY 8.2.5
   CREDENTIALS Set
   DEF        SVS 192.168.10.3
   FUUID      5d3aa0d8-f33f-0b0b-09da-0dc05cab2bb3252b
   FVERSION   49_SSCam.pm:v8.16.2-s19846/2019-07-17
   MODEL      SVS
   NAME       CamServer
   NR         491
   OPMODE     getsvsinfo
   PROTOCOL   http
   SERVERADDR 192.168.10.3
   SERVERPORT 5000
   STATE      polling
   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 6
     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 T6KzRoiy[KRuhGKzVEfA
     HLSSTREAM  inactive
     LOGINRETRIES 0
     OLDPTZHOME
     OLDVALPOLL 100
     OLDVALPOLLNOLOGGING 0
     PACKAGE    main
     RECTIME_DEF 15
     SID        QD6HDlqIN45qo1490MHN832101
     SNAPLIMIT  0
     TOTALCNT   0
     VERSION    8.16.2
     SVSVERSION:
       BUILD      5850
       MAJOR      8
       MINOR      2
       SMALL      5
   READINGS:
     2019-07-29 13:10:01   Error           none
     2019-07-29 13:10:01   Errorcode       none
     2019-07-29 13:10:01   HomeModeState   off
     2019-07-29 13:10:01   LastLogEntry    2019-07-28 07:59:17 - Information - Camera [Schlafzimmer] connection was restored.
     2019-07-29 13:10:01   LastUpdateTime  2019-07-29 / 13:10:01
     2019-07-26 10:29:02   NumberAutocreatedCams 3
     2019-07-29 13:10:00   PollState       Active - next time: 13:11:40
     2019-07-29 13:10:01   SVScustomPortHttp 9900
     2019-07-29 13:10:01   SVScustomPortHttps 9901
     2019-07-29 13:10:01   SVSlicenseNumber 4
     2019-07-29 13:10:01   SVSuserPriv     Manager
     2019-07-29 13:10:01   SVSversion      8.2.5-5850
     2019-07-29 13:10:01   compstate       true
     2019-07-29 13:10:00   state           polling
Attributes:
   pollcaminfoall 100
   room       Cam
   session    SurveillanceStation
   webCmd     homeMode
   webCmdLabel HomeMode


List: SnapGallery
Internals:
   DEF        {SSCam_composegallery('SSCam.Kueche','SSCamSTRM.SSCam.Kueche.snapgallery','snapgallery')}
   FUUID      5d3dca2e-f33f-0b0b-ec50-9a80b672e10793e2
   FVERSION   49_SSCamSTRM.pm:v2.7.0-s19837/2019-07-15
   LINK       {SSCam_composegallery('SSCam.Kueche','SSCamSTRM.SSCam.Kueche.snapgallery','snapgallery')}
   MODEL      snapgallery
   NAME       SSCamSTRM.SSCam.Kueche.snapgallery
   NR         499
   PARENT     SSCam.Kueche
   STATE      initialized
   TYPE       SSCamSTRM
   HELPER:
     FW         WEBphone
     PACKAGE    main
     VERSION    2.7.0
   READINGS:
     2019-07-29 09:18:02   parentState     off
     2019-07-29 10:00:09   state           initialized
Attributes:
   room       SSCam


Gruß und danke
Homematic HMLAN HMUSB Heizung, Strom und Licht , Vuduo2, Kodi, Hue, Logitech Harmony Hub, Alexa

DS_Starter

Hallo TNT0068,

hier wird niemand gesteinigt  :D
Erstmal willkommen bei SSCam ... der Thread ist inzwischen sehr lang geworden, den kann keiner mehr lesen außer über die Suche etwas finden.

Also es ist so, dass das Modul bzw. FHEM ja nicht mitbekommt wenn die Surveillance Station (SVS) einen Schnappschuss auslöst, sofern er nicht durch FHEM initiiert ist.
Erst nach der Zeit "pollcaminfoall", bei dir 180 Sekunden für die Cam, werden die Snaps mit abgerufen. Die Anzahl wird durch snapGalleryNumber bestimmt (default 3).

Das heißt erst nach 3 Minuten würdest du sie in der Galerie sehen. Soweit sollte es jetzt funktionieren !?

Jetzt kann man der SVS auch mitteilen in FHEM eine Aktion anzustossen wenn ein Snap (nicht durch SSCam) getriggert wurde. Dazu kannst du den Regeleditor in der SVS verwenden. Im Wiki habe ich es hier beschrieben:
https://wiki.fhem.de/wiki/SSCAM_-_Steuerung_von_Kameras_in_Synology_Surveillance_Station#Aktionen_mit_dem_Aktionsregeleditor_der_Surveillance_Station_ausl.C3.B6sen

Das Kommando wäre dann aber dieses hier

http://<IP-FHEM>:<Port-FHEM>/fhem?cmd=get%20Kueche%20snapinfo

Das Beispiel ist schon etwas älter. Sofern du im FHEMWEB csrfToken einsetzt, musst du den Aufruf noch entsprechnd erweitern.

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

TNT0068

Zitat von: DS_Starter am 29 Juli 2019, 14:40:48
Hallo TNT0068,

hier wird niemand gesteinigt  :D
Erstmal willkommen bei SSCam ... der Thread ist inzwischen sehr lang geworden, den kann keiner mehr lesen außer über die Suche etwas finden.

Also es ist so, dass das Modul bzw. FHEM ja nicht mitbekommt wenn die Surveillance Station (SVS) einen Schnappschuss auslöst, sofern er nicht durch FHEM initiiert ist.
Erst nach der Zeit "pollcaminfoall", bei dir 180 Sekunden für die Cam, werden die Snaps mit abgerufen. Die Anzahl wird durch snapGalleryNumber bestimmt (default 3).

Das heißt erst nach 3 Minuten würdest du sie in der Galerie sehen. Soweit sollte es jetzt funktionieren !?

Jetzt kann man der SVS auch mitteilen in FHEM eine Aktion anzustossen wenn ein Snap (nicht durch SSCam) getriggert wurde. Dazu kannst du den Regeleditor in der SVS verwenden. Im Wiki habe ich es hier beschrieben:
https://wiki.fhem.de/wiki/SSCAM_-_Steuerung_von_Kameras_in_Synology_Surveillance_Station#Aktionen_mit_dem_Aktionsregeleditor_der_Surveillance_Station_ausl.C3.B6sen

Das Kommando wäre dann aber dieses hier

http://<IP-FHEM>:<Port-FHEM>/fhem?cmd=get%20Kueche%20snapinfo

Das Beispiel ist schon etwas älter. Sofern du im FHEMWEB csrfToken einsetzt, musst du den Aufruf noch entsprechnd erweitern.

Grüße,
Heiko

Hallo Heiko,
so hatte ich mir das gedacht mit dem Poll und auch gelesen leider klappt das bei mir nicht. Mein SVS schickt mir bei erkennung direkt per Mail immer ein Snapshot. Ich schaue mir das mit dem regeleditor an.
Danke für deine schnelle Hilfe.
Mein SVS läuft schon seit Jahren einwandfrei und kurz vor dem Urlaub möchte ich wenig umstellen. nachdem Urlaub werde ich dann anfangen FHEM als Chef zunutzen.

Ist wirklich ein Klasse Modul und mittlerweile sehr umfangreich was ich bisher gesehen habe. Vor allem scheint der Home Status sehr einfach zusein(presence und set on/off) bei DScam mit SVS und geofancy laufen 80% der An/Ab wesenheit überhaupt nicht und zieht den Akku vom Handy leer.

Vielen Dank(ich lege dann meine Steinschlagschutzrüstung wieder ab)

Gruß
Micha

Homematic HMLAN HMUSB Heizung, Strom und Licht , Vuduo2, Kodi, Hue, Logitech Harmony Hub, Alexa

DS_Starter

Zitatso hatte ich mir das gedacht mit dem Poll und auch gelesen leider klappt das bei mir nicht.

Dann setze mal verbose 4 in der Cam und warte einen Pollzyklus ab. Danach mal posten was im Log steht. Denn das muß klappen mit dem Poling.

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

TNT0068

2019.07.29 15:33:26 4: SSCam.Kueche - Streaming devs of type "lastsnap": SSCamSTRM.SSCam.Kueche.lastsnap
2019.07.29 15:33:26 3: SSCam.Kueche - Polling now: 15:33:26 , next Polling: 15:36:26
2019.07.29 15:33:29 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:29 4: SSCam.Kueche - ###    start cam operation geteventlist         
2019.07.29 15:33:29 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:29 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:29 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:29 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:29 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:29 4: SSCam.Kueche - --- Begin Function geteventlist nonblocking ---
2019.07.29 15:33:29 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Event"&version="5"&method="List"&cameraIds="12"&locked="0"&blIncludeSnapshot="false"&reason=""&limit="2"&includeAllCam="false"&_sid="1DPHqN8aYrGws1490MHN832101"
2019.07.29 15:33:29 3: SSCam.Kueche - Query eventlist of camera Kueche retrieved
2019.07.29 15:33:30 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:30 4: SSCam.Kueche - ###    start cam operation getsvsinfo         
2019.07.29 15:33:30 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:30 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:30 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:30 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:30 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:30 4: SSCam.Kueche - --- Begin Function getsvsinfo nonblocking ---
2019.07.29 15:33:30 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Info"&version="6"&method="GetInfo"&_sid="1DPHqN8aYrGws1490MHN832101"
2019.07.29 15:33:30 3: SSCam.Kueche - Informations related to Surveillance Station retrieved
2019.07.29 15:33:30 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:30 4: SSCam.Kueche - ###    start cam operation getstreamformat         
2019.07.29 15:33:30 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:30 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:30 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:30 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:30 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:30 4: SSCam.Kueche - --- Begin Function getstreamformat nonblocking ---
2019.07.29 15:33:30 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/SurveillanceStation/videoStreaming.cgi?api=SYNO.SurveillanceStation.VideoStream&version=1&method=Query&cameraId=12&_sid=1DPHqN8aYrGws1490MHN832101
2019.07.29 15:33:31 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:31 4: SSCam.Kueche - ###    start cam operation getsnapgallery         
2019.07.29 15:33:31 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:31 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:31 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:31 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:31 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:31 4: SSCam.Kueche - --- Begin Function getsnapgallery nonblocking ---
2019.07.29 15:33:31 4: SSCam.Kueche - Call getsnapinfo with params: Image numbers => 3, Image size => 1, Keyword => Kueche
2019.07.29 15:33:31 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.SnapShot"&method="List"&version="1"&keyword="Kueche"&imgSize="1"&limit="3"&_sid="1DPHqN8aYrGws1490MHN832101"
2019.07.29 15:33:31 3: SSCam.Kueche - Snapinfos of camera Kueche retrieved
2019.07.29 15:33:31 4: SSCam.Kueche - Snap [0]: ID => 26, File => Kueche-20190729-1150334210.jpg, Created => 2019-07-29 / 11:50:33
2019.07.29 15:33:31 4: SSCam.Kueche - Snap [1]: ID => 25, File => Kueche-20190729-0958108742.jpg, Created => 2019-07-29 / 09:58:10
2019.07.29 15:33:31 4: SSCam.Kueche - Snap [2]: ID => 22, File => Kueche-20190729-0936139789.jpg, Created => 2019-07-29 / 09:36:13
2019.07.29 15:33:31 4: SSCam.Kueche - Snap '0' added to gallery hash: ID => 26, File => Kueche-20190729-1150334210.jpg, Created => 2019-07-29 / 11:50:33
2019.07.29 15:33:31 4: SSCam.Kueche - Snap '1' added to gallery hash: ID => 25, File => Kueche-20190729-0958108742.jpg, Created => 2019-07-29 / 09:58:10
2019.07.29 15:33:31 4: SSCam.Kueche - Snap '2' added to gallery hash: ID => 22, File => Kueche-20190729-0936139789.jpg, Created => 2019-07-29 / 09:36:13
2019.07.29 15:33:31 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:31 4: SSCam.Kueche - ###    start cam operation getmotionenum         
2019.07.29 15:33:31 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:31 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:31 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:31 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:31 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:31 4: SSCam.Kueche - --- Begin Function getmotionenum nonblocking ---
2019.07.29 15:33:31 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera.Event"&version="1"&method="MotionEnum"&camId="12"&_sid="1DPHqN8aYrGws1490MHN832101"
2019.07.29 15:33:34 3: SSCam.Kueche - Enumerate motion detection parameters of camera Kueche retrieved
2019.07.29 15:33:36 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:36 4: SSCam.Kueche - ###    start cam operation Getcaminfo         
2019.07.29 15:33:36 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:36 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:36 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:36 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:36 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:36 4: SSCam.Kueche - --- Begin Function Getcaminfo nonblocking ---
2019.07.29 15:33:36 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera"&version="8"&method="GetInfo"&cameraIds="12"&deviceOutCap="true"&streamInfo="true"&ptz="true"&basic="true"&camAppInfo="true"&optimize="true"&fisheye="true"&eventDetection="true"&_sid="1DPHqN8aYrGws1490MHN832101"
2019.07.29 15:33:36 3: SSCam.Kueche - Informations of camera Kueche retrieved
2019.07.29 15:33:38 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:38 4: SSCam.Kueche - ###    start cam operation Getcapabilities         
2019.07.29 15:33:38 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:38 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:38 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:38 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:38 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:38 4: SSCam.Kueche - --- Begin Function Getcapabilities nonblocking ---
2019.07.29 15:33:38 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=8&method="GetCapabilityByCamId"&cameraId=12&_sid="1DPHqN8aYrGws1490MHN832101"
2019.07.29 15:33:38 3: SSCam.Kueche - Capabilities of camera Kueche retrieved
2019.07.29 15:33:40 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:40 4: SSCam.Kueche - ###    start cam operation Getptzlistpreset         
2019.07.29 15:33:40 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:40 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:40 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:40 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:40 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:40 4: SSCam.Kueche - --- Begin Function Getptzlistpreset nonblocking ---
2019.07.29 15:33:40 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.PTZ&version=5&method=ListPreset&cameraId=12&_sid="1DPHqN8aYrGws1490MHN832101"
2019.07.29 15:33:40 3: SSCam.Kueche - PTZ Presets of camera Kueche retrieved
2019.07.29 15:33:42 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:42 4: SSCam.Kueche - ###    start cam operation Getptzlistpatrol         
2019.07.29 15:33:42 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:42 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:42 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:42 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:42 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:42 4: SSCam.Kueche - --- Begin Function Getptzlistpatrol nonblocking ---
2019.07.29 15:33:42 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.PTZ&version=5&method=ListPatrol&cameraId=12&_sid="1DPHqN8aYrGws1490MHN832101"
2019.07.29 15:33:42 3: SSCam.Kueche - PTZ Patrols of camera Kueche retrieved
2019.07.29 15:33:44 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:44 4: SSCam.Kueche - ###    start cam operation getStmUrlPath         
2019.07.29 15:33:44 4: SSCam.Kueche - ####################################################
2019.07.29 15:33:44 4: SSCam.Kueche - --- Begin Function SSCam_getapisites nonblocking ---
2019.07.29 15:33:44 4: SSCam.Kueche - API hashvalues already set - ignore get apisites
2019.07.29 15:33:44 4: SSCam.Kueche - --- Begin Function SSCam_getcamid nonblocking ---
2019.07.29 15:33:44 4: SSCam.Kueche - CAMID already set - ignore get camid
2019.07.29 15:33:44 4: SSCam.Kueche - --- Begin Function getStmUrlPath nonblocking ---
2019.07.29 15:33:44 4: SSCam.Kueche - Call-Out now: http://192.168.10.3:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera"&method="GetLiveViewPath"&version=9&idList="12"&_sid="1DPHqN8aYrGws1490MHN832101"
2019.07.29 15:33:44 3: SSCam.Kueche - Stream-URLs of camera Kueche retrieved


Das sind alles die Snaps die ich über FHEM ausgelöst habe. Die Synology hat mir aber zwischendurch snaps per Mail geschickt gerade auch wieder um 15:27
Homematic HMLAN HMUSB Heizung, Strom und Licht , Vuduo2, Kodi, Hue, Logitech Harmony Hub, Alexa

DS_Starter

Kannst mal die Files in dem Snapordner der Küche direkt auf der Synology mit

ls -ltra

anzeigen und posten. Die neuesten 20 sollten reichen.

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

TNT0068

puhhh sehr Interessant. Ich habe mir jetzt mal SVS direkt aufgerufen und gesehen das er dort unter /volume3/surveillance/ direkt die Snapschüsse ablegt.
Dort liegen auch nicht mehr Snapschüsse als dein Modul anzeigt aber er schickt mir Mails mit Snapschüssen. Ich habe das SVS schon solange und immer ohne Probs gelaufen das ich mir das nochmal genauer anschauen muss was ich damals "gebastelt" habe.
Somit steht für mich fest, es ist kein Problem deines Moduls bzw FHEM sondern eine Konfiguration auf meiner Synology(früher habe/musste ich viel über Cmd machen, da gab es noch nicht soviele Wizzards.

Ich schaue mir das mal in Ruhe an und gebe dann hier die Lösung bekannt

Vielen Dank für deine tolle Hilfe 
Homematic HMLAN HMUSB Heizung, Strom und Licht , Vuduo2, Kodi, Hue, Logitech Harmony Hub, Alexa

DS_Starter

Gerne 🙂,
Ich weiss nicht mehr wann, aber Syno hatte mal die Ablagestruktur geändert auf die heutige Form. Wenn du die SVS schon kange nutzt, hattest du vllt. vor dieser Zeit begonnen.

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

TNT0068

So habe mir nun meine Konfig mal genauer angeschaut. Meine SVS erkennt eine Bewegung nimmt auf und sendet dann ein Snap über Mail. Diese Snapschüsse werden nicht gespeichert.
Ich habe nun Aktionsregeln erstellt die bei einer erkannten Bewegung und Auslösung Snapschüsse auch ablegen. Leider kann man da wieder keine Gruppen nutzen musste das für jede Cam extra machen.
-OT- Diese Gruppen Funktion bei SVS hat für mich immer weniger Sinn

Homematic HMLAN HMUSB Heizung, Strom und Licht , Vuduo2, Kodi, Hue, Logitech Harmony Hub, Alexa

SeppiDeluxe

Guten Morgen!

Ich habe das Modul in der letzten stabilen Version (last Update) im Einsatz.

2 Kamera bekomme ich im noparam Modus (Port: 5000) zum laufen und er halt dann einen SessionToken. Darauf musst eich zurückgreifen, da ich bei dem ParaSet Port: 9XXX (meine Individualeinstellung auf der DS) und HTTPS dann die Meldung bekomme.

Login of User camadm unsuccessful. Code: 405 - method not allowed - maybe the password is too long - try again

Test mit dem API String - auch Passwort im Klartext und Quoting geben immer einen JSON - 405 / result false zurück.

Ich habe dann etwas weitergetestet und einfach sonderzeichenfreie Passwörter getestet - selbes Ergebnis. Wo ich mich noch nicht eingelesen habe ist in die API Struktur - deshalb meine folgenden Fragen:

1. Hat jemand mit HTTPS und Individuealport schon Erfolg
2. Könnte derjenige mit den API Aufruf posten - bitte IP und Passwd String löschen
3. Warum funktioniert der Standardaufruf wird hier ohne Credentials gearbeitet? (meine aktueller Workaround, da der SessionToken mich bis zum timeout / Neustart rüberrettet)

Vielen Dank

Sebastian

SeppiDeluxe

Hallo Heiko,

nachdem ich mich in die API Doku eingelesen habe und auf der Basis noch einige Test durchgeführt habe, scheint das Problem durch das setzen des session Parameters lösbar zu sein.

In dem Moment wo ich der LoginSession einen Namen zuteile funktioniert es. Ohne gleicher Fehler wie immer. Kannst du das bestätigen bzw.  nachstellen?

Gibt es aus deiner Sicht Gründe dagegen den SessionNamen in der API Urlaub einzuführen.

Danke Sebastian

DS_Starter

Hallo Sebastian,

ich habe aus meinem Urlaub heraus mal den Aufruf mit https und dem custom Port 9901 probiert und hat einwandfrei geklappt.
Dabei ist das Attribut session auf SurveillanceStation gesetzt. Der Port 9901 ist ja auch speziell für die SVS als Userport gesetzt.

Nach meinem Urlaub können wir uns das nochmal vornehmen, aber was meinst du mit

ZitatIn dem Moment wo ich der LoginSession einen Namen zuteile funktioniert es.

Das Attr session gibt es ja schon.

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

shaddi

Hallo,

kann es sein, dass der Telegram-Teil keine Gruppen als Peer unterstützt? Sobald ich eine Gruppen-ID eintrage (negative Zahl) kommt nur ein "FAILED peer not found"

DS_Starter

Hallo shaddi,

Ich nutze routinen vom telegrambot zur integration. Was dort möglich ist, sollte auch in sscam funktionieren, es sei denn ich habe etwas übersehen bzw. eine Weiterentwicklung noch nicht nachgezogen.
Das kann ich mir auch nach meinem Urlaub mit ansehen.
Wie versendet man nachrichten an eine Gruppe im telegrambot ?

Grüsse,
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

shaddi

Genauso wie eine Nachricht direkt an Peers. Die Peer-IDs sind in dem Fall aber negativ. z.B. "@12345" als Peer und "@-123456" als Gruppe.
Wenn ich das direkt im TelegramBot einkippe, klappt das ohne Probleme. Ich glaube da gibt es irgendwas auf dem Weg was das vermurkst...