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

Guten Morgen,

der Fehler kommt von der SVS. Manchmal habe ich den auch. Vielleicht werde ich mal bei Synology nachfragen.
Der sollte aber nicht dauerhaft vorkommen, zumindest nicht wenn die credentials stimmen.
Trifft das bei dir so zu ?

Grüße
Heiko
Proxmox+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

Knuspertaler

Name und Passwort stimmen, hatte ich aber auch nochmal neu gesetzt - fehler bleibt, der Rest geht ja auch, sollte also passen !

DS_Starter

#347
Ok, kommt der Fehler nur bei dieser einen Funktion ?

Edit: sorry, du schreibst ja dass der Rest auch funktioniert. Mach mal bitte ein verbose 4 Log wenn du die Funktion get snapfilename ausführst und stelle das bitte zur Verfügung.
Proxmox+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

Knuspertaler

ja, scheint so, der Rest geht ohne Fehler
2016.04.28 11:51:47 3: Foscam_outdoor2 - Query event list of outdoor2 successfully done
2016.04.28 11:52:19 3: Foscam_outdoor2 - Informations related to Surveillance Station retrieved successfully
2016.04.28 11:52:41 3: Foscam_outdoor2 - Query event list of outdoor2 successfully done
2016.04.28 11:53:07 1: Foscam_outdoor2 - ERROR - Operation getsnapfilename of Camera outdoor2 was not successful. Errorcode: 105 - Insufficient user privilege

DS_Starter

Verwendest du eine DSM-Session oder eine SVS-session ?

Wie gesagt bitte mal ein verbose 4 Log anhängen und ein list de Kamera wäre auch hilfreich.

Grüße
Heiko
Proxmox+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

Knuspertaler

#350
Verbose 4:
2016.04.28 12:55:23 4: Foscam_outdoor2 - Get filename of present Snap-ID 
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- Begin Function getapisites nonblocking ---
2016.04.28 12:55:23 4: Foscam_outdoor2 - Call-Out now: http://192.168.1.23:5000/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.Info,SYNO.SurveillanceStation.Camera.Event,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.VideoStreaming,SYNO.SurveillanceStation.ExternalEvent,SYNO.SurveillanceStation.Streaming
2016.04.28 12:55:23 4: Foscam_outdoor2 - JSON returned: $VAR1 = {
          'data' => {
                      'SYNO.SurveillanceStation.ExternalEvent' => {
                                                                    'maxVersion' => 1,
                                                                    'requestFormat' => 'JSON',
                                                                    'path' => '_______________________________________________________entry.cgi',
                                                                    'minVersion' => 1
                                                                  },
                      'SYNO.SurveillanceStation.Camera.Event' => {
                                                                   'maxVersion' => 1,
                                                                   'requestFormat' => 'JSON',
                                                                   'path' => '_______________________________________________________entry.cgi',
                                                                   'minVersion' => 1
                                                                 },
                      'SYNO.SurveillanceStation.VideoStreaming' => {
                                                                     'requestFormat' => 'JSON',
                                                                     'path' => '_______________________________________________________entry.cgi',
                                                                     'minVersion' => 1,
                                                                     'maxVersion' => 1
                                                                   },
                      'SYNO.API.Auth' => {
                                           'minVersion' => 1,
                                           'path' => 'auth.cgi',
                                           'maxVersion' => 4
                                         },
                      'SYNO.SurveillanceStation.ExternalRecording' => {
                                                                        'requestFormat' => 'JSON',
                                                                        'minVersion' => 1,
                                                                        'path' => '_______________________________________________________entry.cgi',
                                                                        'maxVersion' => 2
                                                                      },
                      'SYNO.SurveillanceStation.Info' => {
                                                           'maxVersion' => 5,
                                                           'requestFormat' => 'JSON',
                                                           'minVersion' => 1,
                                                           'path' => '_______________________________________________________entry.cgi'
                                                         },
                      'SYNO.SurveillanceStation.Event' => {
                                                            'minVersion' => 1,
                                                            'path' => '_______________________________________________________entry.cgi',
                                                            'requestFormat' => 'JSON',
                                                            'maxVersion' => 5
                                                          },
                      'SYNO.SurveillanceStation.Streaming' => {
                                                                'minVersion' => 1,
                                                                'path' => 'SurveillanceStation/streaming.cgi',
                                                                'maxVersion' => 2
                                                              },
                      'SYNO.SurveillanceStation.SnapShot' => {
                                                               'requestFormat' => 'JSON',
                                                               'path' => '_______________________________________________________entry.cgi',
                                                               'minVersion' => 1,
                                                               'maxVersion' => 1
                                                             },
                      'SYNO.SurveillanceStation.PTZ' => {
                                                          'maxVersion' => 4,
                                                          'requestFormat' => 'JSON',
                                                          'path' => '_______________________________________________________entry.cgi',
                                                          'minVersion' => 1
                                                        },
                      'SYNO.SurveillanceStation.Camera' => {
                                                             'requestFormat' => 'JSON',
                                                             'path' => '_______________________________________________________entry.cgi',
                                                             'minVersion' => 1,
                                                             'maxVersion' => 8
                                                           }
                    },
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' )
        };

2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.API.Auth selected: auth.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.API.Auth selected: 4
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.ExternalRecording selected: entry.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.ExternalRecording selected: 2
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.Camera selected: entry.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.Camera: 8
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.SnapShot selected: entry.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.SnapShot: 1
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.PTZ selected: entry.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.PTZ: 4
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.Info selected: entry.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.Info: 5
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.Camera.Event selected: entry.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.Camera.Event: 1
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.Event selected: entry.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.Event: 5
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.VideoStreaming selected: entry.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.VideoStreaming: 1
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.ExternalEvent selected: entry.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.ExternalEvent selected: 1
2016.04.28 12:55:23 4: Foscam_outdoor2 - Path of SYNO.SurveillanceStation.Streaming selected: SurveillanceStation/streaming.cgi
2016.04.28 12:55:23 4: Foscam_outdoor2 - MaxVersion of SYNO.SurveillanceStation.Streaming selected: 2
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- End Function getapisites nonblocking ---
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- Begin Function serverlogin nonblocking ---
2016.04.28 12:55:23 4: Foscam_outdoor2 - Credentials read from RAM: admin xxxxxxx
2016.04.28 12:55:23 4: Foscam_outdoor2 - Call-Out now: http://192.168.1.23:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=4&method=Login&account=admin&passwd=xxxxx&format="sid"
2016.04.28 12:55:23 4: Foscam_outdoor2 - Credentials read from RAM: admin xxxxx
2016.04.28 12:55:23 4: Foscam_outdoor2 - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' ),
          'data' => {
                      'sid' => 'OCDnu82yCbHHQB3J4N01003',
                      'is_portal_port' => bless( do{\(my $o = 0)}, 'JSON::XS::Boolean' )
                    }
        };

2016.04.28 12:55:23 4: Foscam_outdoor2 - Login of User admin successful - SID: OCDnu82yCbHHQB3J4N01003
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- End Function serverlogin nonblocking ---
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- Begin Function getcamid nonblocking ---
2016.04.28 12:55:23 4: Foscam_outdoor2 - Call-Out now: http://192.168.1.23:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=8&method=List&basic=true&streamInfo=true&camStm=true&_sid="OCDnu82yCbHHQB3J4N01003"
2016.04.28 12:55:23 4: Foscam_outdoor2 - Detection Camid successful - outdoor2 ID: 3
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- End Function getcamid nonblocking ---
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- Begin Function cam: getsnapfilename nonblocking ---
2016.04.28 12:55:23 4: Foscam_outdoor2 - Call-Out now: http://192.168.1.23:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.SnapShot"&method="List"&version="1"&imgSize="0"&idList=" "&_sid="OCDnu82yCbHHQB3J4N01003"
2016.04.28 12:55:23 1: Foscam_outdoor2 - ERROR - Operation getsnapfilename of Camera outdoor2 was not successful. Errorcode: 105 - Insufficient user privilege
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- End Function cam: getsnapfilename nonblocking with error ---
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- Begin Function logout nonblocking ---
2016.04.28 12:55:23 4: Foscam_outdoor2 - Credentials read from RAM: admin xxxxx
2016.04.28 12:55:23 4: Foscam_outdoor2 - URL-Call: http://192.168.1.23:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=4&method=Logout&_sid=OCDnu82yCbHHQB3J4N01003
2016.04.28 12:55:23 4: Foscam_outdoor2 - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' )
        };

2016.04.28 12:55:23 4: Foscam_outdoor2 - Session of User admin has ended - SID: OCDnu82yCbHHQB3J4N01003 has been deleted
2016.04.28 12:55:23 4: Foscam_outdoor2 - --- End Function logout nonblocking ---


List:
Internals:
   CAMID      3
   CAMNAME    outdoor2
   CREDENTIALS Set
   DEF        outdoor2 192.168.1.23 5000
   NAME       Foscam_outdoor2
   NR         195
   OPMODE     getsnapfilename
   SERVERADDR 192.168.1.23
   SERVERPORT 5000
   STATE      Stop
   TYPE       SSCam
   Helper:
     ACTIVE     off
     APIAUTH    SYNO.API.Auth
     APIAUTHMAXVER 4
     APIAUTHPATH auth.cgi
     APICAM     SYNO.SurveillanceStation.Camera
     APICAMEVENT SYNO.SurveillanceStation.Camera.Event
     APICAMEVENTMAXVER 1
     APICAMEVENTPATH entry.cgi
     APICAMMAXVER 8
     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 2
     APIEXTRECPATH entry.cgi
     APIINFO    SYNO.API.Info
     APIPTZ     SYNO.SurveillanceStation.PTZ
     APIPTZMAXVER 4
     APIPTZPATH entry.cgi
     APISNAPSHOT SYNO.SurveillanceStation.SnapShot
     APISTM     SYNO.SurveillanceStation.Streaming
     APISTMMAXVER 2
     APISTMPATH SurveillanceStation/streaming.cgi
     APISVSINFO SYNO.SurveillanceStation.Info
     APISVSINFOMAXVER 5
     APISVSINFOPATH entry.cgi
     APITAKESNAPMAXVER 1
     APITAKESNAPPATH entry.cgi
     APIVIDEOSTM SYNO.SurveillanceStation.VideoStreaming
     APIVIDEOSTMMAXVER 1
     APIVIDEOSTMPATH entry.cgi
     CREDENTIALS \[WzdY5?dJ45SWLq
     OLDVALPOLLNOLOGGING 0
     RECTIME_DEF 15
     Svsversion:
       BUILD      4141
       MAJOR      7
       MINOR      1
   Readings:
     2016-04-28 12:54:59   Availability    enabled
     2016-04-28 11:52:41   CamEventNum     449
     2016-04-28 12:54:59   CamExposureControl Outdoor
     2016-04-28 12:54:59   CamExposureMode Auto
     2016-04-28 12:54:59   CamIP           192.168.1.221
     2016-04-28 11:52:41   CamLastRec      20160428AM/outdoor220160428-115028-1461837028.mp4
     2016-04-28 11:52:41   CamLastRecTime  28.04.2016 / 11:50:28 - 11:50:49
     2016-04-28 12:54:59   CamLiveMode     Liveview from DS
     2016-04-28 12:54:59   CamModel        FI9900P
     2016-04-28 08:13:58   CamMotDetSc     Camera, sensitivity: 58
     2016-04-28 12:54:59   CamPort         88
     2016-04-28 12:54:59   CamPreRecTime   5
     2016-04-28 12:54:59   CamPtSpeed      3
     2016-04-28 12:54:59   CamRecShare     surveillance
     2016-04-28 12:54:59   CamRecVolume    volume1
     2016-04-28 12:54:59   CamVendor       FOSCAM
     2016-04-28 12:54:59   CamVideoFlip    true
     2016-04-28 12:54:59   CamVideoMirror  true
     2016-04-28 12:54:59   CamblPresetSpeed false
     2016-04-28 12:55:00   CapAudioOut     false
     2016-04-28 12:55:00   CapChangeSpeed  false
     2016-04-28 12:55:00   CapPTZAbs       false
     2016-04-28 12:55:00   CapPTZAutoFocus false
     2016-04-28 12:55:00   CapPTZDirections 0
     2016-04-28 12:55:00   CapPTZFocus     false
     2016-04-28 12:55:00   CapPTZHome      false
     2016-04-28 12:55:00   CapPTZIris      false
     2016-04-28 12:55:00   CapPTZPan       false
     2016-04-28 12:55:00   CapPTZTilt      false
     2016-04-28 12:55:00   CapPTZZoom      false
     2016-04-28 12:54:59   DeviceType      Camera
     2016-04-28 12:55:23   Error           Insufficient user privilege
     2016-04-28 12:55:23   Errorcode       105
     2016-04-28 12:54:59   LastUpdateTime  28.04.2016 / 12:54:59
     2016-04-28 12:54:57   LiveStreamUrl
     2016-04-28 12:54:57   PollState       Inactive
     2016-04-28 12:54:59   Record          Stop
     2016-04-28 12:54:58   SVSlicenseNumber 2
     2016-04-28 12:54:58   SVSuserPriv     Admin
     2016-04-28 12:54:58   SVSversion      7.1-4141
     2016-04-28 12:54:59   UsedSpaceMB     2.621
     2016-04-28 12:54:59   VideoFolder     /volume1/surveillance/outdoor2
     2016-04-28 12:54:59   state           off
Attributes:
   alias      Haustuer
   devStateIcon .*isable:set_off .*nable:FS20.off .*nap:li_wht_on
   event-on-change-reading Record,Error,Errorcode,LastSnapId,Availability
   eventMap   on:Start off:Stop snap:Snap
   fp_Grundriss 300,1059,1,Foscam_outdoor2
   icon       it_camera
   rectime    30
   room       CUL_HM,Webcam
   verbose    4
   webCmd     Start:Stop:Snap:Enable:Disable


"Verwendest du eine DSM-Session oder eine SVS-session ? " - keine Ahnung ?
hab die Cam so eingebunden:
define Foscam_outdoor2 SSCam outdoor2 192.168.1.23 5000
attr Foscam_outdoor2 alias Haustuer
attr Foscam_outdoor2 devStateIcon .*isable:set_off .*nable:FS20.off .*nap:li_wht_on
attr Foscam_outdoor2 event-on-change-reading Record,Error,Errorcode,LastSnapId,Availability
attr Foscam_outdoor2 eventMap on:Start off:Stop snap:Snap
attr Foscam_outdoor2 fp_Grundriss 300,1059,1,Foscam_outdoor2
attr Foscam_outdoor2 icon it_camera
attr Foscam_outdoor2 rectime 30
attr Foscam_outdoor2 room CUL_HM,Webcam
attr Foscam_outdoor2 webCmd Start:Stop:Snap:Enable:Disable
# attr Foscam_outdoor2 group Webcam
# attr Foscam_outdoor2 verbose 4


DS_Starter

Im Standard wird DSM-session verwendet, bei dir also auch. Der User muß in dem Fall Mitglied der Admin Gruppe sein.

Hast du vorher  einen Schnappschuss mit  set ... snap ausgeführt ? In deinem List fehlt das Reading LastSnapId was die Grundlage ist für die Ermittlung des Filenamens.

Proxmox+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

Knuspertaler

Jupp, das wars... hatte kein aktuellen Snap erstellt,
jetzt ist das LastSnapId Reading auch da und der Fehler weg ! - Danke !

DS_Starter

Prima  :)
Werde das als Anlass nehmen eine Fehlerabfangroutine einzubauen wenn das Reading leer ist.

Danke für die Meldung und viel Spaß noch damit ...

Gruß
Heiko
Proxmox+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

ZitatWerde das als Anlass nehmen eine Fehlerabfangroutine einzubauen wenn das Reading leer ist.

Habe das Modul dahingehend ergänzt, dass eine Infomessage ausgegeben wird wenn get snapfileinfo ausgeführt wird aber das Reading LastSnapId nicht vorhanden ist.

Das Update ist morgen früh verfügbar.

Schönen Feiertag zusammen !

VG
Heiko

Proxmox+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

jericho666

Hallo liebe SSCAM-Nutzer.
Ich bin wirklich blutiger Anfänger. Ich wollte mich jetzt wieder mit FHEM beschätigen (nachdem ich es 1/2 Jahr aus den Augen verloren hatte) und musste festestellen, dass das SSCAM-Modul bei mir nicht mehr funktioniert. Ich hatte zwischenzeitlich die Surveillance-Station auf Version 7.2.1.-4602 aktualisiert.

Im log finde ich das....
2016.05.29 14:13:29 3: CAM_HWR - Informations related to Surveillance Station retrieved successfully
2016.05.29 14:13:37 1: CAM_HWR - error while requesting http://192.168.178.234:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=6&method=Login&account=XXXX&passwd=YYYY2&format="sid" - read from http://192.168.178.234:5000 timed out

.... später das ....

2016.05.29 14:13:45 3: CAM_HWR - Capabilities of Camera HWR retrieved
2016.05.29 14:13:55 1: CAM_HWR - ERROR - Operation Getptzlistpreset of Camera HWR was not successful. Errorcode: 400 - Execution failed
2016.05.29 14:14:03 1: CAM_HWR - ERROR - Operation Getptzlistpatrol of Camera HWR was not successful. Errorcode: 400 - Execution failed
2016.05.29 14:23:26 1: CAM_HWR - error while requesting http://192.168.178.234:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=6&method=Logout&_sid=vib6Mnw6gHaO61480LTN075505 - read from http://192.168.178.234:5000 timed out
2016.05.29 14:25:34 3: CAM_HWR - Query event list of HWR successfully done
2016.05.29 14:25:40 1: CAM_HWR - error while requesting http://192.168.178.234:5000/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.Info,SYNO.SurveillanceStation.Camera.Event,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.VideoStreaming,SYNO.SurveillanceStation.ExternalEvent,SYNO.SurveillanceStation.Streaming - read from http://192.168.178.234:5000 timed out
2016.05.29 14:25:47 3: CAM_HWR - Camera-Informations of HWR retrieved
2016.05.29 14:25:54 3: CAM_HWR - Enumerate motion detection parameters of HWR successfully done
2016.05.29 14:26:02 3: CAM_HWR - Capabilities of Camera HWR retrieved
2016.05.29 14:26:10 1: CAM_HWR - ERROR - Operation Getptzlistpreset of Camera HWR was not successful. Errorcode: 400 - Execution failed
2016.05.29 14:26:22 1: CAM_HWR - ERROR - Operation Getptzlistpatrol of Camera HWR was not successful. Errorcode: 400 - Execution failed
2016.05.29 14:30:50 1: CAM_HWR - error while requesting http://192.168.178.234:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=8&method=Disable&cameraIds=2&_sid="rDvn7npGyvWu.1480LTN075505" - read from http://192.168.178.234:5000 timed out
2016.05.29 14:35:39 1: CAM_HWR - error while requesting http://192.168.178.234:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=8&method=Disable&cameraIds=2&_sid="QKl67DhbrTiDA1480LTN075505" - read from http://192.168.178.234:5000 timed out


In den Readings tauchen allerdings auch Werte aus, die ausgelesen wurden z.B.
CamLastRec  20160528PM/HWR20160528-173642-1464449802.mp4 2016-05-29 14:25:34
CamModel SON-IPC1 2016-05-29 14:25:47


Ich kann über FHEM Oberfläche die Camera sogar deaktivieren, aber dann komischerweise nicht mehr aktivieren. Das muss ich dann per Hand machen. Die SSCAM-Einrichtung habe ich auch noch einmal neu gemacht, sowie ein Update des Linux + des FHEM selbst.
Habt Ihr eine Idee? Vielleicht muss ich an irgendeinem Timeout-Counter drehen?
Aber warum funktioniert dann immer "disable" aber nie "enable"?
Danke, Jens

DS_Starter

#356
Hallo Jens,

sieht mir tatsächlich nach Problemen mit den vielen timeouts aus. Versuche mal das Attr "httptimeout" im SSCAM. Damit kannst du das Problem evtl. fixen.

EDIT: den Wert für den timeout gibst du  in Sekunden ein. Standard sind 4 Sekunden. Das ist für deine Umgebung so wie es aussieht zu kurz und die HTTP-Calls funktionieren nicht zuverlässig.

Grüße
Heiko
Proxmox+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

jericho666

Hm,
ich bin irgendwie zu blöd den httptimeout zu setzen.

Ich dachte ich mache das so direkt in der FHEM Oberfläche:
set <cameraname> httptimeout 8
Unknown argument httptimeout, choose one of credentials expmode on off motdetsc snap enable disable runView stopView extevent runPatrol: goPreset: move

Wäre nett, wenn ihr mich erleuchtet. Danke.

DS_Starter

#358
Hallo Jens,

nein so nicht. "set" ist für Kommandos, wie Aufnahme starten usw.
Die Attribute setzt du am einfachsten in der Weboberfläche mit der Schaltfläche "Attr" ziemlich weit unten. Du wählst das zu setzende Attribut aus der Drop-Downliste, gibst den gewünschten Wert ein und drückst dann "attr".  Danach das Ganze noch mit "save config" (links oben) speichern sonst ist es nach einem reboot wieder weg.

Schau mal auf dem angehängten Bild.

Grüße
Heiko
Proxmox+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

jericho666

#359
Hallo liebe Fhemler (insb. Heiko),
also ich habe nun mit den Timeouts rumgespielt. Es ist eher schlechter geworden.
Mit timeout 4 sec. funktioniert das Deaktivieren immerhin enigermaßen verlässlich.
Mit Timeout 8,12 Sek geht gar nichts mehr.:-(
Ein Enable bekomme ich leider nie hin.
Vielleict habt Ihr ja noch eine Idee.

Komisch, dass das vor den ganzen Updates der Syno lief das Ganze wie geschnitten Brot.
Vielleicht ichte ich noch mal meine 2. Kamera ein in FHEM, aber was sollte die anders reagieren!?
Grüße, Jens