Visualizing iRidi Server control
A visualization project for working with iRidi Server
Documentation updated 01.01.2024
iRidi Server + visualization - a central controller (or a PC application) connected to automation equipment. The Server sends data to control panels and enables equipment control. Connecting to the server also provides database access and charting. The visualization that runs on control panels is created in iRidi Studio.
Description
It is best to create the visualization interface after the server project is ready: communication with automation equipment is configured, and virtual tags and their scripts are created on the server. Importing the server project quickly provides the full set of controllable variables for the visualization project. You then only need to link them to graphic items.
The server can work with several iRidi control panels running different projects or the same project. The visualization is a graphical interface for controlling automation equipment and runs only in i3 pro on the control panel. Server settings are available through its web interface.
Connection
Configure the server project: create the list of controlled devices and variables. Import the server project into an iRidi visualization project and configure graphic items to control server variables.
iRidi panels connect to iRidi Server and send commands. The server executes them by changing variable states in the automation equipment to which it is connected:

Importing variables from Server Project
There are several ways to add an iRidi Server driver to a Panel Project.
Quick project creation
Right-click the Server project and select "Create Panel Project"

A Panel Project is created with an empty page and an iRidi Server driver containing all server tags. You can use them as commands and feedback channels, link them to items for control and display, and process them using iRidi Script.

After changing the server project, you can quickly synchronize it with the Panel Project. Select the iRidi Server driver and click the source synchronization button .
You can change the server project file used for driver synchronization in Source Project
Adding iRidi Server to an existing visualization project
If you already have a visualization project and want to add a connection to the server:

- add the iRidi Server driver from the database
- specify the path to the *.sirpz project with which to synchronize the visualization project
- the resulting iRidi Server driver will contain the current list of commands and feedback channels.
Commands & Feedbacks
Import provides two levels of settings:
- iRidi Server - a driver containing the server variable list. Configure the IP address and other server connection parameters here
- Commands and Feedbacks - commands and feedback channels for controlling variables. Commands are writable variables, and feedback channels are readable variables.
Commands and feedback channels must be linked to the project's graphic items to control equipment:
- Bind a command to a graphical item, specifying the value to send to the bus address when the graphical item is pressed
- Bind a feedback channel to a graphical item to display the group address state
To link a command or channel to a graphic item, use drag&drop - dragging an object onto another.
- Do not create new commands or feedback channels in the iRidi Server driver in a Panel Project (*.irpz). Synchronization will not create them in the server project, so they will not work.
Only commands and channels created in the server project can be synchronized with the control panel.
Configuring the server connection

iRidi Server connection settings
- Host - server IP address or domain name. You can use Local host 127.0.0.1 if the server and visualization run on the same device
- Port - TCP server connection port, default: 30464
- System ID - reserved
- Login - reserved
- Password - reserved
Changing connection settings
You need to change connection parameters when you disconnect from the automation site's Wi-Fi network and start using 3G or another Wi-Fi network. For control to continue working, switch from the local IP address to the Internet router's public IP address.
Switching is not automatic; you need to press the connection mode selection button. For remote access, the automation system's control ports must be made public. To do this, configure Port Forwarding on the Internet router. A VPN can provide a secure connection.
-
Download template (*.js) (right-click to save the target), then add the template to the script editor
using (+) Add Script from file
-
Configure the script parameters as shown in the example:
function Internal_1() {
IR.GetDevice("iRidium Server").SetParameters({Host: "192.168.0.100", Port: 30464, LogLevel: 0, BackgroundMode: 0});
}
function External_1() {
IR.GetDevice("iRidium Server").SetParameters({Host: "215.110.10.10", Port: 30464, LogLevel: 0, BackgroundMode: 0});
}
Copy the driver name from Project Device Panel; copy the parameter list exactly as shown in the example.
- Select the button that switches between Internal and External parameters. Open
Macros Editorfor the Release event (Programming > Release), selectScript Calland add it by double-clicking. Select the function the button calls:

Each button press now applies the corresponding connection settings.
Controlling variables
Without iRidi Server, commands are sent directly to the driver when graphical items in the visualization interface are pressed. Each control panel connects to the bus independently.
To send a command to the KNX bus, create a graphical interface for the control panel. The interface consists of pages, popups, and graphical items; see graphical interface creation basics.
To simplify your work, use ready-made interfaces.
Configure Commands and Feedbacks to control the equipment. To send a command, drag it onto a graphical item and specify the Value to send. To display feedback, drag the channel onto a graphical item and specify where its Value should be displayed

The following sections describe the group address types supported by iRidi and the graphical item settings suitable for controlling these address types.
Switch on/off, write a value
A graphical item with 1 or 2 states. Depending on its settings, the button can be latching or momentary. Each press sends the same commands bound to the button beforehand.
-
Create a variable to receive a number or string. Configure it as shown in the instructions
-
Create a button and configure it as follows (see all settings):

| Type | Button |
|---|---|
| Feedback | The button's response to presses and equipment data: - Momentary - the button switches to on when pressed and returns to off when released; it does not display feedback; - Channel - the button switches to on when pressed and returns to off on the next press; it displays feedback; - None - no visual response to presses or incoming feedback, - Invert Channel - the button switches to off when pressed and returns to on on the next press; it displays inverted feedback (false - on, true - off) |
- Drag the variable onto the button and specify the following in the variable-linking dialog:

| Parameter | Description |
|---|---|
| Send to command | Number - write a number to the variable. Switch to String to send an ASCII string. |
| Event for Action | An interface event associated with the button. When it occurs, the specified value is written to the variable: • When pressed - send when the button is pressed • When released - send when the button is released • When held - send repeatedly while held • After holding - send after holding ends Several events can be used simultaneously. For example, send 100 when pressed and 0 when released. |
| Value | The value to write to the variable. The button always sends the same value specified in Value. |
| Delay | Delay before sending the value after the event is activated (in milliseconds). |
| Assign feedback channel | Enable this if the button must not only send a value but also change state when data is received from the same variable (feedback). |
- The variable is now linked to the button. View all button relations in
OBJECT PROPERTIES > Programming
Toggle switching
Toggle switching with a "Trigger Button" lets you alternate between 2 arbitrary values specified in Trigger Value 1 and Trigger Value 2. With feedback, the trigger automatically adopts the corresponding state and sends the value opposite to the current one when pressed. A trigger cannot be configured for 3 or more values.
-
Create a variable to switch between 2 values. Configure it as shown in the instructions
-
Create a button and configure it as follows (see all item settings):

| Feedback | Response to presses and data received from the equipment | *Channel - switches the value and displays feedback (other options are not used) |
|---|---|---|
| Trigger Value 1 / Trigger Value 2 | values to send alternately when the trigger is pressed; they depend on the variable type |
- Drag the variable onto the toggle and specify the following in the variable-linking dialog:

| Event for Action | Interface event associated with the button. When the event occurs, the specified value is written to the variable | * Press - send when pressed | * Release - send when released | Only one event can be used for a toggle at a time | |
|---|---|---|---|---|---|
| Add a feedback channel | (Create a feedback channel) Select this checkbox so the trigger knows its state and changes it when data is received from the variable and when pressed. |
- The variable is now linked to the trigger. View all relations in
OBJECT PROPERTIES > Programming
Level control
Pressing the level or moving its slider sends the controlled variable a number corresponding to the slider's current position.
-
Create a variable to adjust. Configure it as shown in the instructions
-
Create a level and configure it as follows (see all settings):

| Feedback | Level response to user presses and data received from the equipment | *Channel - sends the value and displays feedback (the slider moves when data is received) |
|---|---|---|
| Min / Max | Level adjustment limits: define the value range in which the slider moves | |
| Invert Range | Swaps the lower and upper ends of the level. For example, a vertical level from 0 to 100 will be adjusted from top to bottom instead of bottom to top. |
- Drag the variable onto the level and specify the following in the variable-linking dialog:

| Event for Action | Interface event associated with the button. When the event occurs, the specified value is written to the variable | * Press - send Value when pressed | * Release - send Value when released | * Move - send all intermediate Value values as the slider moves. * add Delay (100) before the command on the Move event to reduce equipment load (with Delay, Move triggers no more often than once every 100 ms) | All three events can be used simultaneously. | |
|---|---|---|---|---|---|---|
| Add a feedback channel | (Create a feedback channel) Select this checkbox so the level slider moves according to the variable's actual state |
- The variable is now linked to the level. View all relations in
OBJECT PROPERTIES > Programming
Stepwise increment/decrement
A graphical item with 2 states. Each press calculates a value greater than the current value by "Up/Down Value", without exceeding "Max/Min Value". The calculated value is sent to the variable, implementing a stepwise increment. The item requires real-time feedback from the variable.
-
Create a variable to increment. Configure it as shown in the instructions
-
Create a level and configure it as follows (see all settings):

| Feedback | Level response to user presses and data received from the equipment | *Momentary - the button must appear pressed immediately; it does not display feedback visually |
|---|---|---|
| Up/Down Value | increment step (can be greater or less than zero) | |
| Min/Max Value | increment limit (minimum for a negative step, maximum for a positive step) | |
| Hold Value | increment step when Hold triggers. The equipment control command can be assigned to both Press and Hold so the value increases while the button is held | |
| Hold Time | time the button must be held before Hold triggers | |
| Repeat Time | On Hold event repeat rate |
- Drag the variable onto the button and specify the following in the variable-linking dialog:

| Event for Action | Interface event associated with the button. When the event occurs, the calculated increment value is written to the variable | * Press - send when pressed | * Hold - increment the value at the specified interval while the button is held | Two events can be used simultaneously. | |
|---|---|---|---|---|---|
| Add a feedback channel | (Create a feedback channel) Select this checkbox so the increment is calculated from the variable's actual state |
- The variable is now linked to the level. View all relations in
OBJECT PROPERTIES > Programming
Sending a pulse
Some automation systems act not on a simple value change, but on a pulse: a single change in a variable's state followed by a return to its original value.
A regular Button can send a pulse. It can control the pulse duration or send pulses of a fixed duration.
A button with 2 states is normally used for this task. Each press sends a value followed by zero. Different implementations produce fixed- or variable-duration pulses.
-
Create a variable to control. Configure it as shown in the instructions
-
Create a button and configure it as follows (see all settings):

| Feedback | Button response to user presses and data received from the equipment | *Momentary - the button sends a value but does not display feedback | *Channel - sends a value and displays feedback | *None - does not react visually to presses or incoming feedback | *Invert Channel - sends a value and displays inverted feedback (false - on, true - off) |
|---|
- Drag the variable onto the button and specify the following in the variable-linking dialog:

| Add a feedback channel | (Create a feedback channel) Select this checkbox if the button should both write a value to the variable and change state when data is received from the same variable. The received value affects the button's on/off state and can be displayed in its text field. |
|---|

| Add a feedback channel | (Create a feedback channel) Select this checkbox if the button should both write a value to the variable and change state when data is received from the same variable. The received value affects the button's on/off state and can be displayed in its text field. |
|---|
- The variable is now linked to the button. View all button relations in
OBJECT PROPERTIES > Programming
Routine, sequence
Several commands can be bound to one graphical item. They are sent to the equipment in order, from top to bottom, without a delay. Only 1 feedback channel can be bound, otherwise incoming data is processed incorrectly.
To bind several commands to 1 graphical item, drag them onto the item one by one. Select the appropriate events (Press, Release, Move) in the binding dialog:

- Add a delay between commands through the macros editor. Select the folder
Otherand the commandDelay. Adding a delay is recommended to ensure that equipment processes commands reliably.

Radio button group
A Radio Button is an interface item for selecting one of several preset options. iRidi does not have a separate radio button type; you can configure radio buttons using Trigger Button items. Radio buttons send values to variables from different buttons, only one of which can be selected.
Radio-button settings and behavior depend on the equipment variable you are working with. The following are several situations and configuration examples.
Option 1. Radio buttons controlling a single variable with feedback. They write values to one variable, and the equipment returns its current state.
4. Configure as many Trigger Button items as there are radio buttons (see the image). In Trigger Value 1 and 2, set the same values corresponding to what each button should send to the controlled variable
5. Drag the variable control command onto all radio buttons. Select Press or Release as the send event and be sure to select the Add A Feedback Channel checkbox to display the variable state

- The configured button enters State 2 only when the variable takes the value specified in Trigger Value 1 and 2
Option 2. Radio buttons controlling variables with feedback. They write on\off values to different variables, and the equipment returns their current states. The automation equipment does not synchronize the variables for radio button operation (inactive modes must be turned off on the iRidi side)
- Configure items with Type:
Trigger Button, Feedback:Channel, and setTrigger Value 1= inactive andTrigger Value 2= the variable's active state (for example, 0/1, 0/100) - Drag the variables' control commands onto the graphic items. Using the first item in the group as an example:
Send zeros to all variables in the radio-button group to turn off the currently active mode. In the send-command dialog, select Action: Send Number
Add a Delay(50) ms through the Press event macros editor to give the equipment time to disable the active mode
Drag the control command for the variable corresponding to the radio button onto the item. Leave Action: Send Token. Value on the Press (or Release), and be sure to select Add a Feedback Channel

- If operating modes are synchronized by the automation equipment (enabling one automatically disables the others), you do not need to send zeros to the variables being disabled. Complete only setup substep 2.3
Input field
An item for entering data from the keyboard. The entered data remains on the item and can be retrieved to send to equipment or process in a script.
- Create an item and configure it as follows (see all settings):
| Feedback | Response to a press | *Momentary - the input field is highlighted when it receives focus |
|---|
- The input field can be linked to a variable directly or through a script

When the input field is pressed, execute the command to open the keyboard:
- Object Properties > Programming > Press > «Show Keyboard [keyboard_type]»
On the Enter event, pass data from Editbox to an item or driver.
Example workflow:
- Press - opens the smartphone (tablet) virtual keyboard
- Enter - the input field sends text to the driver as a command, closes the keyboard, and clears the input field.
To delete previously entered data, write an empty string to the input field:


RGB palette
RGB LED strips are controlled using DMX controllers and have one of these configurations:
- Red, Green, Blue - three channels control the strip's color. Brightness is reduced by reducing the brightness of the individual color channels.
- Red, Green, Blue, Alpha - four channels controlling the strip's color and brightness
Option 1. Control an RGB strip using three (four) Level items.
Create 3 (4) Unsigned 8-bit variables (Subtupe: VALUE) in the project. The variables are controlled within 0...255; increasing a channel value increases the brightness of its corresponding color.
Pressing the level or moving its slider sends the controlled variable a number corresponding to the slider's current position.
-
Create a variable to adjust. Configure it as shown in the instructions
-
Create a level and configure it as follows (see all settings):

| Feedback | Level response to user presses and data received from the equipment | *Channel - sends the value and displays feedback (the slider moves when data is received) |
|---|---|---|
| Min / Max | Level adjustment limits: define the value range in which the slider moves | |
| Invert Range | Swaps the lower and upper ends of the level. For example, a vertical level from 0 to 100 will be adjusted from top to bottom instead of bottom to top. |
- Drag the variable onto the level and specify the following in the variable-linking dialog:

| Event for Action | Interface event associated with the button. When the event occurs, the specified value is written to the variable | * Press - send Value when pressed | * Release - send Value when released | * Move - send all intermediate Value values as the slider moves. * add Delay (100) before the command on the Move event to reduce equipment load (with Delay, Move triggers no more often than once every 100 ms) | All three events can be used simultaneously. | |
|---|---|---|---|---|---|---|
| Add a feedback channel | (Create a feedback channel) Select this checkbox so the level slider moves according to the variable's actual state |
- The variable is now linked to the level. View all relations in
OBJECT PROPERTIES > Programming
Option 2. Control an RGB strip using a palette
Any colored item can be used as a palette: moving a finger across the item sends equipment a command to set the selected color.
This requires adding a special script, the RGB library, to the project. The script must be added only 1 time; it can then control RGB strips through any built-in iRidi driver.
2.1. Create a palette and auxiliary items. Any colored image can be used as a palette.
- Configure the palette as a Joystick with a range of 0...100 along X and Y
- Configure an inactive Button item to display the color selected on the palette
- If needed, configure active Button items to change the strip brightness in steps

2.2. Download the file RGB_Library.js
: This file provides color control through JavaScript. Add it to the visualization project: open the project in iRidi Studio and click , then select ( + ) "Add Script From File"
2.3. Create an empty script file using ( + ) "New Script" to add a description of your RGB palette: : In the script file, describe the palette and the item that displays the selected color:
///////// Copy this function to make one more RGB palette ///////
RGB_player(
"Driver", // Driver in project
"Channel Red", // Name of Red Channel
"Channel Green", // Name of Green Channel
"Channel Blue", // Name of Blue Channel
255, // Top limit for RGB channel (100 or 255)
IR.GetItem("Page 1").GetItem("Item Color Picker 1"), // Item "Color Picker"
/////// optional parameters ///////////////////////////
IR.GetItem("Page 1").GetItem("Item Display 1"), // Item "Display"
)
The extended version includes brightness control buttons:
///////// Copy this function to make one more RGB palette ///////
RGB_player(
"Driver", // Driver in project
"Channel Red", // Name of Red Channel
"Channel Green", // Name of Green Channel
"Channel Blue", // Name of Blue Channel
255, // Top limit for RGB channel (100 or 255)
IR.GetItem("Page 1").GetItem("Item Color Picker 1"), // Item "Color Picker"
/////// optional parameters ////////////////////////////
IR.GetItem("Page 1").GetItem("Item Display 1"), // Item "Display"
IR.GetItem("Page 1").GetItem("Up 1"), // Item "Up"
IR.GetItem("Page 1").GetItem("Down 1"), // Item "Down"
10 // Increment step for "Up" and "Down"
)
In the definition, specify where the palette is located and which equipment receives its data:
- IR.GetDevice("Driver") - name of the driver to receive RGB commands. Copy the driver name from PROJECT DEVICE PANEL
- "Channel Red", "Channel Green", "Channel Blue" - names of the Commands controlling the red, green, and blue color components. Copy the names from PROJECT DEVICE PANEL. The Commands names must match the Feedbacks names that provide the RGB strip's current color.
*HDL-Buspro, Domintell- use a special name format. Specify :, for example "Dimmer in Bedroom:Channel 1" - 255 - maximum brightness value for each color. Most equipment uses a brightness range of 0 to 255, but some drivers use 0...100 (for example, HDL). For HDL-Buspro, specify 100 in this settings line.
- IR.GetItem("Page 1").GetItem("Item Color Picker 1") - name of the page ("Page 1") and its item ("Item Color Picker 1") to use as the palette
- IR.GetItem("Page 1").GetItem("Item Display 1") - name of the page ("Page 1") and its item ("Item Display 1") to display the color selected on the palette
- IR.GetItem("Page 1").GetItem("Up 1") - name of the page ("Page 1") and its item ("Up 1") that increases the selected color's brightness when pressed
- IR.GetItem("Page 1").GetItem("Down 1") - name of the page ("Page 1") and its item ("Down 1") that decreases the selected color's brightness when pressed
- 10 - amount by which the selected color's brightness increases/decreases when Up or Down is pressed
2.3. Click "OK" to save the palette description, then run the Emulator to check its operation.
Errors caused by an incorrect palette description appear in the log window (F4)
Displaying incoming data
A graphical item can display a variable value by changing its state or text:
- Configure the graphical item to display received values:

In General, select:
Feedback: Channel (if 0 = false) or
Feedback: Invert Channel (if 0 = true).
This feedback type lets the item process data received from variables
- Bind the equipment Feedback channel to the graphical item:

Drag the feedback channel or variable onto the item and select In Value
The item must have 2 states to work correctly. The first corresponds to 0, and the second to any nonzero value.
The template $V, added to the item's text, displays the received value in that text.
- Bind the equipment Feedback channel to the graphical item:

Drag the feedback channel or variable onto the item and select In Text
The item can have any number of states and any settings. The value is displayed in the text fields of all item states.

Add $V to the item's text. Drag the feedback channel or variable onto the item and select In Value in the binding dialog. This displays the received integer with any additional text.
Other templates display fractional numbers and more:
| $V | Integer part of the received value |
| $F1 ... $F5 | Floating-point value with a decimal point. 1 to 5 specifies the number of digits after the point |
| $F,1 ... $F,5 | Floating-point value with a decimal comma. 1 to 5 specifies the number of digits after the comma |
| $S | Number of the selected state |
| $X | Value in HEX format |
| $$ | Dollar sign |
| $P | (Levels only) Percentage of the Level's maximum value |
| $H | (Levels only) Maximum value of the Level |
| $A | (Levels only) Current value minus the Level's minimum value |
| $L | (Levels only) Minimum value of the Level |
| $R | (Levels only) Level range: maximum minus minimum |
Enter the template in the graphic item's text field. It can be combined with other text and symbols (comments or units of measurement)
Variable history chart (trend)
The Linear Trend graphical item plots a variable's changes over time.
The chart can be plotted in real time using variable data received directly from automation equipment. Historical data can also be combined with the variable's current values. Historical data can be stored only on iRidi Server.
- To retain variable history, configure the variable to be saved to the server database. This is configured in the server project. Once the variable is saved to the database, its history chart can be requested from i3 pro. The chart combines historical and current data according to the Linear Trend item's settings.
Chart display is configured in the Panel Project.
- Create a variable to display on the chart. Configure it to be saved to the database in the iRidi Server project.

-
The storage format (Signed 32-bit, Float 64-bit) depends on the variable's numeric range. Always use Float 64-bit for fractional values.
-
A variable can be saved at a selected Interval or when it changes by more than the specified Deadband.
- Create a graphical item and select Type: Linear Trend. Drag onto it one or more feedback channels whose changes you want to plot:

- Open the chart settings and configure its appearance:


- Trend - main chart parameters: database operation, time span, main curve Range - chart time interval (X axis). When loading from the database, displays information for the specified time Main Curve - select the main chart variable (highlighted more brightly than the others)
- Background, Data view, Border - chart color scheme; see the example
- Cursor - under development

- General - main time axis settings (X axis)
- Visible Axis X - display the time axis
- Position: Top - time scale at the top, Down - at the bottom
- Line - time scale settings
Major - axis and scale marking settings
Minor - additional scale marking settings - Visible - display the X axis
- Color - axis and marking color
- Depth - line thickness
- Interval - time interval on the time scale
- Serif - tick size on the scale
- Count - number of additional ticks on the scale
- Label - time scale labels (display format, font, label color, offset from the axis)
- Text - time axis title (text, font, title color)

- General - main value axis settings (Y axis)
- Visible Axis Y - display the value axis
- Position: Left - value scale on the left, Right - on the right
- Range - axis value range (minimum to maximum)
- Auto scale - automatically adjust the axis to values received from the database
- Min/Max - minimum/maximum axis value
Other settings are the same as for the X axis.

- Channel list - variables displayed on the chart and their individual settings (General, Axis X, Axis Y)
- Individual curve settings for multiple channels' - display type, color, and thickness of each curve on the chart
- Color - curve color
- Type - curve display type:
- Dotted line - display the curve as separate points
- Line - display the curve as a continuous line
- Square line - display the curve as blocks
- Depth - line thickness
- Setup Axis X and Y - enable individual axis settings for this curve (when disabled, the chart's main axes are displayed)
- Tag - full tag name identifying the driver and server variable supplying the data. Allows the variable to be controlled through JavaScript
- Axis X, Axis Y - individual chart axis settings (the same as the main chart axis settings)
Chart examples:

download: Trend configuration example
Controlling trend display through scripts