Please login or register.

Login with username, password and session length

Author Topic: Want Macro To Loop  (Read 2675 times)

Jimbo435

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3
Want Macro To Loop
« on: November 11, 2008, 02:27:23 PM »

We own a school, and have had some problems with vandalism recently.  Plan is to get fancy with motion detectors and alarms, etc, but for now, just want to get the security cameras working.  We installed them, but last weekend my wife forgot to leave the still capture running.  I want a way to automate the still capture and scanning.  I setup AHP so that it is in the start folder, and so that MyHouse is automatically connected.  I wish there was a setting to automate still capture and scanning.

I decided to create a macro, to store in the cr15?, that would loop say every hour so that it would attempt to turn still capture and scanning on.  That way, if the computer is running, within an hour, the still capture and scanning would be turned on.

I did a little reading here, and created two macros (for traceability) one to turn on Scanning, and one to turn on Still Capture.

Then I created a third, to check a flag, call the scanning macro, wait a few seconds, and call the still capture macro.  Then it waits an hour, and calls itself through a dummy appliance module.

When I trigger the macro manually, it works fine.  The first time.  It even calls itself after the main delay.  But on the second pass, it does not trigger the other macros.  I tried using a dummy module, and simply using an X10 command.  If I trigger this macro from a dummy switch, it does not run the other macros the first time.  If I try to trigger this macro from another macro, either through a dummy switch, or an X10 command, it does not work.  It is almost like it will go macro to macro only once.

Any help?
« Last Edit: November 11, 2008, 02:29:12 PM by Jimbo435 »
Logged

steven r

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 74
  • Posts: 2189
  • Halloween with X10
Re: Want Macro To Loop
« Reply #1 on: November 11, 2008, 04:28:28 PM »

I'm not clear enough on what you're trying to do to recommend a total solution.

    You do need to be aware of couple cautions:
    [li]When creating loops, make sure you have an out as well as a way to prevent multiple loops from happening. - Set a flag at the beginning of the loops and test for it. Clear the flag at the end of the loop.[/li]
    [li]Macros with video captures have to run from the computer and not the CM15A.[/li]
    [/list]

    « Last Edit: November 11, 2008, 04:31:23 PM by steven r »
    Logged
    BVC let's me tell my camera where to go!
    :) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

    Jimbo435

    • Newbie
    • Helpful Post Rating: 0
    • Posts: 3
    Re: Want Macro To Loop
    « Reply #2 on: December 07, 2008, 02:45:50 PM »

    My need is simple.  I need to capture stills from my scanning cameras AT ALL TIMES.  We keep getting vandalized every weekend for the last 2 months.  Every time we check, the still capture has stopped for some unkown reason.  I want to make a loop (yes, with an out) that will restart still capture every hour or so, to ensure we don't go long without stills being captured.  Any suggestions?

    Jim
    Logged
     

    X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
    © Copyright 2014-2016 X10.com All rights reserved.