Search found 5 matches

by jamesmcbride
Thu Mar 07, 2019 4:21 pm
Forum: ZoneMinder 1.33.x
Topic: Zones and PTZ
Replies: 4
Views: 1194

Re: Zones and PTZ

You could setup different zones for different presets then enable the zone relevant to the preset after the preset is called. I currently do something similar to this when switching between day and night. At night car headlights trigger motion events on the "entrance" part of my driveway when a car ...
by jamesmcbride
Fri Feb 23, 2018 12:22 pm
Forum: User Contributions
Topic: Script To Change State of Zones
Replies: 8
Views: 4113

Re: Script To Change State of Zones

I think I've figured this out completely now, incase anyone else runs in the same problems. It looks like the original script above will set the zone active / inactive, but doesn't seem to actually apply the change. Looking in /usr/share/zoneminder/www/includes/actions.php, the function that updates...
by jamesmcbride
Tue Feb 20, 2018 1:36 pm
Forum: User Contributions
Topic: Script To Change State of Zones
Replies: 8
Views: 4113

Re: Script To Change State of Zones

Ok, I think I've figured this out from some tracing.

It looks like when I update to inactive through the web interface, it also sets min/max alarmed pixels to 0 it runs:
<code>
UPDATE Zones SET Type = 'Inactive', MinAlarmPixels = '0', MaxAlarmPixels = '0' WHERE MonitorId='5' AND Id='17'
</code>
by jamesmcbride
Mon Feb 19, 2018 10:07 am
Forum: User Contributions
Topic: Script To Change State of Zones
Replies: 8
Views: 4113

Re: Script To Change State of Zones

it looks like I might not be completely correct above - it just seems hit and miss as to whether it actually takes notice of the active / inactive setting. Strange
by jamesmcbride
Sun Feb 18, 2018 9:44 am
Forum: User Contributions
Topic: Script To Change State of Zones
Replies: 8
Views: 4113

Re: Script To Change State of Zones

This script is brilliant! I've got it tied in to openhab to turn off certain zones when it gets dark and back on again when it is light. Turning the zone on seems to work fine, but for some reason when the zone gets turned off, even though it shows as inactive in zoneminder, it seems to still be act...