From 7ea1d8e85d566d7bef2b8cd0a13ea4d20b8eb95f Mon Sep 17 00:00:00 2001 From: David Montgomery <130489651+DMontgomery40@users.noreply.github.com> Date: Tue, 6 Aug 2024 08:08:32 -0600 Subject: [PATCH 1/2] fix typo (#1544) --- install/local/install-scrypted-proxmox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/local/install-scrypted-proxmox.sh b/install/local/install-scrypted-proxmox.sh index cdc24e3983..3178a8f79a 100644 --- a/install/local/install-scrypted-proxmox.sh +++ b/install/local/install-scrypted-proxmox.sh @@ -21,7 +21,7 @@ if [ -n "$SCRYPTED_RESTORE" ] then RESTORE_VMID=$VMID VMID=10444 - pct destroy $VMID 2> > /dev/null + pct destroy $VMID 2>&1 > /dev/null fi echo "Downloading scrypted container backup." From 470c28d6ef5343b445faa34c6621fc614f86893c Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Tue, 6 Aug 2024 08:25:44 -0700 Subject: [PATCH 2/2] homekit: reduce debug hksv duration because people keep filling their disks. --- plugins/homekit/src/video-clips-provider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/homekit/src/video-clips-provider.ts b/plugins/homekit/src/video-clips-provider.ts index c22ed8ba7b..b3c5ea56ba 100644 --- a/plugins/homekit/src/video-clips-provider.ts +++ b/plugins/homekit/src/video-clips-provider.ts @@ -3,7 +3,7 @@ import { StorageSettings } from "@scrypted/sdk/storage-settings"; import checkDiskSpace from 'check-disk-space'; import { getSavePath, getVideoClip, getVideoClips, getVideoClipThumbnail, nukeClips, parseHksvId, pruneClips, removeVideoClip } from "./types/camera/camera-recording-files"; -const DAYS_TO_KEEP = 10; +const DAYS_TO_KEEP = 3; const PRUNE_AGE = DAYS_TO_KEEP * 24 * 60 * 60 * 1000; const { systemManager } = sdk; @@ -74,9 +74,9 @@ export class VideoClipsMixinProvider extends ScryptedDeviceBase implements Setti const diskSpace = await checkDiskSpace(savePath); let pruneAge = PRUNE_AGE; if (diskSpace.free < 10_000_000_000) { - pruneAge = 1 * 24 * 60 * 60 * 1000; + pruneAge = 1 * 60 * 60 * 1000; this.console.warn(`Low Disk space: ${savePath}`); - this.console.warn("Pruning videos older than 1 day to recover space."); + this.console.warn("Pruning videos older than 1 hour to recover space."); } pruneClips(pruneAge, this.console);