Difference between revisions of "Event Keywords"

From HSYCO
Jump to navigation Jump to search
m (Hsyco moved page Event Keywords to Event keywords)
Line 27: Line 27:
 
== I/O Servers ==
 
== I/O Servers ==
 
=== IO ===
 
=== IO ===
 +
 +
Triggered by a status change of any data port of an I/O server.
 +
 +
 +
{| class="wikitable"
 +
| '''Event'''
 +
| width=80 | '''State'''
 +
| '''Description'''
 +
|-
 +
| IO name
 +
| transient
 +
| any change of an I/O variable
 +
|-
 +
| IO name = value<br>
 +
IO name > value<br>
 +
IO name < value<br>
 +
IO name >= value<br>
 +
IO name <= value
 +
| stable
 +
| the value is equal, greater, greater or equal, less, less or equal to the given value.<br>
 +
{{tip|The names and values of the I/O variables are specifically related to the type of I/O server. Values can be numeric or strings.}}
 +
|}
 +
 +
 +
'''Parameters:'''
 +
 +
* name - the data point name of the input or output port. According to the type of server, the format changes but it generally appears as server name, as declared with the ioServers parameter in hsyco.ini, followed by a dot and the input/output port name. See the Application Notes for more information.
 +
 +
 +
 +
'''Examples:'''
 +
 +
IO tempmeter.indoor > 25.5
 +
IO contacts.c1 = 1
 +
 
=== IOSTART ===
 
=== IOSTART ===
  

Revision as of 17:41, 4 February 2014

An event is defined as a keyword that identifies the event type, usually followed by one or more parameters and conditional operators. Every keyword uses a specific syntax that interprets parameters according to its own rules.


System Events

DAY

HAACTIVE

HSYCOSTART

NIGHT

POWER

PROGRAMTIMER

SUNAZIMUTH

SUNELEVATION

TIME

Cameras

CAMERA

CAMERACOMMAND

CAMERAVIEW

DMX

DMX

DMXSTART

Infrared Control

IR

I/O Servers

IO

Triggered by a status change of any data port of an I/O server.


Event State Description
IO name transient any change of an I/O variable
IO name = value

IO name > value
IO name < value
IO name >= value
IO name <= value

stable the value is equal, greater, greater or equal, less, less or equal to the given value.

Note The names and values of the I/O variables are specifically related to the type of I/O server. Values can be numeric or strings.


Parameters:

  • name - the data point name of the input or output port. According to the type of server, the format changes but it generally appears as server name, as declared with the ioServers parameter in hsyco.ini, followed by a dot and the input/output port name. See the Application Notes for more information.


Examples:

IO tempmeter.indoor > 25.5
IO contacts.c1 = 1

IOSTART

Leak Detector

LEAK

Network Services

LOCATION

PING

URL

PBX

PBX

Squeezebox

MUSIC

Timers and Schedulers

TIMER

User Interface

PAGE

USER