Search found 25 matches

by BaconButty
Mon Jul 06, 2020 3:11 pm
Forum: ZoneMinder 1.35.x
Topic: ZMaudit.pl not removing empty events. Doesn't like deleting young events?
Replies: 8
Views: 2713

Re: ZMaudit.pl not removing empty events. Doesn't like deleting young events?

Sorry to bring this up again. I have this setup and running now a while. I still have the issue that I end up with lots of empty events in Zoneminder as ZMaudit.pl doesn't pick them up as missing and I haven't a clue why. There's no error showing, output of ZMaudit.pl looks like this (not picking up...
by BaconButty
Wed Jul 01, 2020 8:30 pm
Forum: ZoneMinder 1.35.x
Topic: GPU advantage
Replies: 2
Views: 1031

Re: GPU advantage

Not exactly the answer you're looking for, but I used the GPU cores in my AMD APU to lower my CPU usage by about 20%. So it will lower it, but not a huge amount. For 5 cameras, it was good enough to get my usage down from tipping 100% to 70-80%. Just go into the cameras settings and you can enable h...
by BaconButty
Fri Jun 26, 2020 11:34 pm
Forum: ZoneMinder 1.35.x
Topic: Only put events in event folder when event has complete.
Replies: 2
Views: 1734

Re: Only put events in event folder when event has complete.

Why would you want to do that? I'm using zoneminder and zmeventnotification to prune events to the point where only important stuff is in a folder that I can keep on a remote server. Raw data from the cameras is taking around 3TB a week, I've managed to get that down to a tiny fraction by using zme...
by BaconButty
Thu Jun 25, 2020 7:43 pm
Forum: ZoneMinder 1.35.x
Topic: Only put events in event folder when event has complete.
Replies: 2
Views: 1734

Only put events in event folder when event has complete.

Hi,

Just trying to do something here and I was wondering if there is a way to tell Zoneminder to only put events in the event folder when they are complete, and store them in a temporary folder until then?
by BaconButty
Sun Jun 21, 2020 3:57 pm
Forum: ZoneMinder 1.35.x
Topic: Limit Diskspace for a cam
Replies: 10
Views: 2688

Re: Limit Diskspace for a cam

Thanks a lot mikb! I just wanted to share that before I forgot about it and quickly copied and pasted from putty. I should have been more careful.
by BaconButty
Sun Jun 21, 2020 3:33 pm
Forum: ZoneMinder 1.35.x
Topic: Limit Diskspace for a cam
Replies: 10
Views: 2688

Re: Limit Diskspace for a cam

biologisch, I have that script done. Just in case you're interested. The secret was calling zmaudit.pl twice. #!/bin/bash usage=$(du -sb /var/cache/zoneminder/HighResCamEvents | cut -d $'\t' -f 1) max=10000000000 if (( usage > max )) then find /var/cache/zoneminder/HighResCamEvents -maxdepth 5 -type...
by BaconButty
Sun Jun 21, 2020 3:31 pm
Forum: Non-ZoneMinder Chat
Topic: Bash script to keep folder at a certain size by deleting oldest files.
Replies: 0
Views: 892

Bash script to keep folder at a certain size by deleting oldest files.

I Finally got this working as I wanted. I want to keep my Zoneminder events folder below 10gb, and this can't really be done with zoneminder unless you start playing around with creating virtual drives. So here's a simple bash script that's mostly taken from stackoverflow that I''ve proven works fla...
by BaconButty
Fri Jun 19, 2020 3:11 pm
Forum: ZoneMinder 1.35.x
Topic: ZMaudit.pl not removing empty events. Doesn't like deleting young events?
Replies: 8
Views: 2713

Re: ZMaudit.pl not removing empty events. Doesn't like deleting young events?

OK, maybe the issue is that I don't understand what ZMaudit is actually trying to do...

I have my script working now, but the answer is to run ZMaudit TWICE. The first time it generates all the warnings, the second time it actually removes the files. This surely isn't the correct way to work this?
by BaconButty
Fri Jun 19, 2020 1:40 pm
Forum: ZoneMinder 1.35.x
Topic: ZMaudit.pl not removing empty events. Doesn't like deleting young events?
Replies: 8
Views: 2713

Re: ZMaudit.pl not removing empty events. Doesn't like deleting young events?

Has anyone any idea on what this bug is? I've tried looking at it myself, but I'm clueless. All I can tell is that this isn't true: if ( ! ($fs_events and defined( $fs_events->{$db_event} ) ) And this is what's generating the line: if ( $Event and ! $Event->check_for_in_filesystem() ) { Warning('Not...
by BaconButty
Tue Jun 16, 2020 6:06 pm
Forum: ZoneMinder 1.35.x
Topic: ZMaudit.pl not removing empty events. Doesn't like deleting young events?
Replies: 8
Views: 2713

Re: ZMaudit.pl not removing empty events. Doesn't like deleting young events?

OK, So I wasn't really sure which debugging to turn on in options, so I just switched them all on. I had a few runs at it and I can't even tell why it just worked perfectly once. I didn't change anything except the debugging options. I've been shrinking the folder size using my script and then runni...
by BaconButty
Tue Jun 16, 2020 12:05 pm
Forum: ZoneMinder 1.35.x
Topic: ZMaudit.pl not removing empty events. Doesn't like deleting young events?
Replies: 8
Views: 2713

Re: ZMaudit.pl not removing empty events. Doesn't like deleting young events?

I posted a comment here that I didn't mean to do and deleting comments is disabled. I wrote "IGNORE" on it, I just want to clarify that I do need help with this :D
by BaconButty
Mon Jun 15, 2020 10:41 pm
Forum: ZoneMinder 1.35.x
Topic: ZMaudit.pl not removing empty events. Doesn't like deleting young events?
Replies: 8
Views: 2713

ZMaudit.pl not removing empty events. Doesn't like deleting young events?

Background: I'm using a bash script to keep my events folder to a certain size, I need ZMaudit.pl to run after this to clear out the now empty events, but it isn't working. I couldn't get this to work at all yesterday, I thought it might have to do with "AUDIT_MIN_AGE" in the system settings, so I r...
by BaconButty
Sun Jun 14, 2020 10:25 pm
Forum: ZoneMinder 1.35.x
Topic: How do I tell Zoneminder that events no longer exist? Or to update after manual file deletion?
Replies: 3
Views: 1179

Re: How do I tell Zoneminder that events no longer exist? Or to update after manual file deletion?

Finally have zoneminder doing what I wanted and started looking through the settings to see if there's anything I missed and I found: https://i.ibb.co/TTbWszR/image.png I'm guessing this is why audit wouldn't work for me (the files where not this old). I need to wait for me storage to max out again,...
by BaconButty
Sun Jun 14, 2020 9:53 pm
Forum: Mobile Apps
Topic: ZMEventNotification Trying to use CSPN weights. Getting an error.
Replies: 6
Views: 1476

Re: ZMEventNotification Trying to use CSPN weights. Getting an error.

Ah OK. Really appreciate the detailed reply.

Don't think it's worth while looking into this then. It's one event it missed out of around 100, and the person was captured in another event anyway.

Thanks again!