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

Gibt verschiedene Varianten.
Entweder mit dem Installer falls du den schon eingerichtet hast, oder mit:

cpan CHI

oder

cpanm CHI

oder

sudo apt-get install libchi-perl


Ich würde entweder den Installer oder eine der cpan-Methoden bevorzugen.

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

stobor

Ich werde die Cache-Option einmal probieren.

Ich habe gerade einmal folgendes probiert:

Über einen Test-Button kann ich diese Funktion aufrufen:
    my ($sSender) = @_;
    my $sAlias = AttrVal($sSender, "alias", "$sSender - Alias n.a.");
       
            my $date = strftime "%a %e.%m.%Y %H.%M.%S", localtime;

            fhem "attr SSCam.Ost snapEmailTxt \"subject => PIR-Alarm $sAlias, body => <br><hr><br>$date<br>Auslöser $sSender<br><hr><br>Kamera Ost<br>Snapshot-time #CTIME - #FILE<br><hr><br><br><br>TEST sub BewegungImOsten<br>\"";
            fhem "set SSCam.Ost snap 6 2";

            fhem "attr SSCam.NordOst snapEmailTxt \"subject => PIR-Alarm $sAlias, body => <br><hr><br>$date<br>Auslöser $sSender<br><hr><br>Kamera NordOst<br>Snapshot-time #CTIME - #FILE<br><hr><br><br><hr><br>TEST sub BewegungImOsten<br>\"";
            fhem "set SSCam.NordOst snap 6 2";

            fhem "attr SSCam.Carport snapEmailTxt \"subject => PIR-Alarm $sAlias, body => <br><hr><br>$date<br>Auslöser $sSender<br><hr><br>Kamera Carport<br>Snapshot-time #CTIME - #FILE<br><hr><br><br><hr><br>TEST sub BewegungImOsten<br>\"";
            fhem "set SSCam.Carport snap 6 2";

Aktuell liegt meine CPU-Last bei 1-3%:
Du darfst diesen Dateianhang nicht ansehen.

Wenn ich jetzt innerhalb weniger Minuten den obigen Code aufrufe ( um 12:52:15 , 12:52:50 , 12:53:30 , 12:53:50 , 12:54:15 , 12:54:30 , 12:54:45 , 12:54:55 , 12:55:15 , 12:55:20 , 12:55:25 , 12:65:10/11/12/13/14/15), steigt die CPU-Last stark an und sinkt auch nicht wieder:
Du darfst diesen Dateianhang nicht ansehen.
(von 13:17)

Typischerweise schaukelt sich das im laufe der Tage immer mehr hoch, so das FHEM fast nicht mehr reagiert - sofern häufiger Mails generiert werden.

Übrigens nach einem shutdown restart:
Du darfst diesen Dateianhang nicht ansehen.

Ich werde das einmal mit den rawmem Settings ausprobieren.
Intel NUC (Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-113-generic x86_64))  mit CUL V3.2 (FW 1.57 CUL868) für FS20 und CCU3 für HM(IP) + Arduino Mega (Firmata) - FHEM Revision: 29534 - FS20, HM(IP), MQTT, Philips HUE, ModBus

DS_Starter

Das ist wirklich interessant. Wie geschrieben, kenne ich das bei mir nicht.
Bei mir sind die Attr snapEmailTxt immer fest eingestellt und nur die Snaps werden ausgelöst und dann entsprechend versendet.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stobor

Ich habe jetzt den Testbutton erneut mehrfach betätigt - mit gesetztem cachetype=rawmem.

15:25:45 , 15:26:15 , 15:26:30 , 15:26:40 , 15:26:50 , 15:27:15 , 15:27:30 , 15:27:35 , 15:27:40 , 15:27:45 , 15:29:15/16/.../30:
Du darfst diesen Dateianhang nicht ansehen.

Leider erholt sich auch jetzt die Last nicht:
Du darfst diesen Dateianhang nicht ansehen.
(15:34)


Im Log (verbose=4) sehe ich häufiger:
Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.Ost - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:27 4: SSCam.NordOst - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:27 4: SSCam.Carport - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:27 4: SSCam.Mobil1 - Snapinfos of camera Mobil1 retrieved
2025.05.20 15:29:27 4: SSCam.Mobil1 - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.Mobil1 - Snap [0]: ID => 3686070, File => Mobil1-20250520-0908178232-Cam-13-Type-0.jpg, Created => 2025-05-20 / 09:08:17
2025.05.20 15:29:27 4: SSCam.Mobil1 - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.Mobil1 - Cache key "{SNAPHASH}{0}{snapid}" removed
2025.05.20 15:29:27 4: SSCam.Mobil1 - Cache key "{SNAPHASH}{0}{createdTm}" removed
2025.05.20 15:29:27 4: SSCam.Mobil1 - Cache key "{SNAPHASH}{0}{fileName}" removed
2025.05.20 15:29:27 4: SSCam.Mobil1 - Cache key "{SNAPHASH}{0}{imageData}" removed
2025.05.20 15:29:27 4: SSCam.Mobil1 - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.Mobil1 - Snap '0' added to gallery view hash: SN => 0, ID => 3686070, File => Mobil1-20250520-0908178232-Cam-13-Type-0.jpg, Created => 2025-05-20 / 09:08:17
2025.05.20 15:29:27 4: SSCam.Mobil1 - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.Mobil1 - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.West - Snapinfos of camera West retrieved
2025.05.20 15:29:27 4: SSCam.West - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.West - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.West - Cache key "{SNAPHASH}{0}{snapid}" removed
2025.05.20 15:29:27 4: SSCam.West - Cache key "{SNAPHASH}{0}{createdTm}" removed
2025.05.20 15:29:27 4: SSCam.West - Cache key "{SNAPHASH}{0}{fileName}" removed
2025.05.20 15:29:27 4: SSCam.West - Cache key "{SNAPHASH}{0}{imageData}" removed
2025.05.20 15:29:27 4: SSCam.West - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.West - Cache key "{SNAPOLDHASH}{0}{snapid}" removed
2025.05.20 15:29:27 4: SSCam.West - Cache key "{SNAPOLDHASH}{0}{createdTm}" removed
2025.05.20 15:29:27 4: SSCam.West - Cache key "{SNAPOLDHASH}{0}{fileName}" removed
2025.05.20 15:29:27 4: SSCam.West - Cache key "{SNAPOLDHASH}{0}{imageData}" removed
2025.05.20 15:29:27 4: SSCam.West - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.WestPTZ - Snapinfos of camera WestPTZ retrieved
2025.05.20 15:29:27 4: SSCam.WestPTZ - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.WestPTZ - Snap [0]: ID => 3686698, File => WestPTZ-20250520-1505510473-Cam-12-Type-0.jpg, Created => 2025-05-20 / 15:05:50
2025.05.20 15:29:27 4: SSCam.WestPTZ - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.WestPTZ - Cache key "{SNAPHASH}{0}{snapid}" removed
2025.05.20 15:29:27 4: SSCam.WestPTZ - Cache key "{SNAPHASH}{0}{createdTm}" removed
2025.05.20 15:29:27 4: SSCam.WestPTZ - Cache key "{SNAPHASH}{0}{fileName}" removed
2025.05.20 15:29:27 4: SSCam.WestPTZ - Cache key "{SNAPHASH}{0}{imageData}" removed
2025.05.20 15:29:27 4: SSCam.WestPTZ - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.WestPTZ - Snap '0' added to gallery view hash: SN => 0, ID => 3686698, File => WestPTZ-20250520-1505510473-Cam-12-Type-0.jpg, Created => 2025-05-20 / 15:05:50
2025.05.20 15:29:27 4: SSCam.WestPTZ - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.WestPTZ - Cache "rawmem" is already initialized
2025.05.20 15:29:27 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:27 4: SSCam.Mobil1 - ###    start cam operation geteventlist         
2025.05.20 15:29:27 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:27 4: SSCam.Mobil1 - --- Start getCamId ---
2025.05.20 15:29:27 4: SSCam.Mobil1 - CAMID already set - ignore get camid
2025.05.20 15:29:27 4: SSCam.Mobil1 - --- Start geteventlist ---
2025.05.20 15:29:27 4: SSCam.Mobil1 - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Event"&version="5"&method="List"&cameraIds="13"&locked="0"&blIncludeSnapshot="false"&reason=""&limit="2"&includeAllCam="false"&_sid="DVcTYGAU2B-RKaYjbhcJBgn-rZl4KgsbUNxeJZlogUQY7bCKxNLRq3cT6vqGZLIoN2VjVFgKvONMGfeamwU258"
2025.05.20 15:29:27 4: SSCam.West - ####################################################
2025.05.20 15:29:27 4: SSCam.West - ###    start cam operation geteventlist         
2025.05.20 15:29:27 4: SSCam.West - ####################################################
2025.05.20 15:29:27 4: SSCam.West - --- Start getCamId ---
2025.05.20 15:29:27 4: SSCam.West - CAMID already set - ignore get camid
2025.05.20 15:29:27 4: SSCam.West - --- Start geteventlist ---
2025.05.20 15:29:27 4: SSCam.West - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Event"&version="5"&method="List"&cameraIds="1"&locked="0"&blIncludeSnapshot="false"&reason=""&limit="2"&includeAllCam="false"&_sid="n1lz70cfHHXGYj-SKDG4IvOvQwFkEkDaVq7LpwKUEgMYQcPh0c-EwimEVQVFYFtc2Llry4r9-Ja-Dh5mtydKIk"
2025.05.20 15:29:27 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:27 4: SSCam.WestPTZ - ###    start cam operation geteventlist         
2025.05.20 15:29:27 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:27 4: SSCam.WestPTZ - --- Start getCamId ---
2025.05.20 15:29:27 4: SSCam.WestPTZ - CAMID already set - ignore get camid
2025.05.20 15:29:27 4: SSCam.WestPTZ - --- Start geteventlist ---
2025.05.20 15:29:27 4: SSCam.WestPTZ - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Event"&version="5"&method="List"&cameraIds="12"&locked="0"&blIncludeSnapshot="false"&reason=""&limit="2"&includeAllCam="false"&_sid="OAIPXB8GY82im2FslcKMwTtxiR2uKCLEqcJTUGz6F6U8ni92AKZTJD7TBye3UyFQrB1oYDl55MrUh6YyWSnE2c"
2025.05.20 15:29:27 4: SSCam.West - Query eventlist of camera West retrieved
2025.05.20 15:29:27 4: SSCam.Mobil1 - Query eventlist of camera Mobil1 retrieved
2025.05.20 15:29:27 4: SSCam.WestPTZ - Query eventlist of camera WestPTZ retrieved
2025.05.20 15:29:28 1: TEST #####################################
2025.05.20 15:29:28 4: SSCam.Ost - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:28 4: SSCam.NordOst - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:28 4: SSCam.Carport - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:29 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:29 4: SSCam.Mobil1 - ###    start cam operation getmotionenum         
2025.05.20 15:29:29 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:29 4: SSCam.Mobil1 - --- Start getCamId ---
2025.05.20 15:29:29 4: SSCam.Mobil1 - CAMID already set - ignore get camid
2025.05.20 15:29:29 4: SSCam.Mobil1 - --- Start getmotionenum ---
2025.05.20 15:29:29 4: SSCam.Mobil1 - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera.Event"&version="1"&method="MotionEnum"&camId="13"&_sid="DVcTYGAU2B-RKaYjbhcJBgn-rZl4KgsbUNxeJZlogUQY7bCKxNLRq3cT6vqGZLIoN2VjVFgKvONMGfeamwU258"
2025.05.20 15:29:29 1: TEST #####################################
2025.05.20 15:29:29 4: SSCam.Ost - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:29 4: SSCam.NordOst - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:29 4: SSCam.Carport - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:29 4: SSCam.West - ####################################################
2025.05.20 15:29:29 4: SSCam.West - ###    start cam operation getmotionenum         
2025.05.20 15:29:29 4: SSCam.West - ####################################################
2025.05.20 15:29:29 4: SSCam.West - --- Start getCamId ---
2025.05.20 15:29:29 4: SSCam.West - CAMID already set - ignore get camid
2025.05.20 15:29:29 4: SSCam.West - --- Start getmotionenum ---
2025.05.20 15:29:29 4: SSCam.West - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera.Event"&version="1"&method="MotionEnum"&camId="1"&_sid="n1lz70cfHHXGYj-SKDG4IvOvQwFkEkDaVq7LpwKUEgMYQcPh0c-EwimEVQVFYFtc2Llry4r9-Ja-Dh5mtydKIk"
2025.05.20 15:29:29 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:29 4: SSCam.WestPTZ - ###    start cam operation getmotionenum         
2025.05.20 15:29:29 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:29 4: SSCam.WestPTZ - --- Start getCamId ---
2025.05.20 15:29:29 4: SSCam.WestPTZ - CAMID already set - ignore get camid
2025.05.20 15:29:29 4: SSCam.WestPTZ - --- Start getmotionenum ---
2025.05.20 15:29:29 4: SSCam.WestPTZ - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera.Event"&version="1"&method="MotionEnum"&camId="12"&_sid="OAIPXB8GY82im2FslcKMwTtxiR2uKCLEqcJTUGz6F6U8ni92AKZTJD7TBye3UyFQrB1oYDl55MrUh6YyWSnE2c"
2025.05.20 15:29:29 4: SSCam.Mobil1 - Enumerate motion detection parameters of camera Mobil1 retrieved
2025.05.20 15:29:29 4: SSCam.WestPTZ - Enumerate motion detection parameters of camera WestPTZ retrieved
2025.05.20 15:29:30 4: SSCam.West - Enumerate motion detection parameters of camera West retrieved
2025.05.20 15:29:30 1: TEST #####################################
2025.05.20 15:29:30 4: SSCam.Ost - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:30 4: SSCam.NordOst - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:30 4: SSCam.Carport - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:31 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:31 4: SSCam.Mobil1 - ###    start cam operation Getcaminfo         
2025.05.20 15:29:31 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:31 4: SSCam.Mobil1 - --- Start getCamId ---
2025.05.20 15:29:31 4: SSCam.Mobil1 - CAMID already set - ignore get camid
2025.05.20 15:29:31 4: SSCam.Mobil1 - --- Start Getcaminfo ---
2025.05.20 15:29:31 4: SSCam.Mobil1 - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera"&version="8"&method="GetInfo"&cameraIds="13"&deviceOutCap="true"&streamInfo="true"&ptz="true"&basic="true"&camAppInfo="true"&optimize="true"&fisheye="true"&eventDetection="true"&_sid="DVcTYGAU2B-RKaYjbhcJBgn-rZl4KgsbUNxeJZlogUQY7bCKxNLRq3cT6vqGZLIoN2VjVFgKvONMGfeamwU258"
2025.05.20 15:29:31 4: SSCam.West - ####################################################
2025.05.20 15:29:31 4: SSCam.West - ###    start cam operation Getcaminfo         
2025.05.20 15:29:31 4: SSCam.West - ####################################################
2025.05.20 15:29:31 4: SSCam.West - --- Start getCamId ---
2025.05.20 15:29:31 4: SSCam.West - CAMID already set - ignore get camid
2025.05.20 15:29:31 4: SSCam.West - --- Start Getcaminfo ---
2025.05.20 15:29:31 4: SSCam.West - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera"&version="8"&method="GetInfo"&cameraIds="1"&deviceOutCap="true"&streamInfo="true"&ptz="true"&basic="true"&camAppInfo="true"&optimize="true"&fisheye="true"&eventDetection="true"&_sid="n1lz70cfHHXGYj-SKDG4IvOvQwFkEkDaVq7LpwKUEgMYQcPh0c-EwimEVQVFYFtc2Llry4r9-Ja-Dh5mtydKIk"
2025.05.20 15:29:31 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:31 4: SSCam.WestPTZ - ###    start cam operation Getcaminfo         
2025.05.20 15:29:31 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:31 4: SSCam.WestPTZ - --- Start getCamId ---
2025.05.20 15:29:31 4: SSCam.WestPTZ - CAMID already set - ignore get camid
2025.05.20 15:29:31 4: SSCam.WestPTZ - --- Start Getcaminfo ---
2025.05.20 15:29:31 4: SSCam.WestPTZ - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera"&version="8"&method="GetInfo"&cameraIds="12"&deviceOutCap="true"&streamInfo="true"&ptz="true"&basic="true"&camAppInfo="true"&optimize="true"&fisheye="true"&eventDetection="true"&_sid="OAIPXB8GY82im2FslcKMwTtxiR2uKCLEqcJTUGz6F6U8ni92AKZTJD7TBye3UyFQrB1oYDl55MrUh6YyWSnE2c"
2025.05.20 15:29:31 4: SSCam.Mobil1 - Informations of camera Mobil1 retrieved
2025.05.20 15:29:31 1: TEST #####################################
2025.05.20 15:29:31 4: SSCam.Ost - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:31 4: SSCam.NordOst - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:31 4: SSCam.Carport - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:32 4: SSCam.WestPTZ - Informations of camera WestPTZ retrieved
2025.05.20 15:29:32 4: SSCam.West - Informations of camera West retrieved
2025.05.20 15:29:32 4: SSCam.West - Retrieval of Presets for West can't be executed - West is not a PTZ-Camera
2025.05.20 15:29:32 4: SSCam.West - Retrieval of Patrols for West can't be executed - West is not a PTZ-Camera
2025.05.20 15:29:33 1: TEST #####################################
2025.05.20 15:29:33 4: SSCam.Ost - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:33 4: SSCam.NordOst - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:33 4: SSCam.Carport - Trigger snapshots - Number: 6, Lag: 2
2025.05.20 15:29:33 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:33 4: SSCam.Mobil1 - ###    start cam operation getStmUrlPath         
2025.05.20 15:29:33 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:33 4: SSCam.Mobil1 - --- Start getCamId ---
2025.05.20 15:29:33 4: SSCam.Mobil1 - CAMID already set - ignore get camid
2025.05.20 15:29:33 4: SSCam.Mobil1 - --- Start getStmUrlPath ---
2025.05.20 15:29:33 4: SSCam.Mobil1 - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera"&version=9&method="GetLiveViewPath"&idList="13"&_sid="DVcTYGAU2B-RKaYjbhcJBgn-rZl4KgsbUNxeJZlogUQY7bCKxNLRq3cT6vqGZLIoN2VjVFgKvONMGfeamwU258"
2025.05.20 15:29:33 4: SSCam.West - ####################################################
2025.05.20 15:29:33 4: SSCam.West - ###    start cam operation getStmUrlPath         
2025.05.20 15:29:33 4: SSCam.West - ####################################################
2025.05.20 15:29:33 4: SSCam.West - --- Start getCamId ---
2025.05.20 15:29:33 4: SSCam.West - CAMID already set - ignore get camid
2025.05.20 15:29:33 4: SSCam.West - --- Start getStmUrlPath ---
2025.05.20 15:29:33 4: SSCam.West - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera"&version=9&method="GetLiveViewPath"&idList="1"&_sid="n1lz70cfHHXGYj-SKDG4IvOvQwFkEkDaVq7LpwKUEgMYQcPh0c-EwimEVQVFYFtc2Llry4r9-Ja-Dh5mtydKIk"
2025.05.20 15:29:33 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:33 4: SSCam.WestPTZ - ###    start cam operation getStmUrlPath         
2025.05.20 15:29:33 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:33 4: SSCam.WestPTZ - --- Start getCamId ---
2025.05.20 15:29:33 4: SSCam.WestPTZ - CAMID already set - ignore get camid
2025.05.20 15:29:33 4: SSCam.WestPTZ - --- Start getStmUrlPath ---
2025.05.20 15:29:33 4: SSCam.WestPTZ - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Camera"&version=9&method="GetLiveViewPath"&idList="12"&_sid="OAIPXB8GY82im2FslcKMwTtxiR2uKCLEqcJTUGz6F6U8ni92AKZTJD7TBye3UyFQrB1oYDl55MrUh6YyWSnE2c"
2025.05.20 15:29:33 4: SSCam.Mobil1 - Stream-URLs of camera Mobil1 retrieved
2025.05.20 15:29:33 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:33 4: SSCam.Mobil1 - ###    start cam operation Getptzlistpreset         
2025.05.20 15:29:33 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:33 4: SSCam.Mobil1 - --- Start getCamId ---
2025.05.20 15:29:33 4: SSCam.Mobil1 - CAMID already set - ignore get camid
2025.05.20 15:29:33 4: SSCam.Mobil1 - --- Start Getptzlistpreset ---
2025.05.20 15:29:33 4: SSCam.Mobil1 - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.PTZ"&version="6"&method=ListPreset&cameraId=13&_sid="DVcTYGAU2B-RKaYjbhcJBgn-rZl4KgsbUNxeJZlogUQY7bCKxNLRq3cT6vqGZLIoN2VjVFgKvONMGfeamwU258"
2025.05.20 15:29:33 4: SSCam.WestPTZ - Stream-URLs of camera WestPTZ retrieved
2025.05.20 15:29:33 4: SSCam.West - Stream-URLs of camera West retrieved
2025.05.20 15:29:34 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:34 4: SSCam.WestPTZ - ###    start cam operation Getptzlistpreset         
2025.05.20 15:29:34 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:34 4: SSCam.WestPTZ - --- Start getCamId ---
2025.05.20 15:29:34 4: SSCam.WestPTZ - CAMID already set - ignore get camid
2025.05.20 15:29:34 4: SSCam.WestPTZ - --- Start Getptzlistpreset ---
2025.05.20 15:29:34 4: SSCam.WestPTZ - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.PTZ"&version="6"&method=ListPreset&cameraId=12&_sid="OAIPXB8GY82im2FslcKMwTtxiR2uKCLEqcJTUGz6F6U8ni92AKZTJD7TBye3UyFQrB1oYDl55MrUh6YyWSnE2c"
2025.05.20 15:29:34 4: SSCam.Mobil1 - PTZ Presets of camera Mobil1 retrieved
2025.05.20 15:29:34 4: SSCam.WestPTZ - PTZ Presets of camera WestPTZ retrieved
2025.05.20 15:29:35 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:35 4: SSCam.Mobil1 - ###    start cam operation Getptzlistpatrol         
2025.05.20 15:29:35 4: SSCam.Mobil1 - ####################################################
2025.05.20 15:29:35 4: SSCam.Mobil1 - --- Start getCamId ---
2025.05.20 15:29:35 4: SSCam.Mobil1 - CAMID already set - ignore get camid
2025.05.20 15:29:35 4: SSCam.Mobil1 - --- Start Getptzlistpatrol ---
2025.05.20 15:29:35 4: SSCam.Mobil1 - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.PTZ&version=6&method=ListPatrol&cameraId=13&_sid="DVcTYGAU2B-RKaYjbhcJBgn-rZl4KgsbUNxeJZlogUQY7bCKxNLRq3cT6vqGZLIoN2VjVFgKvONMGfeamwU258"
2025.05.20 15:29:36 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:36 4: SSCam.WestPTZ - ###    start cam operation Getptzlistpatrol         
2025.05.20 15:29:36 4: SSCam.WestPTZ - ####################################################
2025.05.20 15:29:36 4: SSCam.WestPTZ - --- Start getCamId ---
2025.05.20 15:29:36 4: SSCam.WestPTZ - CAMID already set - ignore get camid
2025.05.20 15:29:36 4: SSCam.WestPTZ - --- Start Getptzlistpatrol ---
2025.05.20 15:29:36 4: SSCam.WestPTZ - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.PTZ&version=6&method=ListPatrol&cameraId=12&_sid="OAIPXB8GY82im2FslcKMwTtxiR2uKCLEqcJTUGz6F6U8ni92AKZTJD7TBye3UyFQrB1oYDl55MrUh6YyWSnE2c"
2025.05.20 15:29:36 4: SSCam.Mobil1 - PTZ Patrols of camera Mobil1 retrieved
2025.05.20 15:29:36 4: SSCam.WestPTZ - PTZ Patrols of camera WestPTZ retrieved
2025.05.20 15:32:34 4: SSCam.Sued - ####################################################
2025.05.20 15:32:34 4: SSCam.Sued - ###    start cam operation getsvsinfo         
2025.05.20 15:32:34 4: SSCam.Sued - ####################################################
2025.05.20 15:32:34 4: SSCam.Sued - --- Start getCamId ---
2025.05.20 15:32:34 4: SSCam.Sued - CAMID already set - ignore get camid
2025.05.20 15:32:34 4: SSCam.Sued - --- Start getsvsinfo ---
2025.05.20 15:32:34 4: SSCam.Sued - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.Info"&version="8"&method="GetInfo"&_sid="6dzHgJvlK17WPKAWOaeWHLsWPQuvCzXgqLYrxHKuin8qKHADAM_CBKt9rSZbjzyU4hybQvcNI-EkBZaqPdJpco"
2025.05.20 15:32:34 4: SSCam.Sued - ------- Start of auto adaption section -------
2025.05.20 15:32:34 4: SSCam.Sued - Currently used SVS version is: 923
2025.05.20 15:32:34 4: SSCam.Sued - AUTH adapted -> NAME: SYNO.API.Auth, VER: 6, PATH: webapi/entry.cgi
2025.05.20 15:32:34 4: SSCam.Sued - SNAPWEBAPI adapted -> NAME: WebAPI.Snapshot, VER: v1, PATH: webapi/SurveillanceStation/ThirdParty/SnapShot/Take/v1
2025.05.20 15:32:34 4: SSCam.Sued - ------- End of auto adaption section -------
2025.05.20 15:32:34 4: SSCam.Sued - ------- Start of the user-defined section by attribute -------
2025.05.20 15:32:34 4: SSCam.Sued - ------- End of the user-defined section by attribute -------
2025.05.20 15:32:34 4: SSCam.Sued - Informations related to Surveillance Station retrieved
2025.05.20 15:32:35 4: SSCam.Sued - ####################################################
2025.05.20 15:32:35 4: SSCam.Sued - ###    start cam operation Getcapabilities         
2025.05.20 15:32:35 4: SSCam.Sued - ####################################################
2025.05.20 15:32:35 4: SSCam.Sued - --- Start getCamId ---
2025.05.20 15:32:35 4: SSCam.Sued - CAMID already set - ignore get camid
2025.05.20 15:32:35 4: SSCam.Sued - --- Start Getcapabilities ---
2025.05.20 15:32:35 4: SSCam.Sued - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=8&method="GetCapabilityByCamId"&cameraId=9&_sid="6dzHgJvlK17WPKAWOaeWHLsWPQuvCzXgqLYrxHKuin8qKHADAM_CBKt9rSZbjzyU4hybQvcNI-EkBZaqPdJpco"
2025.05.20 15:32:35 4: SSCam.Sued - Capabilities of camera Sued retrieved
2025.05.20 15:32:36 4: SSCam.Sued - ####################################################
2025.05.20 15:32:36 4: SSCam.Sued - ###    start cam operation getsnapgallery         
2025.05.20 15:32:36 4: SSCam.Sued - ####################################################
2025.05.20 15:32:36 4: SSCam.Sued - Call getsnapinfo with params: Image numbers => 1, Image size => 1, Keyword => Sued
2025.05.20 15:32:36 4: SSCam.Sued - --- Start getCamId ---
2025.05.20 15:32:36 4: SSCam.Sued - CAMID already set - ignore get camid
2025.05.20 15:32:36 4: SSCam.Sued - --- Start getsnapgallery ---
2025.05.20 15:32:36 4: SSCam.Sued - Call-Out now: http://192.168.179.20:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.SnapShot"&version="1"&method="List"&keyword="Sued"&imgSize="1"&limit="1"&_sid="6dzHgJvlK17WPKAWOaeWHLsWPQuvCzXgqLYrxHKuin8qKHADAM_CBKt9rSZbjzyU4hybQvcNI-EkBZaqPdJpco"
2025.05.20 15:32:36 4: SSCam.Sued - Snapinfos of camera Sued retrieved
2025.05.20 15:32:36 4: SSCam.Sued - Cache "rawmem" is already initialized


Dann bleibt noch der Versuch mit festem snapEmailTxt . Ich werde es probieren und berichten.
Intel NUC (Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-113-generic x86_64))  mit CUL V3.2 (FW 1.57 CUL868) für FS20 und CCU3 für HM(IP) + Arduino Mega (Firmata) - FHEM Revision: 29534 - FS20, HM(IP), MQTT, Philips HUE, ModBus

DS_Starter

ZitatIm Log (verbose=4) sehe ich häufiger:
Cache "rawmem" is already initialized
Das ist nur eine Info und ok.

Wichtigere Infos sieht man vermutlich mit debugactivetoken=1.

Ich vemute, dass bei deiner Konstellation aus irgeneinem Grund der Sendehash nicht geleert wird und sich immer mehr Daten anreichern die dein System belasten. Aber ist nur eine erste Vermutung.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stobor

Können wir das irgendwie herausfinden? Ich kannauch noch mla probieren, den snapEmailTxt nicht zu ändern.


Und eine Kamera wird mir immer als PTZ angezeigt, obwohl es keine PTZ Kamera ist:
setuuid SSCam.Mobil1 67fcbfc1-f33f-2cfb-b98d-9e0d658f1ca7ab9c
define SSCam.Mobil1 SSCam Mobil1 192.168.179.20 5000 http
attr SSCam.Mobil1 userattr ptzPanel_Home:Preset1,Preset10,Preset11,Preset12,Preset13,Preset14,Preset15,Preset16,Preset17,Preset18,Preset19,Preset2,Preset20,Preset21,Preset22,Preset23,Preset24,Preset25,Preset26,Preset27,Preset28,Preset29,Preset3,Preset30,Preset31,Preset4,Preset5,Preset6,Preset7,Preset8,Preset9 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
attr SSCam.Mobil1 devStateIcon .*isable.*:set_off .*nap:li_wht_on
attr SSCam.Mobil1 event-on-change-reading snap,snapEmailTxt,goPreset,state
attr SSCam.Mobil1 httptimeout 20
attr SSCam.Mobil1 icon it_camera
attr SSCam.Mobil1 pollcaminfoall 210
attr SSCam.Mobil1 pollnologging 1
attr SSCam.Mobil1 ptzPanel_row00 move upleft:CAMUPLEFTFAST.png,:CAMBLANK.png,move up:CAMUPFAST.png,:CAMBLANK.png,move upright:CAMUPRIGHTFAST.png
attr SSCam.Mobil1 ptzPanel_row01 :CAMBLANK.png,move upleft 0.5:CAMUPLEFT.png,move up 0.5:CAMUP.png,move upright 0.5:CAMUPRIGHT.png
attr SSCam.Mobil1 ptzPanel_row02 move left:CAMLEFTFAST.png,move left 0.5:CAMLEFT.png,goPreset not set:CAMHOME.png,move right 0.5:CAMRIGHT.png,move right:CAMRIGHTFAST.png
attr SSCam.Mobil1 ptzPanel_row03 :CAMBLANK.png,move downleft 0.5:CAMDOWNLEFT.png,move down 0.5:CAMDOWN.png,move downright 0.5:CAMDOWNRIGHT.png
attr SSCam.Mobil1 ptzPanel_row04 move downleft:CAMDOWNLEFTFAST.png,:CAMBLANK.png,move down:CAMDOWNFAST.png,:CAMBLANK.png,move downright:CAMDOWNRIGHTFAST.png
attr SSCam.Mobil1 room Surveillance
attr SSCam.Mobil1 session DSM
attr SSCam.Mobil1 smtpDebug 0
attr SSCam.Mobil1 smtpFrom my@email.de
attr SSCam.Mobil1 smtpHost smtp.xxx.de
attr SSCam.Mobil1 smtpSSLPort 465
attr SSCam.Mobil1 smtpTo my@email.de
attr SSCam.Mobil1 snapEmailTxt "subject => Mobil1, body => <br><hr><br>Do 10.04.2025 16.56.13<br>Auslöser Mobil1<br><hr><br>Kamera Carport<br>Snapshot-time #CTIME - #FILE<br><hr><br>sub BewegungImCarport<br>"
attr SSCam.Mobil1 verbose 1
attr SSCam.Mobil1 webCmd on:off:snap:enable:disable:runView:stopView
Gibt es da einen Trick?
Intel NUC (Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-113-generic x86_64))  mit CUL V3.2 (FW 1.57 CUL868) für FS20 und CCU3 für HM(IP) + Arduino Mega (Firmata) - FHEM Revision: 29534 - FS20, HM(IP), MQTT, Philips HUE, ModBus

DS_Starter

#2646
Versuchen wir. Erster Schritt wäre das erwähnte Attr mal zu setzen und den Logauszug nach einem Snap zu posten.
Eventuell muß ich noch mehr Möglichkeiten zur Analyse einbauen.
Man bräuchte erstmal einen Ansatz. Im Prinzip muß es ja mit dem Mailversand zu tun haben, denn ohne ihn passiert das ja nicht.
Hast du auf der Syno auch den Chatserver im Einsatz? Wenn ja, könnte man vergleichen ob es einen Unterschied zwischen Mail- und Chatversand gibt.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

DS_Starter

Ob PTZ oder nicht wird von der Syno-API geliefert und im Modul ausgewertet. Sieht man im Reading DeviceType=PTZ im positiven Fall.
Mit "get ... scanVirgin" und verbose 5 sieht man die gelieferten Infos. Könnte jetzt eine inkorrekt gelieferte Info sein oder ein Problem bei der Auswertung im Modul. Das wäre zu checken.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stobor

Chat nutze ich nicht :(

Ich habe gerade mal mit festem Attribut (also ohne snapEmailTxt vor dem Versand zu ändern) und gesetztem cachetype=rawmem probiert:
CPU-Last ist und bleibt wieder/noch immer hoch:
Du darfst diesen Dateianhang nicht ansehen.


Soll ich mal debugactivetoken=1 setzen? (an den Kameras oder der SVS?)
Intel NUC (Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-113-generic x86_64))  mit CUL V3.2 (FW 1.57 CUL868) für FS20 und CCU3 für HM(IP) + Arduino Mega (Firmata) - FHEM Revision: 29534 - FS20, HM(IP), MQTT, Philips HUE, ModBus

DS_Starter

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

DS_Starter

Zum Vergleich .. Ich habe bei mir debugactivetoken=1 gesetzt und den snap 6 2 ausgeführt.
Vor dem Snap CPU 2,19%:

stat_cpu_percent

2.19 0.00 0.44 97.28 0.03 0.00 0.07

2025-05-20 16:24:15

Der Snap wird ausgeführt und sowohl als Email, Telegram und Chat versendet:

2025.05.20 16:27:18.429 1: CamHE1 - Active-Token set by OPMODE: Snap
2025.05.20 16:27:19.362 1: CamHE1 - Transaction opened, TA-code: 4317
2025.05.20 16:27:19.414 3: CamHE1 - Snapshot of Camera Hauseingang created. ID: 71797
2025.05.20 16:27:19.420 1: CamHE1 - Snapshot number 1 (ID: 71797) of total 6 snapshots with TA-code: 4317 done
2025.05.20 16:27:20.919 1: CamHE1 - Function FHEM::SSCam::__getStmUrlPath new scheduled with 2 seconds delta time
2025.05.20 16:27:21.470 1: CamHE1 - Active-Token set by OPMODE: Snap
2025.05.20 16:27:22.117 3: CamHE1 - Snapshot of Camera Hauseingang created. ID: 71798
2025.05.20 16:27:22.122 1: CamHE1 - Snapshot number 2 (ID: 71798) of total 6 snapshots with TA-code: 4317 done
2025.05.20 16:27:24.145 1: CamHE1 - Active-Token set by OPMODE: Snap
2025.05.20 16:27:24.780 3: CamHE1 - Snapshot of Camera Hauseingang created. ID: 71799
2025.05.20 16:27:24.782 1: CamHE1 - Snapshot number 3 (ID: 71799) of total 6 snapshots with TA-code: 4317 done
2025.05.20 16:27:26.806 1: CamHE1 - Active-Token set by OPMODE: Snap
2025.05.20 16:27:27.489 3: CamHE1 - Snapshot of Camera Hauseingang created. ID: 71800
2025.05.20 16:27:27.491 1: CamHE1 - Snapshot number 4 (ID: 71800) of total 6 snapshots with TA-code: 4317 done
2025.05.20 16:27:29.516 1: CamHE1 - Active-Token set by OPMODE: Snap
2025.05.20 16:27:30.212 3: CamHE1 - Snapshot of Camera Hauseingang created. ID: 71801
2025.05.20 16:27:30.220 1: CamHE1 - Snapshot number 5 (ID: 71801) of total 6 snapshots with TA-code: 4317 done
2025.05.20 16:27:32.249 1: CamHE1 - Active-Token set by OPMODE: Snap
2025.05.20 16:27:32.865 3: CamHE1 - Snapshot of Camera Hauseingang created. ID: 71802
2025.05.20 16:27:32.867 1: CamHE1 - Snapshot number 6 (ID: 71802) of total 6 snapshots with TA-code: 4317 done
2025.05.20 16:27:32.871 1: CamHE1 - start get snapinfo of last 6 snapshots with TA-code: 4317
2025.05.20 16:27:32.875 1: CamHE1 - Active-Token set by OPMODE: getsnapgallery
2025.05.20 16:27:33.682 1: CamHE1 - Send Counter transaction "4317": 0 (initialized)
2025.05.20 16:27:33.684 1: CamHE1 - Send Counter transaction "4317": 1 (start eMail)
2025.05.20 16:27:33.703 1: CamHE1 - Send Counter transaction "4317": 2 (start Telegram)
2025.05.20 16:27:33.763 3: CamHE1 - Telegram message [5] of transaction "4317" sent to "XXXX" by "teleBot"
2025.05.20 16:27:33.784 3: CamHE1 - Telegram message [4] of transaction "4317" sent to "XXXX" by "teleBot"
2025.05.20 16:27:33.814 3: CamHE1 - Telegram message [3] of transaction "4317" sent to "XXXX" by "teleBot"
2025.05.20 16:27:33.840 3: CamHE1 - Telegram message [2] of transaction "4317" sent to "XXXX" by "teleBot"
2025.05.20 16:27:33.863 3: CamHE1 - Telegram message [1] of transaction "4317" sent to "XXXX" by "teleBot"
2025.05.20 16:27:33.884 3: CamHE1 - Telegram message [0] of transaction "4317" sent to "XXXX" by "teleBot"
2025.05.20 16:27:33.885 1: CamHE1 - Send Counter transaction "4317": 1 (Telegram done)
2025.05.20 16:27:33.888 1: CamHE1 - Send Counter transaction "4317": 2 (start Chat)
2025.05.20 16:27:33.911 3: CamHE1 - Chat message [5] of transaction "4317" for "Heiko" added to "SynChatBot" sendqueue
2025.05.20 16:27:33.931 3: CamHE1 - Chat message [4] of transaction "4317" for "Heiko" added to "SynChatBot" sendqueue
2025.05.20 16:27:33.953 3: CamHE1 - Chat message [3] of transaction "4317" for "Heiko" added to "SynChatBot" sendqueue
2025.05.20 16:27:33.974 3: CamHE1 - Chat message [2] of transaction "4317" for "Heiko" added to "SynChatBot" sendqueue
2025.05.20 16:27:33.991 3: CamHE1 - Chat message [1] of transaction "4317" for "Heiko" added to "SynChatBot" sendqueue
2025.05.20 16:27:34.012 3: CamHE1 - Chat message [0] of transaction "4317" for "Heiko" added to "SynChatBot" sendqueue
2025.05.20 16:27:34.014 1: CamHE1 - Send Counter transaction "4317": 1 (Chat done)
2025.05.20 16:27:34.047 1: CamHE1 - Active-Token deleted by OPMODE: getsnapgallery
2025.05.20 16:27:34.387 3: CamHE1 - SMTP-Host sds1.myds.me switched to encrypted connection with SSL version: TLSv1_2
2025.05.20 16:27:34.928 1: CamHE1 - Active-Token set by OPMODE: getStmUrlPath
2025.05.20 16:27:35.250 1: CamHE1 - Active-Token deleted by OPMODE: getStmUrlPath
2025.05.20 16:27:35.286 3: CamHE1 - Email transaction "4317" successfully sent encoded by TLSv1_2 To: XXXX
2025.05.20 16:27:35.297 1: CamHE1 - Send Counter transaction "4317": 0 (eMail done)
2025.05.20 16:27:36.038 1: CamHE1 - Data of Transaction "4317" removed
2025.05.20 16:27:36.043 1: CamHE1 - Transaction "4317" closed

Am Ende wird die Transaktion gelöscht, d.h. die Daten removed. So soll es sein.

Die CPU danach 1,74%:

stat_cpu_percent

1.74 0.00 0.33 97.76 0.13 0.00 0.03

2025-05-20 16:41:16

Ich habe perl5 (revision 5 version 36 subversion 0).
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stobor

Mir wird diese Version angezeigt:
jay@nuc:~$ perl -version

This is perl 5, version 34, subversion 0 (v5.34.0) built for x86_64-linux-gnu-thread-multi
(with 61 registered patches, see perl -V for more detail)

Copyright 1987-2021, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Wenn ich den Snapshot nur einmal ausführe, entsteht noch kein wirkliches Problem. Wie verhält es sich bei Dir, wenn Du den Trigger häufig hintereinander aufrufst? Was passiert, wenn der Trigger im Sekundentakt gesendet wird (über bspw. 10-15sec.)?

Wenn ich nun den Code mehrfach kurz hintereinander ausführe:
fhem "set SSCam.Ost snap 6 2";
fhem "set SSCam.NordOst snap 6 2";
fhem "set SSCam.Carport snap 6 2";
und  debugactivetoken=1 gesetzt ist, kommt das im Log: siehe Log_nach_debugactivetoken.txt

Und die CPU-Last steigt wider:
Du darfst diesen Dateianhang nicht ansehen.
Intel NUC (Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-113-generic x86_64))  mit CUL V3.2 (FW 1.57 CUL868) für FS20 und CCU3 für HM(IP) + Arduino Mega (Firmata) - FHEM Revision: 29534 - FS20, HM(IP), MQTT, Philips HUE, ModBus

DS_Starter

Ja, das ist ein problematisches Szenario.

Meine CPU ist zwar immernoch bei ca. 5%, aber mit dem Attr debugactivetoken=1 sieht man im Log:

2025.05.20 21:32:40.710 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:40.712 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:40.714 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:40.717 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:40.719 1: SSCam.Terrasse - Function FHEM::SSCam::__getSnapInfo new scheduled with 1.7 seconds delta time
2025.05.20 21:32:40.805 1: SSCam.Terrasse - Function FHEM::SSCam::__getSvsInfo new scheduled with 0.1 seconds delta time
2025.05.20 21:32:40.907 1: SSCam.Terrasse - Function FHEM::SSCam::__getSvsInfo new scheduled with 0.1 seconds delta time
2025.05.20 21:32:40.910 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:40.914 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:40.917 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:40.919 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:40.922 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:41.324 1: SSCam.Terrasse - Function FHEM::SSCam::__getSvsInfo new scheduled with 0.1 seconds delta time
2025.05.20 21:32:41.327 1: SSCam.Terrasse - Function FHEM::SSCam::__getCapabilities new scheduled with 0.7 seconds delta time
2025.05.20 21:32:41.331 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:41.333 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:41.335 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:41.338 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 21:32:41.340 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time

Das kann zum Problem werden weil das System nicht vorankommt.
Die Informationen kommen vom internen Schedule-Systeme welches die Kameraaktionen für die API serialisieren.
Siehst du diese Einträge bei dir ebenfalls?
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stobor

Hier scheinen sich unsere Antworten zu überschneiden:

Mir wird diese Version angezeigt:
jay@nuc:~$ perl -version

This is perl 5, version 34, subversion 0 (v5.34.0) built for x86_64-linux-gnu-thread-multi
(with 61 registered patches, see perl -V for more detail)

Copyright 1987-2021, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Wenn ich den Snapshot nur einmal ausführe, entsteht noch kein wirkliches Problem. Wie verhält es sich bei Dir, wenn Du den Trigger häufig hintereinander aufrufst? Was passiert, wenn der Trigger im Sekundentakt gesendet wird (über bspw. 10-15sec.)?

Wenn ich nun den Code mehrfach kurz hintereinander ausführe:
fhem "set SSCam.Ost snap 6 2";
fhem "set SSCam.NordOst snap 6 2";
fhem "set SSCam.Carport snap 6 2";
und  debugactivetoken=1 gesetzt ist, kommt das im Log: siehe Log_nach_debugactivetoken.txt

Und die CPU-Last steigt wider:
Du darfst diesen Dateianhang nicht ansehen.
Intel NUC (Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-113-generic x86_64))  mit CUL V3.2 (FW 1.57 CUL868) für FS20 und CCU3 für HM(IP) + Arduino Mega (Firmata) - FHEM Revision: 29534 - FS20, HM(IP), MQTT, Philips HUE, ModBus

DS_Starter

Ja, wie ich in dem Post zuvor schon schrieb.
Dieses Szenario ist für den internen Scheduler problematisch.

Er kommt dann in eine ständige Wiederholungsplanung weil vorangegangenen API-Aktionen noch nicht angeschlossen wurden:

2025.05.20 22:05:36.257 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.261 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.434 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.458 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.462 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.635 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.659 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.663 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.836 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.860 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:36.864 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:37.038 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:37.062 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time
2025.05.20 22:05:37.066 1: SSCam.Terrasse - Function FHEM::SSCam::__camSnap new scheduled with 0.2 seconds delta time

Es wird schwierig sein, eine Lösung für eine derartig excessive Anforderung zu finden.
Dennoch werde ich es mir mal anscjauen und durch den Kopf gehen lassen

Es sollte kein Problem sein 1 oder 2 Snaps in dieser schnellen Abfolge der API zu übergeben um auch die Antwort in entsprechender Zeit zu erhalten.


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