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

math78

Hallo Heiko,

habe gerade Deine Version ausprobiert. Die ersten Versuche funktionieren alle.

LG

Matthias

DS_Starter

#391
Hi Matthias,

das sind gute Neuigkeiten !
Kannst du mir bitte deine komplette DSM Version, SVS Version und DS Typ posten ?
Synology muß da nachbessern bzw. den der API-Version entsprechenden korrekten Aufrufstring mitteilen. In der Doku hat man es nicht nachgezogen.

Ich werde die Version mit dem Workaround auch einchecken. Warte aber noch bis Rumbel oder sich vllt. auch noch weitere Nutzer melden.

LG zurück
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

math78

Hallo Heiko,

DSM Version ist die DSM 6.0.1-7393 Update 1. SVS Version ist die 7.2.2-4649
Gerät ist die DS716+.

Danke Dir nochmals.

pd33

Hallo Heiko,

ich bin zufälligerweise auf das gleiche Problem gestoßen und habe die neue Version erfolgreich ausprobiert. Bei mir sind ebenfalls die aktuellen Versionen im Einsatz - DSM 6.0.1-7393 Update 1 - SVS 7.2.2-4649 - RS815+

Im FHEM Log bekomme ich folgende Ausgabe, allerdings funktioniert es trotzdem:

- ERROR - Operation Snap of Camera cam01 was not successful. Errorcode: 400 - Execution failed
- ERROR - Operation gopreset of Camera cam01 was not successful. Errorcode: 401 - Parameter invalid



Vielen Dank für den schnellen Support!!

DS_Starter

Hallo Pd33,

danke fürs Feedback !
Auch wenn es (komischerweise   8) trotz der Fehlermeldung) funktioniert, möchte ich das auch gern noch analysieren wegen der Meldung an Synology.
Machst du mir bitte auch einen verbose 4 log von den Ausgaben der Funktion snap bzw. gopreset ?

Ich weiß, ist ein bisschen Aufwand, aber es hilft mir beim Fixing und für die fundierten Infos an Synology.
Hoffentlich liefert Syno nicht für die unterschiedlichen Modelle auch noch unterschiedliche API's aus, dann krieg ich einen Anfall  ;)

Danke und 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

pd33

Hallo Heiko,

gern doch und ich hoffe es hilft weiter.

Hier der Aufruf für goPreset:
2016.07.02 00:10:42 4: cam01 - Move Camera foscam01 to position "strasse" with ID "0" now
2016.07.02 00:10:42 4: cam01 - --- Begin Function getapisites nonblocking ---
2016.07.02 00:10:42 4: cam01 - Call-Out now: http://192.168.178.150: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.07.02 00:10:42 4: cam01 - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' ),
          'data' => {
                      'SYNO.SurveillanceStation.ExternalRecording' => {
                                                                        'requestFormat' => 'JSON',
                                                                        'maxVersion' => 3,
                                                                        'path' => 'entry.cgi',
                                                                        'minVersion' => 1
                                                                      },
                      'SYNO.SurveillanceStation.PTZ' => {
                                                          'requestFormat' => 'JSON',
                                                          'maxVersion' => 5,
                                                          'path' => 'entry.cgi',
                                                          'minVersion' => 1
                                                        },
                      'SYNO.SurveillanceStation.Camera.Event' => {
                                                                   'requestFormat' => 'JSON',
                                                                   'maxVersion' => 1,
                                                                   'path' => 'entry.cgi',
                                                                   'minVersion' => 1
                                                                 },
                      'SYNO.SurveillanceStation.VideoStreaming' => {
                                                                     'requestFormat' => 'JSON',
                                                                     'maxVersion' => 1,
                                                                     'path' => 'entry.cgi',
                                                                     'minVersion' => 1
                                                                   },
                      'SYNO.SurveillanceStation.Streaming' => {
                                                                'maxVersion' => 2,
                                                                'path' => 'SurveillanceStation/streaming.cgi',
                                                                'minVersion' => 1
                                                              },
                      'SYNO.SurveillanceStation.SnapShot' => {
                                                               'requestFormat' => 'JSON',
                                                               'maxVersion' => 1,
                                                               'path' => 'entry.cgi',
                                                               'minVersion' => 1
                                                             },
                      'SYNO.API.Auth' => {
                                           'maxVersion' => 6,
                                           'path' => 'auth.cgi',
                                           'minVersion' => 1
                                         },
                      'SYNO.SurveillanceStation.ExternalEvent' => {
                                                                    'requestFormat' => 'JSON',
                                                                    'maxVersion' => 1,
                                                                    'path' => 'entry.cgi',
                                                                    'minVersion' => 1
                                                                  },
                      'SYNO.SurveillanceStation.Camera' => {
                                                             'requestFormat' => 'JSON',
                                                             'maxVersion' => 8,
                                                             'path' => 'entry.cgi',
                                                             'minVersion' => 1
                                                           },
                      'SYNO.SurveillanceStation.Info' => {
                                                           'requestFormat' => 'JSON',
                                                           'maxVersion' => 6,
                                                           'path' => 'entry.cgi',
                                                           'minVersion' => 1
                                                         },
                      'SYNO.SurveillanceStation.Event' => {
                                                            'requestFormat' => 'JSON',
                                                            'maxVersion' => 5,
                                                            'path' => 'entry.cgi',
                                                            'minVersion' => 1
                                                          }
                    }
        };

2016.07.02 00:10:42 4: cam01 - Path of SYNO.API.Auth selected: auth.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.API.Auth selected: 6
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.ExternalRecording selected: entry.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.ExternalRecording selected: 3
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.Camera selected: entry.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Camera: 8
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.SnapShot selected: entry.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.SnapShot: 1
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.PTZ selected: entry.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.PTZ: 5
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.Info selected: entry.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Info: 6
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.Camera.Event selected: entry.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Camera.Event: 1
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.Event selected: entry.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Event: 5
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.VideoStreaming selected: entry.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.VideoStreaming: 1
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.ExternalEvent selected: entry.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.ExternalEvent selected: 1
2016.07.02 00:10:42 4: cam01 - Path of SYNO.SurveillanceStation.Streaming selected: SurveillanceStation/streaming.cgi
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Streaming selected: 2
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.ExternalRecording adopted to: 2 due to SVSversion 7.2 !!
2016.07.02 00:10:42 4: cam01 - MaxVersion of SYNO.SurveillanceStation.PTZ adopted to: 4 due to SVSversion 7.2 !!
2016.07.02 00:10:42 4: cam01 - --- End Function getapisites nonblocking ---
2016.07.02 00:10:42 4: cam01 - --- Begin Function serverlogin nonblocking ---
2016.07.02 00:10:42 4: cam01 - Credentials read from RAM: fhem ********
2016.07.02 00:10:42 4: cam01 - Call-Out now: http://192.168.178.150:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=6&method=Login&account=fhem&passwd=fh3m%6ora_fl0ra&session=SurveillanceStation&format="sid"
2016.07.02 00:10:43 4: cam01 - Credentials read from RAM: fhem ********
2016.07.02 00:10:43 4: cam01 - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' ),
          'data' => {
                      'sid' => 'pu5dfETsDSFsM15A0MRN816101',
                      'is_portal_port' => bless( do{\(my $o = 0)}, 'JSON::XS::Boolean' )
                    }
        };

2016.07.02 00:10:43 4: cam01 - Login of User fhem successful - SID: pu5dfETsDSFsM15A0MRN816101
2016.07.02 00:10:43 4: cam01 - --- End Function serverlogin nonblocking ---
2016.07.02 00:10:43 4: cam01 - --- Begin Function getcamid nonblocking ---
2016.07.02 00:10:43 4: cam01 - Call-Out now: http://192.168.178.150:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=8&method=List&basic=true&streamInfo=true&camStm=true&_sid="pu5dfETsDSFsM15A0MRN816101"
2016.07.02 00:10:43 4: cam01 - Detection Camid successful - foscam01 ID: 13
2016.07.02 00:10:43 4: cam01 - --- End Function getcamid nonblocking ---
2016.07.02 00:10:43 4: cam01 - --- Begin Function cam: gopreset nonblocking ---
2016.07.02 00:10:43 4: cam01 - Call-Out now: http://192.168.178.150:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.PTZ"&version="4"&method="GoPreset"&position="0"&cameraId="13"&_sid="pu5dfETsDSFsM15A0MRN816101"
2016.07.02 00:10:43 4: cam01 - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' )
        };

2016.07.02 00:10:43 3: cam01 - Camera foscam01 has been moved to position "strasse"
2016.07.02 00:10:43 4: cam01 - --- End Function cam: gopreset nonblocking ---
2016.07.02 00:10:43 4: cam01 - --- Begin Function logout nonblocking ---
2016.07.02 00:10:43 4: cam01 - Credentials read from RAM: fhem ********
2016.07.02 00:10:43 4: cam01 - URL-Call: http://192.168.178.150:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=6&method=Logout&session=SurveillanceStation&_sid=pu5dfETsDSFsM15A0MRN816101
2016.07.02 00:10:43 4: cam01 - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' )
        };

2016.07.02 00:10:43 4: cam01 - Session of User fhem has ended - SID: pu5dfETsDSFsM15A0MRN816101 has been deleted
2016.07.02 00:10:43 4: cam01 - --- End Function logout nonblocking ---


Und hier für den Snapshot:

2016.07.02 00:12:03 4: cam01 - Take Snapshot of Camera foscam01
2016.07.02 00:12:03 4: cam01 - --- Begin Function getapisites nonblocking ---
2016.07.02 00:12:03 4: cam01 - Call-Out now: http://192.168.178.150: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.07.02 00:12:04 4: cam01 - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' ),
          'data' => {
                      'SYNO.SurveillanceStation.ExternalRecording' => {
                                                                        'requestFormat' => 'JSON',
                                                                        'maxVersion' => 3,
                                                                        'path' => 'entry.cgi',
                                                                        'minVersion' => 1
                                                                      },
                      'SYNO.SurveillanceStation.PTZ' => {
                                                          'requestFormat' => 'JSON',
                                                          'maxVersion' => 5,
                                                          'path' => 'entry.cgi',
                                                          'minVersion' => 1
                                                        },
                      'SYNO.SurveillanceStation.Camera.Event' => {
                                                                   'requestFormat' => 'JSON',
                                                                   'maxVersion' => 1,
                                                                   'path' => 'entry.cgi',
                                                                   'minVersion' => 1
                                                                 },
                      'SYNO.SurveillanceStation.VideoStreaming' => {
                                                                     'requestFormat' => 'JSON',
                                                                     'maxVersion' => 1,
                                                                     'path' => 'entry.cgi',
                                                                     'minVersion' => 1
                                                                   },
                      'SYNO.SurveillanceStation.Streaming' => {
                                                                'maxVersion' => 2,
                                                                'path' => 'SurveillanceStation/streaming.cgi',
                                                                'minVersion' => 1
                                                              },
                      'SYNO.SurveillanceStation.SnapShot' => {
                                                               'requestFormat' => 'JSON',
                                                               'maxVersion' => 1,
                                                               'path' => 'entry.cgi',
                                                               'minVersion' => 1
                                                             },
                      'SYNO.API.Auth' => {
                                           'maxVersion' => 6,
                                           'path' => 'auth.cgi',
                                           'minVersion' => 1
                                         },
                      'SYNO.SurveillanceStation.ExternalEvent' => {
                                                                    'requestFormat' => 'JSON',
                                                                    'maxVersion' => 1,
                                                                    'path' => 'entry.cgi',
                                                                    'minVersion' => 1
                                                                  },
                      'SYNO.SurveillanceStation.Camera' => {
                                                             'requestFormat' => 'JSON',
                                                             'maxVersion' => 8,
                                                             'path' => 'entry.cgi',
                                                             'minVersion' => 1
                                                           },
                      'SYNO.SurveillanceStation.Info' => {
                                                           'requestFormat' => 'JSON',
                                                           'maxVersion' => 6,
                                                           'path' => 'entry.cgi',
                                                           'minVersion' => 1
                                                         },
                      'SYNO.SurveillanceStation.Event' => {
                                                            'requestFormat' => 'JSON',
                                                            'maxVersion' => 5,
                                                            'path' => 'entry.cgi',
                                                            'minVersion' => 1
                                                          }
                    }
        };

2016.07.02 00:12:04 4: cam01 - Path of SYNO.API.Auth selected: auth.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.API.Auth selected: 6
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.ExternalRecording selected: entry.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.ExternalRecording selected: 3
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.Camera selected: entry.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Camera: 8
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.SnapShot selected: entry.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.SnapShot: 1
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.PTZ selected: entry.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.PTZ: 5
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.Info selected: entry.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Info: 6
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.Camera.Event selected: entry.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Camera.Event: 1
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.Event selected: entry.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Event: 5
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.VideoStreaming selected: entry.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.VideoStreaming: 1
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.ExternalEvent selected: entry.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.ExternalEvent selected: 1
2016.07.02 00:12:04 4: cam01 - Path of SYNO.SurveillanceStation.Streaming selected: SurveillanceStation/streaming.cgi
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.Streaming selected: 2
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.ExternalRecording adopted to: 2 due to SVSversion 7.2 !!
2016.07.02 00:12:04 4: cam01 - MaxVersion of SYNO.SurveillanceStation.PTZ adopted to: 4 due to SVSversion 7.2 !!
2016.07.02 00:12:04 4: cam01 - --- End Function getapisites nonblocking ---
2016.07.02 00:12:04 4: cam01 - --- Begin Function serverlogin nonblocking ---
2016.07.02 00:12:04 4: cam01 - Credentials read from RAM: fhem ********
2016.07.02 00:12:04 4: cam01 - Call-Out now: http://192.168.178.150:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=6&method=Login&account=fhem&passwd=fh3m%6ora_fl0ra&session=SurveillanceStation&format="sid"
2016.07.02 00:12:04 4: cam01 - Credentials read from RAM: fhem ********
2016.07.02 00:12:04 4: cam01 - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' ),
          'data' => {
                      'sid' => 'wXw4FM9MyuiY215A0MRN816101',
                      'is_portal_port' => bless( do{\(my $o = 0)}, 'JSON::XS::Boolean' )
                    }
        };

2016.07.02 00:12:04 4: cam01 - Login of User fhem successful - SID: wXw4FM9MyuiY215A0MRN816101
2016.07.02 00:12:04 4: cam01 - --- End Function serverlogin nonblocking ---
2016.07.02 00:12:04 4: cam01 - --- Begin Function getcamid nonblocking ---
2016.07.02 00:12:04 4: cam01 - Call-Out now: http://192.168.178.150:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=8&method=List&basic=true&streamInfo=true&camStm=true&_sid="wXw4FM9MyuiY215A0MRN816101"
2016.07.02 00:12:04 4: cam01 - Detection Camid successful - foscam01 ID: 13
2016.07.02 00:12:04 4: cam01 - --- End Function getcamid nonblocking ---
2016.07.02 00:12:04 4: cam01 - --- Begin Function cam: Snap nonblocking ---
2016.07.02 00:12:04 4: cam01 - Call-Out now: http://192.168.178.150:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.SnapShot"&dsId=0&method="TakeSnapshot"&version="1"&camId=13&blSave=true&_sid="wXw4FM9MyuiY215A0MRN816101"
2016.07.02 00:12:05 1: cam01 - ERROR - Operation Snap of Camera foscam01 was not successful. Errorcode: 400 - Execution failed
2016.07.02 00:12:05 4: cam01 - --- End Function cam: Snap nonblocking with error ---
2016.07.02 00:12:05 4: cam01 - --- Begin Function logout nonblocking ---
2016.07.02 00:12:05 4: cam01 - Credentials read from RAM: fhem ********
2016.07.02 00:12:05 4: cam01 - URL-Call: http://192.168.178.150:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=6&method=Logout&session=SurveillanceStation&_sid=wXw4FM9MyuiY215A0MRN816101
2016.07.02 00:12:05 4: cam01 - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' )
        };

2016.07.02 00:12:05 4: cam01 - Session of User fhem has ended - SID: wXw4FM9MyuiY215A0MRN816101 has been deleted
2016.07.02 00:12:05 4: cam01 - --- End Function logout nonblocking ---



Bei Fragen oder wenn Du noch mehr brauchst, melde dich!

DS_Starter

#396
Danke pd33 für die logs ... perfekt  :)

Hallo Matthias, Rumbel und pd33,

ich habe die Version noch einmal etwas abgeändert. Insbesondere hoffe ich dass ich die Fehlermeldung von "snap" bei pd33 mit "erwischt" habe.
( in deinem log finde ich aber keinen Hinweis auf "parameter invalid" bei gopreset .... sieht gut aus).

Danke für eure Mithilfe ! Ich denke ich habe schon genügend Infos für eine Anfrage an Syno zusammen.

Meldet bitte noch eure Ergebnisse mit der angehängten Version zurück.

Schönes WE,
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

math78


DS_Starter

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

docb

Servus,
erstmal herzlichen Dank für das Modul - genau was ich brauche, wenn es denn nur liefe ;-)

Ich bekomme gleich nach der Eingabe der Credentials den Fehler "malformed JSON string received".

Im List steht:
Internals:
   CAMNAME    WZ
   CFGFN
   CREDENTIALS Set
   DEF        WZ 10.11.30.100 1099
   NAME       Cam_WZ
   NR         1316
   OPMODE     Enable
   SERVERADDR 10.11.30.100
   SERVERPORT 1099
   STATE      off
   TYPE       SSCam
   Helper:
     ACTIVE     off
     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
     APIINFO    SYNO.API.Info
     APIPTZ     SYNO.SurveillanceStation.PTZ
     APISNAPSHOT SYNO.SurveillanceStation.SnapShot
     APISTM     SYNO.SurveillanceStation.Streaming
     APISVSINFO SYNO.SurveillanceStation.Info
     APIVIDEOSTM SYNO.SurveillanceStation.VideoStreaming
     CREDENTIALS Z6hpTtjXQY...
     RECTIME_DEF 15
   Readings:
     2016-07-14 10:58:44   Availability    ???
     2016-07-14 11:02:34   Error           malformed JSON string received
     2016-07-14 11:02:34   Errorcode       none
     2016-07-14 10:58:44   LiveStreamUrl
     2016-07-14 10:58:44   PollState       Inactive
     2016-07-14 10:58:44   state           off
Attributes:
   verbose    4
   webCmd     on:off:snap:enable:disable


Im Log finde ich, wenn ich bspw. mal ein disable versuche:
</html>
</body>
<hr><center>nginx</center>
<center>The plain HTTP request was sent to HTTPS port</center>
<center><h1>400 Bad Request</h1></center>
<body bgcolor="white">
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
2016.07.14 11:02:34.172 4: Cam_WZ - Data returned: <html>
2016.07.14 11:02:34.146 4: Cam_WZ - Call-Out now: http://10.11.30.100:1099/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.07.14 11:02:34.146 4: Cam_WZ - --- Begin Function getapisites nonblocking ---
2016.07.14 11:02:34.146 4: Cam_WZ - Enable Camera WZ


Ich habe die aktuellste Version deines Moduls (erst über Update, dann aber auch nochmal die hier aus dem Forum runtergeladen), DSM Version DSM 6.0.1-7393 Update 1, Surveillance Station 7.2.2-4649.

Mit der Bitte um Hilfe & Viele Grüße
doc
I love FHEM!

DS_Starter

Hallo Doc,

Nur Mut, kriegen wir bestimmt auch bei dir hin  ;)

Ich glaube wir hatten das Problem schon einmal hier im Thread.
Vermutlich stimmt auch bei dir die Angabe "1099" für den Http-Port der DS nicht.

In deinem Logauszug wird ja auch darauf hingewiesen:
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>

Typischerweise ist es Port 5000, es sei denn du hast ihn im Anwendungsportal vom DSM umgebogen.
Setz mal dort an und check das mal.

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

docb

Servus,
läuft, vielen Dank - wer lesen kann ist klar im Vorteil  ::)
war der Port 1098, der 1099er ist httpS. Das hat man von seinen Spielereien ;-)
Merci nochmal & viele Grüße
doc
I love FHEM!

DS_Starter

Prima  :)

Dann noch viel Spaß damit !

Viele Grüße zurück
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

docb

Servus,
sag mal gibt es eine Möglichkeit, das Modul mit der 2-Stufen Verifizierung zum laufen zu bringen? Sobald ich die einschalte, kann sich dein Modul verständlicherweise nicht verbinden:
Permission denied - DSM-Session: make sure user is member of Admin-group, SVS-Session: make sure SVS package is started
Wäre nur eine nette Ergänzung ;-)
Herzlichen Dank für das geniale Modul, das löst meine "die Kameras nehmen ständig jeden Mist auf" Probleme ;-)
Viele Grüße
doc
I love FHEM!

DS_Starter

Hallo Doc,

Sagen wir mal so ... im Herbst/Winter will ich wieder etwas mit der Weiterentwicklung des Moduls beschäftigen.
Ich nehme deinen Hinweis in meine ToDo und Wunschliste auf.

Schauen wir mal was ich hinbekomme  :)

Danke dir und Gruß
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