beautypg.com

Unison mosaic language extensions for triggers – ETC Unison Mosaic Designer v1.11.0 User Manual

Page 208

background image

Unison Mosaic Designer User Manual

To add/remove a breakpoint on a line of source code, click the mouse to the left of the relevant line number, or
use Debug > Toggle Breakpoint (F9) to set a breakpoint at the text cursor. Now, when you run the script with
Debug > Run (F5), the debugger will halt at the first breakpoint that it encounters.

When the debugger is halted, you can examine the values of variable in the script in the Watch tab below the
source editor.

l

To execute the next line of code, use Debug > Step Over (F10).

l

If the debugger is halted at a function call, use Debug > Step Into (F11) to step into the function.

l

To step out of the current function, use Debug > Step Out (Shift+F11).

l

To resume normal execution, use Debug > Run (F5).

l

To terminate execution immediately and return to editing the source, use Debug > Stop (Ctrl+F5).

l

While a script is executing, use Debug > Break to halt execution at the current line.

Unison Mosaic language extensions for triggers

Accessing the realtime clock (local to this Controller)

realtime.year

The year

realtime.month

The month (1 to 12)

realtime.monthday

The day of the month (1 to 31)

realtime.weekday

The day of the week (0 = Sunday; 1 = Monday; etc.)

realtime.hour

The hour (0-23)

realtime.minute

The minute (0-59)

realtime.second

The second (0-59)

NOTE: The location of the Controller must be set correctly in

project properties

for these to return the correct val-

ues.

Accessing the calculated sunrise and sunset times (local to this Controller)

sunrise.hour

The hour of sunrise (0-23)

sunrise.minute

The minute of sunrise (0-59)

sunrise.second

The second of sunrise (0-59)

sunset.hour

The hour of sunset (0-23)

sunset.minute

The minute of sunset (0-59)

sunset.second

The second of sunset (0-59)

NOTE: The location of the Controller must be set correctly in

project properties

for these to return the correct val-

ues.

Accessing the calculated twilight times (local to this Controller)

civil_dawn.hour

The hour of civil dawn (0-23)

civil_dawn.minute

The minute of civil dawn (0-59)

civil_dawn.second

The second of civil dawn (0-59)

civil_dusk.hour

The hour of civil dusk (0-23)

- 208 -