Dahua IPC - FTP-Upload-Pfad anpassen über Script

kuzco-ip

Mitglied
Mitglied seit
4 Feb 2019
Beiträge
683
Punkte für Reaktionen
53
Punkte
28
Hallo,
nach langer Zeit bin ich auch mal wieder online.
Ich nutze div. Dahua_IPC-Kameras und habe mir den FTP-Pfad für die Motion-Detection immer über ein Script angepasst.
Den Standard-Pfad für diese FTP-Sicherung kann man sich mit:
Code:
http://192.168.xx.xx/cgi-bin/configManager.cgi?action=getConfig&name=StorageGroup
ansehen.
Das schaut dann im Normalfall so aus:
Code:
table.StorageGroup[0].FileHoldTime=0
table.StorageGroup[0].OverWrite=true
table.StorageGroup[0].PicturePathRule=%y-%M-%d/%c/jpg/%h/%m/%s[%E][%O@%S][%R].jpg
table.StorageGroup[0].RecordPathRule=%y-%M-%d/%c/dav/%h/%h.%m.%s-%h.%m.%s[%E][%O@%S][%R].%t
table.StorageGroup[0].Memo=For Reading & Writing Files
table.StorageGroup[0].Name=ReadWrite
table.StorageGroup[0].Channels[0].MaxPictures=0
table.StorageGroup[0].Channels[0].Path=none
table.StorageGroup[1].FileHoldTime=0
table.StorageGroup[1].OverWrite=true
table.StorageGroup[1].PicturePathRule=%y-%M-%d/pic_%c/%h/%h.%m.%s[%E][%O@%S][%R].jpg
table.StorageGroup[1].RecordPathRule=%y-%M-%d/video_%c/%h/%h.%m.%s-%h.%m.%s[%E][%O@%S][%R].%t
table.StorageGroup[1].Memo=For FTP Files
table.StorageGroup[1].Name=Remote
table.StorageGroup[1].Channels[0].MaxPictures=0
table.StorageGroup[1].Channels[0].Path=none
table.StorageGroup[2].FileHoldTime=0
table.StorageGroup[2].OverWrite=false
table.StorageGroup[2].PicturePathRule=none
table.StorageGroup[2].RecordPathRule=none
table.StorageGroup[2].Memo=For Reading Files
table.StorageGroup[2].Name=ReadOnly
table.StorageGroup[2].Channels[0].MaxPictures=0
table.StorageGroup[2].Channels[0].Path=none
StorageGroup[1] ist der FTP-Pfad.
Hier wird in div. Unterverzeichnissen wie z.B.
/mnt/www/UPLOAD/Frontdoor02/2025-11-07/pic_001/11
das Video bzw. der Snapshot abgelegt.
Da ich die Bilder /Videos über Script weiterverarbeite, hatte ich diesen Pfad für mich immer angepasst. Über die GUI geht das nicht, aber über:
Code:
http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&StorageGroup[1].PicturePathRule=%y-%M-%d-%h.%m.%s[%E][%O@%S][%R].jpg
http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&StorageGroup[1].RecordPathRule=%y-%M-%d-%h.%m.%s-%h.%m.%s[%E][%O@%S][%R].%t
Das ging bisher bei allen Dahuas die ich hatte, bei der HDW2441 bekomme ich jedoch eine Fehlermeldung mit Error/BadRequest. Sehr seltsam.
Wenn ich die Befehle für StorageGroup[0] macche, geht es - das ist aber nicht der FTP-Pfad.
Falls jemand eine Idee hat (vielleicht sogar @riogrande75) - dann gerne.
 
Kostenlos!

Statistik des Forums

Themen
247,922
Beiträge
2,276,770
Mitglieder
376,997
Neuestes Mitglied
willnurwasladenjetzt