Opened 12 years ago

Closed 12 years ago

#5276 closed enhancement (fixed)

Allows Monitor function changes (modect, monitor, none,...)

Reported by: jim@… Owned by: paulh
Priority: minor Milestone: unknown
Component: mythzoneminder Version: 0.21-fixes
Severity: medium Keywords: monitor function zoneminder
Cc: Ticket locked: no

Description

This patch allows you to change the cameras Monitor function from mythzoneminders console screen. The functions available are the same as available in the default zoneminder web interface.

  • Monitor
  • Modect
  • Nodect
  • Record
  • Mocord
  • None

I found this handy as i sometimes wanted to quickly disable motion detection from within myth without having to open a browser and log into the zm web interface. Any suggestions greatly appreciated :)

Attachments (3)

zoneminder_monitor_function_v1.patch (9.1 KB) - added by jim@… 12 years ago.
mythzoneminder monitor function patch
zoneminder_monitor_function_v2.patch (8.3 KB) - added by jim@… 12 years ago.
mythzoneminder monitor function patch v2 - commented code slipped in in v1 patch. Now removed.
zoneminder_monitor_function_v3.patch (18.7 KB) - added by jim@… 12 years ago.
Adds zm daemon stop/(re)start upon function change. Enable/disable of monitor from popup.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by jim@…

mythzoneminder monitor function patch

Changed 12 years ago by jim@…

mythzoneminder monitor function patch v2 - commented code slipped in in v1 patch. Now removed.

comment:1 Changed 12 years ago by paulh

Jim, thanks for the patch.

I have one question though. Is setting the monitor function in the database enough? Don't you have to restart the daemons for the new function to take effect?

I think you may be able to do that by running 'zmdc.pl'.

comment:2 Changed 12 years ago by jim@…

Yep...your spot on. Of course the daemons need to be refreshed. What was i thinking (ok...don't answer that) :)

So zoneminder_monitor_function_v3.patch should take care of the stopping/(re)starting of the relevant daemons. Basically just ported the logic from the zm_funcs php script.

New patch also adds the ability to enable/disable the monitor from the popup, as well as select the function.

More suggestions appreciated.

Changed 12 years ago by jim@…

Adds zm daemon stop/(re)start upon function change. Enable/disable of monitor from popup.

comment:3 Changed 12 years ago by paulh

Resolution: fixed
Status: newclosed

Merge [17263] from trunk.

Allow you to enable/disable a camera and to change a camera's Monitor function from mythzoneminder's console screen.

Patch from jim (at) jimntreen (dot) com

NOTE: changes the protocol version so both mythzmserver and all clients need to be updated.

Closes #5276.

Note: See TracTickets for help on using tickets.