Force Alarm

Forum for questions and support relating to the 1.24.x releases only.
Locked
punk_ecas
Posts: 41
Joined: Wed Mar 04, 2009 4:16 pm

Force Alarm

Post by punk_ecas »

Hi,

I'm trying to get a manual record video to my mobile client.
My approach consists in forcing an alarm on server, so it will be generated a Forced Web Event, with this new event I can generate a video and download it to the PDA.

There is any script or web request that I can do to force that alarm independently of the monitor function?

I tried zmu with -a and -c to start and stop forced alarm respectively, but it doesn't work with Monitor function.
I also tried to change the function of the monitor during the force of the alarm to Modect, but probably I'm not doing that correctly. What is the simpler way to change the function correctly?

Thanks, any suggestion will be well received.
punk_ecas
Posts: 41
Joined: Wed Mar 04, 2009 4:16 pm

Post by punk_ecas »

I'm looking for something like this:

http://<IP>/zm/index.php?view=none&action=function&mid=2&newFunction=Monitor&newEnabled=1

The problem is that from my app I can't authenticate on zmconsole.

I tried to modify the Function value on the DB and then call:
sudo zmdc.pl reload zma -m <mid>

But it didn't work.


EDIT: I already solved it. Calling the function zmaControl with reload from includes\function.php

Anyway, if someone know a better and simpler way to force a record without change the monitor mode, please share.
Locked