Motion - Reset Event Counter
You are here: Foswiki>Motion Web>ResetEventCounter (06 May 2014, LuisBackup)Edit Attach

Allow to reset event counter through web api

Description of Patch

Instead of restart motion to reset the counter, I made a simple patch that copy the pause function on the webhttpd module to reset the events counter, the new command is reset. The code is the same as the pause function plus the modified lines to get the new command.

Installation of Patch

Download the patch file. If it is packed as a gz or tar.gz unpack it first. Then copy it to the motion source directory and issue the command (assuming the patch file is called filename_of_patch_file.diff)

patch < EventCounterReset.diff

Then re-build Motion and test the patch.

Change History of Patch

  • 1.0 Initial revision
Adds a command to reset the events counter.

Discussion and Comments

Based on pause function.

Topic revision: r2 - 06 May 2014, LuisBackup
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.