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

synaps-o-dan

Ist aber auch kein Problem, läuft ja wie gesagt tadellos über die Mail-Schnittstelle von Pushover.
Grüße, Daniel
fhem auf Raspberry Pi 3
5 x Set aus jew. 1x FHT80B + 1xFHT8V + 1x FHT80TF-2
HM: 1 x HM-ES-PMSw1-Pl, 2 x HM-LC-Sw1-FM, 2 x HM-LC-Sw1PBU-FM, 3 x HM-Sec-SD, 2 x HM-PB-2-WM55, 2 x HM-Sec-MDIR-2
3 x EM-1000 EM
Onewire: insgesamt 11 Onewire-Sensoren an einem LinkUSB Adapter

maxpfi

Hallo Leute,

Ich bin ganz neu hier und bin zufällig auf FHEM gestoßen und ein Anfänger und muss mir ein Grundwissen mal aneignen. Vielleicht könnt ihr mir ein wenig helfen?

Ich habe 3 IP Kamera's und eine Synology716 und möchte aus den H264 Stream zusätzlich einen MJPG Stream erstellen den ich in meinen Homeserver integrieren möchte und da bin ich nach einigen Recherchen mal auf: https://wiki.fhem.de/wiki/SSCAM_-_Steuerung_von_Kameras_in_Synology_Surveillance_Station#Credentials

Im Synology Dock und Kerbaros installieren war jetzt nicht dass Problem. Dann kam der Punkt: Abschließend muss nur noch das Streaming Device angelegt werden.

Das ist ganz einfach. Im Kamera-Device "CamHE1" ist dazu der Befehl:

set CamHE1 createStreamDev generic


so und da stehe ich nun und weis nicht wo der Befehl rein geschrieben gehört. Danach bin ich auf SScam gestoßen was das ist weiß ich auch nicht so 100% und eben dann auf FHEM da wo ich das SScam installieren kann!??



Vielen lieben Dank im Voraus.

DS_Starter

#2177
Guten Morgen,

herzlich Willkommen im Forum maxpfi.  :)

Vermutlich hast du den 3.Schritt vor dem ersten gemacht, ist aber nicht schlimm. Der Wiki Beitrag beschreibt die Nutzung des SSCam-Moduls. Das Modul hast du automatisch im FHEM mit dabei und kannst damit arbeiten.
Der Reihe nach ...

Du hast sicherlich FHEM ganz frisch installiert. Als allererstes musst du die Installation updaten. Du führst im FHEMWEB in der Kommandozeile "update" aus und startest FHEM neu. Dann hast du ein aktuelles FHEM.

Hast du dich schon mit den Grundlagen vertraut gemacht ? Wenn nicht, lies dir das Einsteigerdok mal durch: https://forum.fhem.de/index.php/topic,41693.0.html

Unabhängig davon erstellst du dir zuerst mit SSCam ein SVS-Device. Es ist noch keine Kamera, sondern ein Device für die Synology Surveillance Station in FHEM:


define <Name> SSCam SVS <IP deiner Synology>    (beschrieben: https://wiki.fhem.de/wiki/SSCAM_-_Steuerung_von_Kameras_in_Synology_Surveillance_Station#SVS-Device_definieren)


Nach der Definition gibst du den User / Passwort für die Synology ein. Verwende erstmal eine Nutzer mit Admin-Rechten im DSM. Später kannst du mit dem Attribut "session" umstellen und einen User in der Surveillance Stationverwenden um die Rechte granularer einzuschränken wenn du willst.
Wenn das Device funktioniert (Log mal anschauen) und pollt, kannst du dir deine 3 Kameras per autocreate anlegen lassen.

set <Name> autocreateCams        (beschrieben: https://wiki.fhem.de/wiki/SSCAM_-_Steuerung_von_Kameras_in_Synology_Surveillance_Station#Kameras_definieren)

Ist das erledigt und hat funktioniert, sind alle Kameras im FHEM angelegt.
Eine schöne Übersicht kannst du dir einfach anlegen mit dem Befehl im erstellten SVS Device:

set <Name> createReadingsGroup       

Schau immer mal ins Log ob es Fehler gibt oder Hinweise für Einstellungen die zu tun sind.
Wen du soweit gekommen bist, kannst diverse Streaming Devices anlegen. Das machst du immer in dem Kamera-Device für welches das Streaming Device definiert werden soll. Du hast im obigen Schritt drei Devices mit autocreate anlegen lassen, vllt. heißen die dann SSCam.Cam1, SSCam.Cam2, SSCam.Cam3.

Willst du das besagte Streaming Device nun für SSCam.Cam1 anlegen, gibst du ein:

set SSCam.Cam1 createStreamDev generic       


Diese ganzen angegebenen Set-Kommandos kannst du aber bequem im FHEMWEB per Menüauswahl ausführen und musst es nicht immer alles eintippen.
Wenn du soweit gekommen bist kannst du in dem neu angelegten Streaming Device die Konfigurationen vornehmen wie im Wiki beschrieben oder von dir gewünscht.

Lies dir auch die Hilfe (Commandref) zu dem Modul durch, "help SSCam" im FHEMWEB. Dort steht genau drin was jeder Befehl tut und wie er zu verwenden ist.
Wenn du Hilfe brauchst melde dich hier wieder oder mit einem neuen Thread im Forum "Sonstiges".Für alle möglichen Hilfen wird ein "list" von Devices benötigt. Das erstellst du im FHEMWEB in der Kommandozeile mit

list <Device-Name>     


und postest es dann eingeschlossen in Code-Tags, das ist die Taste "#" wenn du einen Beitrag erstellst.
Schau mal wie weit du kommst und viel Spaß mit FHEM und SSCam.  :) Meldest dich einfach wieder wenn etwas unklar sein sollte.

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

Fredi69

Ich bekomme bei dem Befehl set Kamera setPreset home den Fehler:
Sorry, the page you are looking for is not found
fhem auf Raspberry Pi 3
FRITZ!Box7490, Fritz!Box 3270 AP, 3xHMLAN, CUL868, nanoCUL 433 für IT, JeeLink für LaCrosse, HUE Bridge 2.0, Samsung UE46C8790 (STV), mehrere Homematic, Intertechno, Shelly und LaCrosse Komponenten

DS_Starter

Hallo Fredi,

sieht so aus als würde deine Synology Surveillance station nicht laufen. Ggf. restarten.
Ansonsten wie gewöhnlich ein verbose 4 / 5 log hilft Helfenden.

VG,
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

Fredi69

Doch die Synology Surveillance Station läuft.

2020.12.03 08:16:46 4: Cam_HooToo_HT_IP211 - ####################################################
2020.12.03 08:16:47 4: Cam_HooToo_HT_IP211 - ###    start cam operation setPreset         
2020.12.03 08:16:47 4: Cam_HooToo_HT_IP211 - ####################################################
2020.12.03 08:16:47 4: Cam_HooToo_HT_IP211 - --- Start getCamId ---
2020.12.03 08:16:47 4: Cam_HooToo_HT_IP211 - CAMID already set - ignore get camid
2020.12.03 08:16:47 4: Cam_HooToo_HT_IP211 - --- Start setPreset ---
2020.12.03 08:16:47 4: Cam_HooToo_HT_IP211 - Call-Out now: http://192.168.0.50:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.PTZ.Preset"&version="1"&method="SetPreset"&position=home&name="home"&cameraId="3"&_sid="JWN-naqrMPySL_fJCpq5jLLFwY-mPJA9In9OhR07b_82_YokOi7_JrLv8YQpxGW77DNC2h02haEbclx_wkfwi8"
2020.12.03 08:16:47 4: Cam_HooToo_HT_IP211 - Data returned: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>body{font-family:Arial,Helvetica,sans-serif;font-size:12px;text-align:center}h1{color:#06C;font-size:25px;line-height:60px;margin-top:56px}img{margin-top:40px}
</style>
</head>
<body>
<img src="data:image/jpg;base64,/9j/....//Z
"/>
<h1 id="a"></h1>
<hr>
<p>© 2020 <a href="http://www.synology.com">Synology Inc.</a></p>
</body>
<script type ="text/javascript">
/* Copyright (c) 2020 Synology Inc. All rights reserved. */

(function(){var a={en:"Sorry, the page you are looking for is not found.",zh:"\u62b1\u6b49\uff0c\u60a8\u6240\u6307\u5b9a\u7684\u9875\u9762\u4e0d\u5b58\u5728\u3002",it:"La pagina richiesta non \u00e8 stata trovata.","zh-HK":"\u62b1\u6b49\uff0c\u60a8\u6240\u6307\u5b9a\u7684\u9801\u9762\u4e0d\u5b58\u5728\u3002",cs:"Hledan\u00e1 str\u00e1nka nebyla nalezena.",es:"Lo sentimos, no se encuentra la p\u00e1gina que est\u00e1 buscando.",ru:"\u0418\u0437\u0432\u0438\u043d\u0438\u0442\u0435, \u0438\u0441\u043a\u043e\u043c\u0430\u044f \u0432\u0430\u043c\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430.",nl:"Sorry, de pagina die u zoekt kan niet weergegeven worden.",pt:"Desculpe, a p\u00e1gina que procura n\u00e3o foi encontrada.",no:"Beklager, siden du leter etter finnes ikke.",nb:"Beklager, siden du leter etter finnes ikke.",tr:"\u00dczg\u00fcn\u00fcz, arad\u0131\u011f\u0131n\u0131z sayfa bulunamad\u0131.",pl:"Przepraszamy, nie znaleziono strony, kt\u00f3rej szukasz.",fr:"D\u00e9sol\u00e9, la page que vous recherchez est introuvable.",de:"Es tut uns Leid, die von Ihnen gesuchte Seite konnte nicht gefunden werden.",da:"Desv\u00e6rre, den side, du leder efter, kunne ikke findes.","pt-BR":"Desculpe, a p\u00e1gina que procura n\u00e3o foi encontrada.","zh-MO":"\u62b1\u6b49\uff0c\u60a8\u6240\u6307\u5b9a\u7684\u9801\u9762\u4e0d\u5b58\u5728\u3002",hu:"Eln\u00e9z\u00e9st, a keresett oldal nem tal\u00e1lhat\u00f3.",ja:"\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u635c\u3057\u3066\u3044\u308b\u30da\u30fc\u30b8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093",nn:"Beklager, siden du leter etter finnes ikke.","zh-TW":"\u62b1\u6b49\uff0c\u60a8\u6240\u6307\u5b9a\u7684\u9801\u9762\u4e0d\u5b58\u5728\u3002",ko:"\uc8c4\uc1a1\ud569\ub2c8\ub2e4. \ucc3e\uace0\uc790 \ud558\ub294 \ud398\uc774\uc9c0\ub97c \ubc1c\uacac\ud558\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4.",sv:"Sidan du s\u00f6ker hittades inte."};var b=window.navigator.browserLanguage||window.navigator.language;if(-1==["zh-TW","zh-MO","zh-HK","pt-BR"].indexOf(b)){b=b.split("-",1)}document.getElementById("a").innerHTML=a[b]||a.en})();
</script>
</html>
fhem auf Raspberry Pi 3
FRITZ!Box7490, Fritz!Box 3270 AP, 3xHMLAN, CUL868, nanoCUL 433 für IT, JeeLink für LaCrosse, HUE Bridge 2.0, Samsung UE46C8790 (STV), mehrere Homematic, Intertechno, Shelly und LaCrosse Komponenten

DS_Starter

Ja, aber sie läuft offensichtlich nicht richtig. Die Syno antwortet wie man sieht.
Hast du die SS denn mal restartet ?
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

Fredi69

Ja, habe ich habe die SS jetzt neu gestartet, der Fehler bleibt der gleiche.
fhem auf Raspberry Pi 3
FRITZ!Box7490, Fritz!Box 3270 AP, 3xHMLAN, CUL868, nanoCUL 433 für IT, JeeLink für LaCrosse, HUE Bridge 2.0, Samsung UE46C8790 (STV), mehrere Homematic, Intertechno, Shelly und LaCrosse Komponenten

DS_Starter

Ging das schon mit dieser Kamera oder ist die neu ?
Hast du die Synology upgedatet ? Welcher Version hat dein SS ?
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

Guten Morgen Heiko,

Ich bräuchte deine Hilfe, ich kann seit 3-4 Tagen nicht mehr auf die Kameras über Synology aus Fhem zugreifen.
Ich habe vor etwa 2 Wochen zum Testen die DSM 7 Beta Version aufgespielt - lief alles bestens. Seit 3-4 Tagen habe ich jedoch keinen Zugriff mehr.
Folgender Fehler tritt auf:

1. Versuch Port 24855 ( war so die ganze Zeit eingestellt)


2020.12.21 09:25:58 3: Cam_Innen - Login of User fhem unsuccessful. Code: 103 - Message not found for error code: 103 - try again
2020.12.21 09:25:58 4: Cam_Innen - --- Begin Function login ---
2020.12.21 09:25:58 4: Cam_Innen - Credentials read from RAM: fhem ********
2020.12.21 09:25:58 4: Cam_Innen - HTTP-Call login will be done with httptimeout-Value: 60 s
2020.12.21 09:25:58 4: Cam_Innen - Call-Out now: https://192.168.50.40:24855/webapi/entry.cgi?api=SYNO.API.Auth&version=7&method=Login&account=fhem&passwd=*****&session=SurveillanceStation&format="sid"
2020.12.21 09:25:58 5: Cam_Innen - JSON decoded: {
  'success' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
  'error' => {
               'code' => 103
             }



2. Versuch (anderer Port zum Testen):


020.12.21 09:25:43 2: Cam_Haustuer - error while requesting https://192.168.50.40:9901/webapi/entry.cgi?api=SYNO.API.Auth&version=7&method=Login&account=fhem&passwd=7M3vb2Xr94&session=SurveillanceStation&format="sid" - 192.168.50.40: Connection refused (111)
2020.12.21 09:25:43 4: Cam_Haustuer - --- Begin Function login ---
2020.12.21 09:25:43 4: Cam_Haustuer - Credentials read from RAM: fhem ********
2020.12.21 09:25:43 2: Cam_Haustuer - ERROR - Login or privilege of user fhem unsuccessful
2020.12.21 09:25:45 4: Cam_Haustuer - ####################################################
2020.12.21 09:25:45 4: Cam_Haustuer - ###    start cam operation getStmUrlPath         
2020.12.21 09:25:45 4: Cam_Haustuer - ####################################################
2020.12.21 09:25:45 3: Cam_Haustuer - no session ID found - get new one
2020.12.21 09:25:45 4: Cam_Haustuer - --- Begin Function login ---
2020.12.21 09:25:45 4: Cam_Haustuer - Credentials read from RAM: fhem ********
2020.12.21 09:25:45 4: Cam_Haustuer - HTTP-Call login will be done with httptimeout-Value: 60 s
2020.12.21 09:25:45 4: Cam_Haustuer - Call-Out now: https://192.168.50.40:9901/webapi/entry.cgi?api=SYNO.API.Auth&version=7&method=Login&account=fhem&passwd=*****&session=SurveillanceStation&format="sid"
2020.12.21 09:25:45 2: Cam_Haustuer - error while requesting https://192.168.50.40:9901/webapi/entry.cgi?api=SYNO.API.Auth&version=7&method=Login&account=fhem&passwd=7M3vb2Xr94&session=SurveillanceStation&format="sid" - 192.168.50.40: Connection refused (111)
2020.12.21 09:25:45 4: Cam_Haustuer - --- Begin Function login ---
2020.12.21 09:25:45 4: Cam_Haustuer - Credentials read from RAM: fhem ********
2020.12.21 09:25:45 4: Cam_Haustuer - HTTP-Call login will be done with httptimeout-Value: 60 s
2020.12.21 09:25:45 4: Cam_Haustuer - Call-Out now: https://192.168.50.40:9901/webapi/entry.cgi?api=SYNO.API.Auth&version=7&method=Login&account=fhem&passwd=*****&session=SurveillanceStation&format="sid"
2020.12.21 09:25:45 2: Cam_Haustuer - error while requesting https://192.168.50.40:9901/webapi/entry.cgi?api=SYNO.API.Auth&version=7&method=Login&account=fhem&passwd=7M3vb2Xr94&session=SurveillanceStation&format="sid" - 192.168.50.40: Connection refused (111)
2020.12.21 09:25:45 4: Cam_Haustuer - --- Begin Function login ---
2020.12.21 09:25:45 4: Cam_Haustuer - Credentials read from RAM: fhem ********
2020.12.21 09:25:45 4: Cam_Haustuer - HTTP-Call login will be done with httptimeout-Value: 60 s
2020.12.21 09:25:45 4: Cam_Haustuer - Call-Out now: https://192.168.50.40:9901/webapi/entry.cgi?api=SYNO.API.Auth&version=7&method=Login&account=fhem&passwd=*****&session=SurveillanceStation&format="sid"
2020.12.21 09:25:45 2: Cam_Haustuer - error while requesting https://192.168.50.40:9901/webapi/entry.cgi?api=SYNO.API.Auth&version=7&method=Login&account=fhem&passwd=7M3vb2Xr94&session=SurveillanceStation&format="sid" - 192.168.50.40: Connection refused (111)
2020.12.21 09:25:45 4: Cam_Haustuer - --- Begin Function login ---
2020.12.21 09:25:45 4: Cam_Haustuer - Credentials read from RAM: fhem ********
2020.12.21 09:25:45 2: Cam_Haustuer - ERROR - Login or privilege of user fhem unsuccessful
2020.12.21 09:25:49 2: Cam_Innen - WARNING - add "sscam" to attribute "iconpath" of FHEMWEB


Danke dir.

Grüße
Matthias

DS_Starter

Moin Matthias,

ZitatDSM 7 Beta Version aufgespielt
Na da warst du aber echt mutig.  ;)

Führe mal bitte ein get <> apiInfo aus und poste was angezeigt wird.

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

math78

1.Kamera

{
  'LOG' => {
             'NAME' => 'SYNO.SurveillanceStation.Log'
           },
  'AUDIOSTM' => {
                  'NAME' => 'SYNO.SurveillanceStation.AudioStream'
                },
  'SNAPSHOT' => {
                  'NAME' => 'SYNO.SurveillanceStation.SnapShot'
                },
  'HMODE' => {
               'NAME' => 'SYNO.SurveillanceStation.HomeMode'
             },
  'REC' => {
             'NAME' => 'SYNO.SurveillanceStation.Recording'
           },
  'PRESET' => {
                'NAME' => 'SYNO.SurveillanceStation.PTZ.Preset'
              },
  'VIDEOSTM' => {
                  'NAME' => 'SYNO.SurveillanceStation.VideoStreaming'
                },
  'VIDEOSTMS' => {
                   'NAME' => 'SYNO.SurveillanceStation.VideoStream'
                 },
  'EVENT' => {
               'NAME' => 'SYNO.SurveillanceStation.Event'
             },
  'EXTREC' => {
                'NAME' => 'SYNO.SurveillanceStation.ExternalRecording'
              },
  'PTZ' => {
             'NAME' => 'SYNO.SurveillanceStation.PTZ'
           },
  'EXTEVT' => {
                'NAME' => 'SYNO.SurveillanceStation.ExternalEvent'
              },
  'AUTH' => {
              'NAME' => 'SYNO.API.Auth'
            },
  'CAMEVENT' => {
                  'NAME' => 'SYNO.SurveillanceStation.Camera.Event'
                },
  'INFO' => {
              'VER' => 1,
              'NAME' => 'SYNO.API.Info',
              'PATH' => 'query.cgi'
            },
  'STM' => {
             'NAME' => 'SYNO.SurveillanceStation.Stream'
           },
  'SVSINFO' => {
                 'NAME' => 'SYNO.SurveillanceStation.Info'
               },
  'CAM' => {
             'NAME' => 'SYNO.SurveillanceStation.Camera'
           }
}

2020.12.21 10:27:13 4: Cam_Haustuer - Call-Out now: https://192.168.50.40:9901/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.SurveillanceStation.Log,SYNO.SurveillanceStation.AudioStream,SYNO.SurveillanceStation.SnapShot,SYNO.SurveillanceStation.HomeMode,SYNO.SurveillanceStation.Recording,SYNO.SurveillanceStation.PTZ.Preset,SYNO.SurveillanceStation.VideoStreaming,SYNO.SurveillanceStation.VideoStream,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.ExternalRecording,SYNO.SurveillanceStation.PTZ,SYNO.SurveillanceStation.ExternalEvent,SYNO.API.Auth,SYNO.SurveillanceStation.Camera.Event,SYNO.API.Info,SYNO.SurveillanceStation.Stream,SYNO.SurveillanceStation.Info,SYNO.SurveillanceStation.Camera
2020.12.21 10:27:13 2: Cam_Haustuer - error while requesting https://192.168.50.40:9901/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.SurveillanceStation.Log,SYNO.SurveillanceStation.AudioStream,SYNO.SurveillanceStation.SnapShot,SYNO.SurveillanceStation.HomeMode,SYNO.SurveillanceStation.Recording,SYNO.SurveillanceStation.PTZ.Preset,SYNO.SurveillanceStation.VideoStreaming,SYNO.SurveillanceStation.VideoStream,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.ExternalRecording,SYNO.SurveillanceStation.PTZ,SYNO.SurveillanceStation.ExternalEvent,SYNO.API.Auth,SYNO.SurveillanceStation.Camera.Event,SYNO.API.Info,SYNO.SurveillanceStation.Stream,SYNO.SurveillanceStation.Info,SYNO.SurveillanceStation.Camera - 192.168.50.40: Connection refused (111)
2020.12.21 10:28:31 4: Cam_Innen - ###########


2.Kamera



2020.12.21 10:31:15 5: Cam_Innen - HTTP-Call will be done with httptimeout-Value: 20 s
2020.12.21 10:31:15 4: Cam_Innen - API imported:
{
  'STM' => {
             'NAME' => 'SYNO.SurveillanceStation.Stream'
           },
  'INFO' => {
              'PATH' => 'query.cgi',
              'NAME' => 'SYNO.API.Info',
              'VER' => 1
            },
  'SVSINFO' => {
                 'NAME' => 'SYNO.SurveillanceStation.Info'
               },
  'CAM' => {
             'NAME' => 'SYNO.SurveillanceStation.Camera'
           },
  'AUTH' => {
              'NAME' => 'SYNO.API.Auth'
            },
  'EXTEVT' => {
                'NAME' => 'SYNO.SurveillanceStation.ExternalEvent'
              },
  'CAMEVENT' => {
                  'NAME' => 'SYNO.SurveillanceStation.Camera.Event'
                },
  'REC' => {
             'NAME' => 'SYNO.SurveillanceStation.Recording'
           },
  'VIDEOSTM' => {
                  'NAME' => 'SYNO.SurveillanceStation.VideoStreaming'
                },
  'PRESET' => {
                'NAME' => 'SYNO.SurveillanceStation.PTZ.Preset'
              },
  'VIDEOSTMS' => {
                   'NAME' => 'SYNO.SurveillanceStation.VideoStream'
                 },
  'PTZ' => {
             'NAME' => 'SYNO.SurveillanceStation.PTZ'
           },
  'EVENT' => {
               'NAME' => 'SYNO.SurveillanceStation.Event'
             },
  'EXTREC' => {
                'NAME' => 'SYNO.SurveillanceStation.ExternalRecording'
              },
  'LOG' => {
             'NAME' => 'SYNO.SurveillanceStation.Log'
           },
  'AUDIOSTM' => {
                  'NAME' => 'SYNO.SurveillanceStation.AudioStream'
                },
  'HMODE' => {
               'NAME' => 'SYNO.SurveillanceStation.HomeMode'
             },
  'SNAPSHOT' => {
                  'NAME' => 'SYNO.SurveillanceStation.SnapShot'
                }
}

2020.12.21 10:31:15 4: Cam_Innen - Call-Out now: https://192.168.50.40:24855/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.SurveillanceStation.Stream,SYNO.API.Info,SYNO.SurveillanceStation.Info,SYNO.SurveillanceStation.Camera,SYNO.API.Auth,SYNO.SurveillanceStation.ExternalEvent,SYNO.SurveillanceStation.Camera.Event,SYNO.SurveillanceStation.Recording,SYNO.SurveillanceStation.VideoStreaming,SYNO.SurveillanceStation.PTZ.Preset,SYNO.SurveillanceStation.VideoStream,SYNO.SurveillanceStation.PTZ,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.ExternalRecording,SYNO.SurveillanceStation.Log,SYNO.SurveillanceStation.AudioStream,SYNO.SurveillanceStation.HomeMode,SYNO.SurveillanceStation.SnapShot
2020.12.21 10:31:17 2: Cam_Innen - WARNING - add "sscam" to attribute "iconpath" of FHEMWEB device "WEB" to get the SSCam control icons
2020.12.21 10:31:17 5: Cam_Innen - JSON returned: {
  'success' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
  'data' => {
              'SYNO.SurveillanceStation.ExternalRecording' => {
                                                                'requestFormat' => 'JSON',
                                                                'minVersion' => 1,
                                                                'path' => 'entry.cgi',
                                                                'maxVersion' => 3
                                                              },
              'SYNO.SurveillanceStation.Stream' => {
                                                     'maxVersion' => 1,
                                                     'minVersion' => 1,
                                                     'requestFormat' => 'JSON',
                                                     'path' => 'entry.cgi'
                                                   },
              'SYNO.SurveillanceStation.HomeMode' => {
                                                       'requestFormat' => 'JSON',
                                                       'minVersion' => 1,
                                                       'path' => 'entry.cgi',
                                                       'maxVersion' => 1
                                                     },
              'SYNO.SurveillanceStation.Log' => {
                                                  'maxVersion' => 3,
                                                  'path' => 'entry.cgi',
                                                  'requestFormat' => 'JSON',
                                                  'minVersion' => 1
                                                },
              'SYNO.SurveillanceStation.PTZ' => {
                                                  'requestFormat' => 'JSON',
                                                  'path' => 'entry.cgi',
                                                  'minVersion' => 1,
                                                  'maxVersion' => 6
                                                },
              'SYNO.SurveillanceStation.Recording' => {
                                                        'minVersion' => 1,
                                                        'requestFormat' => 'JSON',
                                                        'path' => 'entry.cgi',
                                                        'maxVersion' => 6
                                                      },
              'SYNO.SurveillanceStation.SnapShot' => {
                                                       'maxVersion' => 1,
                                                       'minVersion' => 1,
                                                       'requestFormat' => 'JSON',
                                                       'path' => 'entry.cgi'
                                                     },
              'SYNO.SurveillanceStation.Camera.Event' => {
                                                           'maxVersion' => 1,
                                                           'requestFormat' => 'JSON',
                                                           'path' => 'entry.cgi',
                                                           'minVersion' => 1
                                                         },
              'SYNO.SurveillanceStation.Camera' => {
                                                     'minVersion' => 1,
                                                     'requestFormat' => 'JSON',
                                                     'path' => 'entry.cgi',
                                                     'maxVersion' => 9
                                                   },
              'SYNO.SurveillanceStation.VideoStreaming' => {
                                                             'minVersion' => 1,
                                                             'requestFormat' => 'JSON',
                                                             'path' => 'entry.cgi',
                                                             'maxVersion' => 1
                                                           },
              'SYNO.API.Auth' => {
                                   'minVersion' => 1,
                                   'path' => 'entry.cgi',
                                   'maxVersion' => 7
                                 },
              'SYNO.API.Info' => {
                                   'maxVersion' => 1,
                                   'requestFormat' => 'JSON',
                                   'minVersion' => 1,
                                   'path' => 'entry.cgi'
                                 },
              'SYNO.SurveillanceStation.PTZ.Preset' => {
                                                         'maxVersion' => 1,
                                                         'path' => 'entry.cgi',
                                                         'requestFormat' => 'JSON',
                                                         'minVersion' => 1
                                                       },
              'SYNO.SurveillanceStation.Info' => {
                                                   'minVersion' => 1,
                                                   'requestFormat' => 'JSON',
                                                   'path' => 'entry.cgi',
                                                   'maxVersion' => 8
                                                 },
              'SYNO.SurveillanceStation.ExternalEvent' => {
                                                            'requestFormat' => 'JSON',
                                                            'minVersion' => 1,
                                                            'path' => 'entry.cgi',
                                                            'maxVersion' => 1
                                                          },
              'SYNO.SurveillanceStation.VideoStream' => {
                                                          'maxVersion' => 1,
                                                          'minVersion' => 1,
                                                          'path' => 'SurveillanceStation/videoStreaming.cgi'
                                                        },
              'SYNO.SurveillanceStation.Event' => {
                                                    'path' => 'entry.cgi',
                                                    'requestFormat' => 'JSON',
                                                    'minVersion' => 1,
                                                    'maxVersion' => 5
                                                  },
              'SYNO.SurveillanceStation.AudioStream' => {
                                                          'path' => 'SurveillanceStation/audioStreaming.cgi',
                                                          'minVersion' => 1,
                                                          'maxVersion' => 2
                                                        }
            }
}

2020.12.21 10:31:17 4: Cam_Innen - installed SVS version is:
2020.12.21 10:31:17 4: Cam_Innen - ------- Begin of adaption section -------
2020.12.21 10:31:17 4: Cam_Innen - ------- End of adaption section -------
2020.12.21 10:31:17 4: Cam_Innen - ------- Begin of simulation section -------
2020.12.21 10:31:17 4: Cam_Innen - ------- End of simulation section -------
2020.12.21 10:31:17 4: Cam_Innen - API completed after retrieval and adaption:
{
  'PTZ' => {
             'MOD' => 'no',
             'VER' => 6,
             'PATH' => 'entry.cgi',
             'NAME' => 'SYNO.SurveillanceStation.PTZ'
           },
  'EVENT' => {
               'NAME' => 'SYNO.SurveillanceStation.Event',
               'PATH' => 'entry.cgi',
               'VER' => 5,
               'MOD' => 'no'
             },
  'EXTREC' => {
                'VER' => 3,
                'MOD' => 'no',
                'NAME' => 'SYNO.SurveillanceStation.ExternalRecording',
                'PATH' => 'entry.cgi'
              },
  'VIDEOSTMS' => {
                   'MOD' => 'no',
                   'VER' => 1,
                   'PATH' => 'SurveillanceStation/videoStreaming.cgi',
                   'NAME' => 'SYNO.SurveillanceStation.VideoStream'
                 },
  'VIDEOSTM' => {
                  'MOD' => 'no',
                  'VER' => 1,
                  'PATH' => 'entry.cgi',
                  'NAME' => 'SYNO.SurveillanceStation.VideoStreaming'
                },
  'PRESET' => {
                'NAME' => 'SYNO.SurveillanceStation.PTZ.Preset',
                'PATH' => 'entry.cgi',
                'VER' => 1,
                'MOD' => 'no'
              },
  'REC' => {
             'NAME' => 'SYNO.SurveillanceStation.Recording',
             'PATH' => 'entry.cgi',
             'VER' => 6,
             'MOD' => 'no'
           },
  'HMODE' => {
               'PATH' => 'entry.cgi',
               'NAME' => 'SYNO.SurveillanceStation.HomeMode',
               'MOD' => 'no',
               'VER' => 1
             },
  'SNAPSHOT' => {
                  'VER' => 1,
                  'MOD' => 'no',
                  'NAME' => 'SYNO.SurveillanceStation.SnapShot',
                  'PATH' => 'entry.cgi'
                },
  'AUDIOSTM' => {
                  'VER' => 2,
                  'MOD' => 'no',
                  'NAME' => 'SYNO.SurveillanceStation.AudioStream',
                  'PATH' => 'SurveillanceStation/audioStreaming.cgi'
                },
  'LOG' => {
             'NAME' => 'SYNO.SurveillanceStation.Log',
             'PATH' => 'entry.cgi',
             'VER' => 3,
             'MOD' => 'no'
           },
  'PARSET' => 1,
  'CAM' => {
             'NAME' => 'SYNO.SurveillanceStation.Camera',
             'PATH' => 'entry.cgi',
             'VER' => 9,
             'MOD' => 'no'
           },
  'SVSINFO' => {
                 'MOD' => 'no',
                 'VER' => 8,
                 'PATH' => 'entry.cgi',
                 'NAME' => 'SYNO.SurveillanceStation.Info'
               },
  'STM' => {
             'PATH' => 'entry.cgi',
             'NAME' => 'SYNO.SurveillanceStation.Stream',
             'MOD' => 'no',
             'VER' => 1
           },
  'INFO' => {
              'PATH' => 'entry.cgi',
              'NAME' => 'SYNO.API.Info',
              'MOD' => 'no',
              'VER' => 1
            },
  'CAMEVENT' => {
                  'NAME' => 'SYNO.SurveillanceStation.Camera.Event',
                  'PATH' => 'entry.cgi',
                  'VER' => 1,
                  'MOD' => 'no'
                },
  'AUTH' => {
              'NAME' => 'SYNO.API.Auth',
              'PATH' => 'entry.cgi',
              'VER' => 7,
              'MOD' => 'no'
            },
  'EXTEVT' => {
                'NAME' => 'SYNO.SurveillanceStation.ExternalEvent',
                'PATH' => 'entry.cgi',
                'VER' => 1,
                'MOD' => 'no'
              }
}

DS_Starter

Ah ok. Bereits der Abruf der API-Informationen der 1. Kamera wird von dem DSM auf dem Port 9901 geblockt. Da passiert noch nicht mal ein login.

Das siehst du hier:

Zitat
.... 192.168.50.40: Connection refused (111)

Der custom Port 9901 scheint nicht (mehr) aktiv zu sein.

Bei der 2. Cam auf Port 24855 funktioniert der API Abruf. Aber hier sehe ich, dass Synology die Auth-API auf 7 hochgehoben hat.

Zitat
              'SYNO.API.Auth' => {
                                   'minVersion' => 1,
                                   'path' => 'entry.cgi',
                                   'maxVersion' => 7
                                 },

Ich denke das ist der Punkt. Probier mal dein Glück mit dem Attribut:


simu_SVSversion = 8.1.5-xxxx
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,
hat funktioniert.

Danke nochmals👍

Grüße
Matthias

DS_Starter

Prima Matthias,

dann weiß ich ja schon was mich erwartet wenn DSM 7 online geht.  :D
Dank deiner API Liste kann da jetzt schon gucken was sich ändert.

Wenn ich Zeit habe passe ich das Modul schon an und vllt. kannst du mit einem Test dann unterstützen.

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