X10 Community Forum

🖥️ActiveHome Pro => ActiveHome Pro General => Help & Troubleshooting => Topic started by: DScotland1 on May 23, 2007, 08:38:33 PM

Title: Macro to run cameras
Post by: DScotland1 on May 23, 2007, 08:38:33 PM
I am not sure if there is a post out there for this, here is what i want to do, I have 4 cameras 3x XCam2's and one low light camera, i wish to write a macro that will cycle through the XCams during the day and then switch to the low-light camera at night. does anybody have any idea how to do this ?
Title: Re: Macro to run cameras
Post by: azzar0 on May 24, 2007, 01:48:37 PM

It is easy to do in SmartMacros - just create a new macro, set it to an address (ie M11 ON), and then start adding logic:

If time between dawn and dusk
Switch to camera 1
Start recording (if you so wish)
Take snapshots (if you so wish)
Email pictures (if you so wish)
Wait XXX minutes
Switch to camera 2
Start recording (if you so wish)
Take snapshots (if you so wish)
Email pictures (if you so wish)
Wait XXX minutes
Switch to camera 3
Start recording (if you so wish)
Take snapshots (if you so wish)
Email pictures (if you so wish)
ELSE
If time between dusk and dawn
Switch to camera 4
Start recording (if you so wish)
Take snapshots (if you so wish)
Email pictures (if you so wish)
Wait XXX minutes

Something like that. You may need to set / unset flags if you're recording, otherwise it has the tendency to go into a loop.

Good Luck!


[TTA Edit: Added WHITESPACE and formatting to improve readability.]