Camera

From HSYCO
Jump to navigation Jump to search
Note  For a description and a complete list of UI Objects, see UI Objects.

A real-time view of a camera or grid of cameras.

Parameters

  • id: the object's ID, used by UISets
  • address: the name of the camera, as in the Cameras parameter in hsyco.ini, or the name of a camera grid, defined as gridN, where N is the grid number assigned in hsyco.ini
  • position: the object's position. Use the pixels or rows and columns coordinates format
  • size: the camera image's width and height
  • destination panel id: optional. If set to a panel id, will show the camera on that camera panel

Syntax

(camera[!<id>] <address>; <position>; <width>; <height>; <destination panel id>)

E.g.

(camera grid1; x0y10; 312; 180)
(camera livingroom; x0y10; 100; 90; camerapanel)

UI Attributes

Common attributes

Name Value Description
pos x<x>y<y> Position specified as x/y coordinates. E.g. x-5y10
r<r>c<c> Position specified as row/column. E.g. r1c2
visible true Default. Show the object
false Hide the object
blink true | slow Blink the object at a slow speed
fast Blink the object at a fast speed
false Stop the blinking
opacity 0.0 ... 1.0 Object opacity from 0 (not visible) to 1 (fully visible)
rotation 0 ... 360 Object rotation in degrees. Images are rotated around the center point, all other objects are rotated around the top left corner

Camera attributes

Name Value Description
camera <name> The name of the camera, or the name of a camera grid, defined as grid<n>, where <n> is the grid number
cameralist comma-separated list of camera names:

<name>[,<name>]

Allows to dynamically change the list of cameras viewable in a camerapanel object
play true Play the latest motion
<yyyymmddhhmmss> Play the motion from the specified time or the nearest frame available, using the format "yyyymmddhhmmss" (e.g. "20141016125534")
<timestamp> Play the motion from the specified timestamp (in seconds) or the nearest frame available
rwd Rewind to the previous motion
fwd Forward to the next motion
pause true Pause the camera if in playback mode
<yyyymmddhhmmss> Pause a motion at the specified time or the nearest frame available, using the format "yyyymmddhhmmss" (e.g. "20141016125534")
<timestamp> Pause a motion at the specified timestamp (in seconds) or the nearest frame available
rwd Rewind to the previous motion and pause it
fwd Forward to the next motion and pause it
live true Toggle live mode