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

Ja, gerne. Ich überlege auch noch etwas ob ich noch ein paar hilfreiche Logausgaben einfügen kann.
Wäre doch gelacht ... wenn es bei mir und anderen funktioniert, warum nicht auch bei dir  ;)

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

DS_Starter

#1621
@Jörg, ich denke du solltest dein Regex in doif bzw. Notify ändern in

<PIR>:motion:.*on

Nur motion triggert auch bei motion of. Ich habe es mit meinem HM PIR verglichen und bin drauf gekommen.

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

DS_Starter

#1622
Hallo Jörg, @all,

ich habe soeben eine SSCam Version eingecheckt die eine erweiterte Logausgabe für die Nachverfolgung der Snap-Transaktionen hat.
Ist verbose 3 im Device gesetzt und das Attribut "debugactivetoken =1", sieht man eine solche übersichtliche Ausgabe:


2019.05.26 22:30:15.039 1: CamHE1 - Active-Token set by OPMODE: Snap
2019.05.26 22:30:15.431 1: CamHE1 - Transaction opened, TA-code: 445
2019.05.26 22:30:15.441 1: CamHE1 - Snapshot number 1 (ID: 18571) of total 3 snapshots with transaction-ID: 445 done
2019.05.26 22:30:17.443 1: CamHE1 - Active-Token set by OPMODE: Snap
2019.05.26 22:30:17.842 1: CamHE1 - Snapshot number 2 (ID: 18572) of total 3 snapshots with transaction-ID: 445 done
2019.05.26 22:30:19.843 1: CamHE1 - Active-Token set by OPMODE: Snap
2019.05.26 22:30:20.246 1: CamHE1 - Snapshot number 3 (ID: 18573) of total 3 snapshots with transaction-ID: 445 done
2019.05.26 22:30:20.249 1: CamHE1 - start get snapinfo of last 3 snapshots with transaction-ID: 445
2019.05.26 22:30:20.851 1: CamHE1 - Active-Token set by OPMODE: getsnapgallery
2019.05.26 22:30:21.480 1: CamHE1 - Transaction "445" closed
2019.05.26 22:30:21.488 1: CamHE1 - Active-Token deleted by OPMODE: getsnapgallery


Dadurch sieht man wie die 3 ausgelösten Snaps unter der einheitliche Transaktions-ID erstellt und versendet (closed) werden.
Kombiniert man debugactivetoken mit einem verbose 4 des Device, hat man ein vollständiges Bild des Ablaufs:


2019.05.26 22:47:13.874 4: SSCam.GiebelWest - Trigger snapshots - Number: 3, Lag: 2
2019.05.26 22:47:13.876 1: SSCam.GiebelWest - Active-Token set by OPMODE: Snap
2019.05.26 22:47:13.877 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:13.878 4: SSCam.GiebelWest - ###    start cam operation Snap         
2019.05.26 22:47:13.879 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:13.879 4: SSCam.GiebelWest - --- Begin Function SSCam_getapisites nonblocking ---
2019.05.26 22:47:13.880 4: SSCam.GiebelWest - API hashvalues already set - ignore get apisites
2019.05.26 22:47:13.881 4: SSCam.GiebelWest - --- Begin Function SSCam_getcamid nonblocking ---
2019.05.26 22:47:13.882 4: SSCam.GiebelWest - CAMID already set - ignore get camid
2019.05.26 22:47:13.883 4: SSCam.GiebelWest - --- Begin Function Snap nonblocking ---
2019.05.26 22:47:13.889 4: SSCam.GiebelWest - Call-Out now: http://192.168.2.10:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.SnapShot"&dsId="0"&method="TakeSnapshot"&version="1"&camId="7"&blSave="true"&_sid="8UGhavMFqJ7AY14A0MIN235902"
2019.05.26 22:47:14.274 4: SSCam.GiebelWest - SSCam_refresh - caller: SSCamSTRM.SSCam.GiebelWest.switched, callerroom: Cams_RG, detail: "n.a.", pload: 0, forcePageRefresh: 0, event_STRMdev: 0
2019.05.26 22:47:14.281 1: SSCam.GiebelWest - Transaction opened, TA-code: 3253
2019.05.26 22:47:14.289 3: SSCam.GiebelWest - Snapshot of Camera GiebelWest created. ID: 18577
2019.05.26 22:47:14.290 1: SSCam.GiebelWest - Snapshot number 1 (ID: 18577) of total 3 snapshots with transaction-ID: 3253 done
2019.05.26 22:47:16.292 1: SSCam.GiebelWest - Active-Token set by OPMODE: Snap
2019.05.26 22:47:16.293 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:16.294 4: SSCam.GiebelWest - ###    start cam operation Snap         
2019.05.26 22:47:16.295 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:16.295 4: SSCam.GiebelWest - --- Begin Function SSCam_getapisites nonblocking ---
2019.05.26 22:47:16.296 4: SSCam.GiebelWest - API hashvalues already set - ignore get apisites
2019.05.26 22:47:16.297 4: SSCam.GiebelWest - --- Begin Function SSCam_getcamid nonblocking ---
2019.05.26 22:47:16.297 4: SSCam.GiebelWest - CAMID already set - ignore get camid
2019.05.26 22:47:16.298 4: SSCam.GiebelWest - --- Begin Function Snap nonblocking ---
2019.05.26 22:47:16.311 4: SSCam.GiebelWest - Call-Out now: http://192.168.2.10:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.SnapShot"&dsId="0"&method="TakeSnapshot"&version="1"&camId="7"&blSave="true"&_sid="8UGhavMFqJ7AY14A0MIN235902"
2019.05.26 22:47:16.702 4: SSCam.GiebelWest - SSCam_refresh - caller: SSCamSTRM.SSCam.GiebelWest.switched, callerroom: Cams_RG, detail: "n.a.", pload: 0, forcePageRefresh: 0, event_STRMdev: 0
2019.05.26 22:47:16.721 3: SSCam.GiebelWest - Snapshot of Camera GiebelWest created. ID: 18578
2019.05.26 22:47:16.722 1: SSCam.GiebelWest - Snapshot number 2 (ID: 18578) of total 3 snapshots with transaction-ID: 3253 done
2019.05.26 22:47:18.723 1: SSCam.GiebelWest - Active-Token set by OPMODE: Snap
2019.05.26 22:47:18.724 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:18.725 4: SSCam.GiebelWest - ###    start cam operation Snap         
2019.05.26 22:47:18.726 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:18.726 4: SSCam.GiebelWest - --- Begin Function SSCam_getapisites nonblocking ---
2019.05.26 22:47:18.727 4: SSCam.GiebelWest - API hashvalues already set - ignore get apisites
2019.05.26 22:47:18.728 4: SSCam.GiebelWest - --- Begin Function SSCam_getcamid nonblocking ---
2019.05.26 22:47:18.728 4: SSCam.GiebelWest - CAMID already set - ignore get camid
2019.05.26 22:47:18.729 4: SSCam.GiebelWest - --- Begin Function Snap nonblocking ---
2019.05.26 22:47:18.738 4: SSCam.GiebelWest - Call-Out now: http://192.168.2.10:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.SnapShot"&dsId="0"&method="TakeSnapshot"&version="1"&camId="7"&blSave="true"&_sid="8UGhavMFqJ7AY14A0MIN235902"
2019.05.26 22:47:19.102 4: SSCam.GiebelWest - SSCam_refresh - caller: SSCamSTRM.SSCam.GiebelWest.switched, callerroom: Cams_RG, detail: "n.a.", pload: 0, forcePageRefresh: 0, event_STRMdev: 0
2019.05.26 22:47:19.118 3: SSCam.GiebelWest - Snapshot of Camera GiebelWest created. ID: 18579
2019.05.26 22:47:19.119 1: SSCam.GiebelWest - Snapshot number 3 (ID: 18579) of total 3 snapshots with transaction-ID: 3253 done
2019.05.26 22:47:19.121 1: SSCam.GiebelWest - start get snapinfo of last 3 snapshots with transaction-ID: 3253
2019.05.26 22:47:19.723 1: SSCam.GiebelWest - Active-Token set by OPMODE: getsnapgallery
2019.05.26 22:47:19.724 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:19.724 4: SSCam.GiebelWest - ###    start cam operation getsnapgallery         
2019.05.26 22:47:19.725 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:19.726 4: SSCam.GiebelWest - --- Begin Function SSCam_getapisites nonblocking ---
2019.05.26 22:47:19.726 4: SSCam.GiebelWest - API hashvalues already set - ignore get apisites
2019.05.26 22:47:19.727 4: SSCam.GiebelWest - --- Begin Function SSCam_getcamid nonblocking ---
2019.05.26 22:47:19.728 4: SSCam.GiebelWest - CAMID already set - ignore get camid
2019.05.26 22:47:19.729 4: SSCam.GiebelWest - --- Begin Function getsnapgallery nonblocking ---
2019.05.26 22:47:19.729 4: SSCam.GiebelWest - Call getsnapinfo with params: Image numbers => 3, Image size => 2, Keyword => GiebelWest
2019.05.26 22:47:19.730 4: SSCam.GiebelWest - Call-Out now: http://192.168.2.10:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.SnapShot"&method="List"&version="1"&keyword="GiebelWest"&imgSize="2"&limit="3"&_sid="8UGhavMFqJ7AY14A0MIN235902"
2019.05.26 22:47:20.228 4: SSCam.GiebelWest - Snapinfos of camera GiebelWest retrieved
2019.05.26 22:47:20.229 4: SSCam.GiebelWest - Snap [0]: ID => 18579, File => GiebelWest-20190526-2247189537.jpg, Created => 26.05.2019 / 22:47:18
2019.05.26 22:47:20.229 4: SSCam.GiebelWest - Snap [1]: ID => 18578, File => GiebelWest-20190526-2247165317.jpg, Created => 26.05.2019 / 22:47:16
2019.05.26 22:47:20.230 4: SSCam.GiebelWest - Snap [2]: ID => 18577, File => GiebelWest-20190526-2247141044.jpg, Created => 26.05.2019 / 22:47:13
2019.05.26 22:47:20.244 4: SSCam.GiebelWest - Snap '0' added to send gallery hash: ID => 18579, File => GiebelWest-20190526-2247189537.jpg, Created => 26.05.2019 / 22:47:18
2019.05.26 22:47:20.244 4: SSCam.GiebelWest - Snap '0' added to gallery hash: ID => 18579, File => GiebelWest-20190526-2247189537.jpg, Created => 26.05.2019 / 22:47:18
2019.05.26 22:47:20.245 4: SSCam.GiebelWest - Snap '1' added to send gallery hash: ID => 18578, File => GiebelWest-20190526-2247165317.jpg, Created => 26.05.2019 / 22:47:16
2019.05.26 22:47:20.246 4: SSCam.GiebelWest - Snap '1' added to gallery hash: ID => 18578, File => GiebelWest-20190526-2247165317.jpg, Created => 26.05.2019 / 22:47:16
2019.05.26 22:47:20.246 4: SSCam.GiebelWest - Snap '2' added to send gallery hash: ID => 18577, File => GiebelWest-20190526-2247141044.jpg, Created => 26.05.2019 / 22:47:13
2019.05.26 22:47:20.247 4: SSCam.GiebelWest - Snap '2' added to gallery hash: ID => 18577, File => GiebelWest-20190526-2247141044.jpg, Created => 26.05.2019 / 22:47:13
2019.05.26 22:47:20.249 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:20.249 4: SSCam.GiebelWest - ###   start send snapshot or recording by email     
2019.05.26 22:47:20.250 4: SSCam.GiebelWest - ####################################################
2019.05.26 22:47:20.250 4: SSCam.GiebelWest - version of loaded module "Net::SMTP" is "3.08_01"
2019.05.26 22:47:20.251 4: SSCam.GiebelWest - version of loaded module "MIME::Lite" is "3.030"
2019.05.26 22:47:20.251 4: SSCam.GiebelWest - param smtphost is now "sds1.myds.me"
2019.05.26 22:47:20.252 4: SSCam.GiebelWest - param part1txt is now "Eine Bewegung wurde am Giebel West registriert (26.05.2019 / 22:47:20)"
2019.05.26 22:47:20.252 4: SSCam.GiebelWest - param fname is now "image.jpg"
....
....


Update ist morgen früh verfügbar.

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

jonien

Hallo Heiko,
Zitat@Jörg, ich denke du solltest dein Regex in doif bzw. Notify ändern in

<PIR>:motion:.*on
...das ist ein guter Hinweis, ist mir irgendwie "durchgerutscht", da ich zu sehr auf die anderen Probleme fokusiert war.

Ich muss nochmal meine Anerkennung zum Ausdruck bringen, wie durchdacht und Anwenderfreundlich diese Modul aufgebaut ist. Zum Beispiel nur das automatische Anlegen der vorhanden Cams oder der Readingsgroup usw...

Mal sehen was das das neue Update für Hinweise gibt ...

LG Jörg

DS_Starter

#1624
Hallo zusammen,

ich habe eine neue Version 8.14.0 in mein contrib geladen.
Es gibt in der Detailansicht unterhalb der Statuszeile nun Drucktasten die je nach Device zur Konfigurationsseite der Kamera, zur SVS Seite bzw. zur SVS Online-Hilfe verzweigen.
Das Ganze ist von der eingestellten global Language abhängig.

Bezüglich der Konfigurationsseite der Kamera bin ich zunächst davon ausgegangen dass sie bei allen Cams direkt über die IP-Adresse erreichbar ist. Sollte das nicht so sein, kann auch noch ein Attribut zur Einstellung angeboten werden. Würde ich aber erst bei Bedarf tun.

Download und Restart:
https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter  (Downloadbutton benutzen)

Vielleicht gefällt und hilft es bei der Administration.

EDIT: ist eingecheckt

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

Frank77

Hallo zusammen,
ich habe meine Synology DS116 auf DSM 6.2.2-24922 aktualisiert. Seitdem bekomme ich meinen Videostream nicht mehr angezeigt. Der Aufruf erfolgt mit dem SSCam Reading StmKeymjpegHttp
wie zum Beispiel: [url="http://xxx.xxx.xxx.xxx:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mjpeg&cameraId=1&StmKey="1ca4f2e49d7953079bd239baf9c1cdfe""]http://xxx.xxx.xxx.xxx:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mjpeg&cameraId=1&StmKey="1ca4f2e49d7953079bd239baf9c1cdfe"[/url]

Hat jemand ähnliche Probleme oder eine Idee wie ich das Problem beheben kann. In der Surveillance Station funktioniert die Kamera einwandrei. Auch in Fhem sind die Readings in Ordnung. Snap-Shots funktionieren. Nur den obigen Stream bekomme ich nicht zum Laufen.

Viele Grüße
Frank

DS_Starter

#1626
Hallo Frank,

Schau dir mal den Beitrag von mir an -> https://forum.fhem.de/index.php/topic,45671.msg916536.html#msg916536
Du musst wahrscheinlich den von Synology bereitgestellten Patch für SVS 8.2.3 einspielen. (Ein Beitrag darunter)

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

Frank77

Hallo Heiko,

vielen Dank für die Info. Hat geklappt.

Viele Grüße,
Frank

Falkenstein

Hallo Heiko,

ich betreibe die Surveillance Station mit einer Wansview Q3 Kamera.An Hand Deines sehr ausführlichen WIKI Artikels habe ich nun auch mir das Modul SSCAM in Fhem eingerichtet.

An einem Punkt komme ich nun aber nicht weiter.Ich kann über das SSCAM Modul keine gespeicherten Kamerapositionen anfahren.Ich erahlte dabei folgende Fehlermeldungen im Event Monitor:

2019-06-22 16:20:58 SSCam SSCam.IPCAM_Garage Errorcode: 600
2019-06-22 16:20:58 SSCam SSCam.IPCAM_Garage Error: Presetname and PresetID not found in Hash
2019-06-22 16:21:03 SSCam SSCam.IPCAM_Garage Errorcode: 600
2019-06-22 16:21:03 SSCam SSCam.IPCAM_Garage Error: Presetname and PresetID not found in Hash
2019-06-22 16:21:07 SSCam SSCam.IPCAM_Garage goPreset home
2019-06-22 16:21:09 SSCam SSCam.IPCAM_Garage Errorcode: 401
2019-06-22 16:21:09 SSCam SSCam.IPCAM_Garage Error: Parameter invalid



Die gespeicherten Presets haben den Namen Home, Preset 1 und Preset 2.Diese habe ich auf der Webseite der Kamera angelegt und die Surveillance Station hat sie auch automatisch übernommen und funktionieren in Surveillance Station Weboberfläche ohne Probleme


Wo liegt da der Fehler oder was ist falsch an meiner Konfiguration?

Vielen dank im voraus,

Beste Grüße
Falkes

DS_Starter

Hallo Falkes,

da müssen wir mal tiefer schauen. Es gibt ein Reading "Presets" bei PTZ-Cams.
Was steht denn bei dir dort drin ?

Bzw. poste doch mal bitte ein komplettes list deiner Cam.

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

Falkenstein

Hallo Heiko,

vielen Dank Deiner Hilfe  :)

Das List meiner Cam:

Internals:
   CAMID      15
   CAMNAME    IPCAM-Garage
   CFGFN     
   COMPATIBILITY 8.2.3
   CREDENTIALS Set
   DEF        IPCAM-Garage 192.168.1.250 5000
   FUUID      5d0e3589-f33f-178a-ef8a-8b8642bc2d98289f
   FVERSION   49_SSCam.pm:v8.14.0-s19552/2019-06-04
   MODEL      WansView - Q3
   NAME       SSCam.IPCAM_Garage
   NR         4121
   OPMODE     Getptzlistpreset
   PROTOCOL   http
   SERVERADDR 192.168.1.250
   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 eKKf|qv[Z|ukGC3VUH8TW@?
     GOPRESETNAME home
     HLSSTREAM  inactive
     KEYWORD    IPCAM-Garage
     LOGINRETRIES 0
     OLDPRESETS Preset 1,Preset 2,home
     OLDPTZHOME goPreset home
     OLDVALPOLL 210
     OLDVALPOLLNOLOGGING 1
     PACKAGE    main
     PTZACTION  gopreset
     RECTIME_DEF 15
     SID        cXoRcZlz.Zfas1850PEN285604
     SNAPIMGSIZE 1
     SNAPLIMIT  1
     STMKEYMJPEGHTTP http://192.168.1.250:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mjpeg&cameraId=15&StmKey="258dedc482a38e233b16787dabc60982"
     STMKEYMXPEGHTTP http://192.168.1.250:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mxpeg&cameraId=15&StmKey="258dedc482a38e233b16787dabc60982"
     STMKEYUNICST rtsp://syno:258dedc482a38e233b16787dabc60982@192.168.1.250:554/Sms=15.unicast
     STMKEYUNICSTOVERHTTP rtsp://192.168.1.250:5000/webman/3rdparty/SurveillanceStation/cgi/rtsp.cgi?Sms=15.unicast&DsId=0&StmKey=258dedc482a38e233b16787dabc60982
     STRMDETAIL
     STRMDEV   
     STRMROOM   
     TOTALCNT   218
     VERSION    8.14.0
     ALLPATROLS:
     ALLPRESETS:
       Preset 1   0
       Preset 2   1
       home       -1
     SVSVERSION:
       BUILD      5847
       MAJOR      8
       MINOR      2
       SMALL      4
   READINGS:
     2019-06-22 16:34:38   Availability    enabled
     2019-06-22 16:34:38   CamAudioType    Unknown
     2019-06-22 16:34:37   CamEventNum     0
     2019-06-22 16:34:38   CamExposureControl Unknown
     2019-06-22 16:34:38   CamExposureMode Unknown
     2019-06-22 16:34:38   CamIP           192.168.1.31
     2019-06-22 16:34:38   CamLiveFps      10
     2019-06-22 16:34:38   CamLiveMode     Liveview from DS
     2019-06-22 16:34:38   CamLiveQuality  5
     2019-06-22 16:34:38   CamLiveResolution 1280x720
     2019-06-22 16:34:38   CamLiveStreamNo 1
     2019-06-22 16:34:38   CamModel        Q3
     2019-06-22 16:34:38   CamMotDetSc     SVS, sensitivity: 90, threshold: 10
     2019-06-22 16:34:38   CamPort         80
     2019-06-22 16:34:38   CamPreRecTime   5
     2019-06-22 16:34:38   CamPtSpeed      3
     2019-06-22 16:34:38   CamRecShare     surveillance
     2019-06-22 16:34:38   CamRecVolume    /volume1
     2019-06-22 16:34:40   CamStreamFormat HLS
     2019-06-22 16:34:38   CamVendor       WansView
     2019-06-22 16:34:38   CamVideoFlip    true
     2019-06-22 16:34:38   CamVideoMirror  true
     2019-06-22 16:34:38   CamVideoRotate  false
     2019-06-22 16:34:38   CamVideoType    H.264
     2019-06-22 16:34:38   CamblPresetSpeed false
     2019-06-22 16:34:38   CapAudioOut     false
     2019-06-22 16:34:38   CapChangeSpeed  true
     2019-06-22 16:34:38   CapPIR          false
     2019-06-22 16:34:38   CapPTZAbs       false
     2019-06-22 16:34:38   CapPTZAutoFocus false
     2019-06-22 16:34:38   CapPTZDirections 4
     2019-06-22 16:34:38   CapPTZFocus     false
     2019-06-22 16:34:38   CapPTZHome      true
     2019-06-22 16:34:38   CapPTZIris      false
     2019-06-22 16:34:38   CapPTZObjTracking false
     2019-06-22 16:34:38   CapPTZPan       support continuous operation
     2019-06-22 16:34:38   CapPTZPresetNumber 8
     2019-06-22 16:34:38   CapPTZTilt      support continuous operation
     2019-06-22 16:34:38   CapPTZZoom      false
     2019-06-22 16:34:38   DeviceType      PTZ
     2019-06-22 16:34:41   Error           none
     2019-06-22 16:34:41   Errorcode       none
     2019-06-22 16:34:38   LastSnapFilename IPCAM-Garage-20190619-1410424806.jpg
     2019-06-22 16:34:38   LastSnapId      619
     2019-06-22 16:34:38   LastSnapTime    19.06.2019 / 14:10:42
     2019-06-22 16:34:38   LastUpdateTime  22.06.2019 / 16:34:38
     2019-06-22 16:34:39   Patrols         
     2019-06-22 16:34:37   PollState       Active - next time: 16:38:07
     2019-06-22 16:34:41   PresetHome      home
     2019-06-22 16:34:41   Presets         Preset 1,Preset 2,home
     2019-06-22 16:34:38   Record          Stop
     2019-06-22 16:34:40   SVScustomPortHttps 9901
     2019-06-22 16:34:40   SVSlicenseNumber 2
     2019-06-22 16:34:40   SVSuserPriv     Admin
     2019-06-22 16:34:40   SVSversion      8.2.4-5847
     2019-06-22 16:34:39   StmKey          "258dedc482a38e233b16787dabc60982"
     2019-06-22 16:34:38   UsedSpaceMB     0
     2019-06-22 16:34:38   VideoFolder     /volume1/surveillance/IPCAM-Garage
     2019-06-22 16:34:40   compstate       false
     2019-06-22 16:34:38   state           off
Attributes:
   devStateIcon .*isable.*:set_off .*nap:li_wht_on
   httptimeout 20
   icon       it_camera
   pollcaminfoall 210
   pollnologging 1
   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       IPCam
   session    DSM
   userattr   1,Preset 2,home ptzPanel_Home:Preset 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


Und hier ein Auszug aus dem Logfile:

2019.06.22 16:41:10 2: SSCam.IPCAM_Garage - ERROR - Operation gopreset of Camera IPCAM-Garage was not successful. Errorcode: 401 - Parameter invalid
2019.06.22 16:41:17 2: SSCam.IPCAM_Garage - ERROR - goPreset to position "Preset" of Camera IPCAM-Garage can't be executed - Presetname and PresetID not found in Hash
2019.06.22 16:41:23 2: SSCam.IPCAM_Garage - ERROR - goPreset to position "Preset" of Camera IPCAM-Garage can't be executed - Presetname and PresetID not found in Hash



Beste Grüße
Falkes

DS_Starter

Gerne  :D

Ich vermute zwei Dinge.


ALLPRESETS:
       Preset 1   0
       Preset 2   1
       home       -1


Punkt 1 wird vermutlich sein, dass ich momentan im Modul mit den Leerzeichen im Presetnamen nicht klarkomme.
Also "Preset 1" müsste zum Beispiel in "Preset_1" umbenannt werden.

Die zweite Sache ist dass "home" klein geschrieben ist, du aber von "Home" geschrieben hast.
Sowas kenne ich aber auch von meiner PTZ-Cam in dem Fall wenn man diese Positionen in dem Web-Interface der Cam angelegt hat.

Also ich würde dir vorschlagen, die Presets erstmal alle komplett zu löschen und einen Pollzyklus abzuwarten damit das Modul die aktuellen Infos hat.
Danach kannst du die Presets wieder direkt über das Modul anlegen.
Du fährst die Cam in die gewünschte Position und legst dann den Preset an.

Dazu kannst du die Befehle benutzen:

  set <name> setPreset <PresetNummer> [<PresetName>]
  z.B.
   set IPCAM-Garage setPreset 1 Preset_1
   set IPCAM-Garage setPreset 2 Preset_2   
   set IPCAM-Garage setPreset 3 Home

bzw. danach

  set <name> setHome Home

So müsste es problemlos klappen. Lies auch mal die Beschreibung in der Commandref dazu.

Probier mal.

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

Falkenstein

So ähnlich habe ich es auch schon versucht.Meine Vermutung war auch,das ein Leerzeichen im Preset Namen ist.Doch leider kann ich keine Kamerapositionen in der Surveillance Station manuell anlegen.Diese werden einfach nicht abgspeichert.Somit kann ich nur die Kamerapositionen im Web-Interface der Cam anlegen.

Das wird dann sicherlich auch nicht möglich sein die Presets aus dem Modul SSCAM an zu legen,weil diese ja dann wieder in der Surveillance Station gespeichert werden.Dies ist ja bei mir leider nicht möglich.


Beste Grüße
Lars

DS_Starter

Das hört sich natürlich nicht so gut an.
Wenn du über SVS die Presets nicht anlegen kannst, funktioniert es über das Modul auch nicht. Hast du die Cam in der SVS als Typ ONVIF angelegt ? Wenn nicht, könnte das helfen.
Hmm, zunächst würde ich dir aber vorschlagen in dem Webinterface der Cam die Presets zu löschen und neu ohne Leerzeichen anzulegen.
Und dazu noch ein Preset "Home" wenn die Cam in der Homeposition steht. Das kleine "home" wird es zwar weiterhin geben, aber das ignorieren wir jetzt mal.
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

Falkenstein

Ich kann beim anlegen der Kamerapositionen im Web-Interface der Cam leider keine Namen vergeben.Ich kann nur von 1-8 in in einen Feld aussuchen,der Name des Presets erscheint da automatisch in der Surveillance Station als Preset 1 mit Leerzeichen.Von der Surveillance Station kann ich aber dann die Position auch anfahren.

Der Tip die Cam in der SVS als Typ ONVIF an zu legen hat leider auch nichts gebracht  :-\ Ich kann da keine Kamerapositionen anlegen.

Beste Grüße
Lars