This method is will simply turn off any camera that is on and will turn on the specified camera. No other scripts or events will be executed and no picture will be snapped. The CameraName paramter is required and is in the HomeSeer convention of ‘Location CameraName’.
If your installation does not use
X10 type cameras, you still need to define a device in HS for each physical
image source you are using. For example: If your installation uses 2
cameras that are modulated to specific tuner channels you would have a HS
device for each of these cameras. The Device Type string used for these
two cameras would be used in the General config form to identify these two
devices as cameras. In the WinTV Settings tab of the config form, set each
of the cameras to use the Tuner as the video source each with their
corresponding TV channel.
A HS global variable is set to the camera name whenever a camera is turned on. The variable name is HauppaugeCaptureCamera and it's value will be the same as the CameraName parameter - that is 'Location Camera'. Pre and Post capture script/event can query this variable to determine the current camera being used to snap images. A script snipit is as follows:
dim LastCam
LastCam = hs.getvar("HauppaugeCaptureCamera")
hs.writelog "Hauppauge Capture", "Last Camera was " & LastCam