iRidi Studio
Documentation for the current iRidi Studio 2019 version:
- Graphical item types;
- Interface navigation: switching pages and popups;
- Appearance of interface items;
- Programming items;
- Relations: links within the i3 pro interface;
- Interface animation;
- Sound playback and vibration;
- Launching applications, opening links, and OS commands.
training:
online webinars
An iRidi project contains a graphical part (pages, popups, buttons, images, animation, video streams, controls) and a driver part (equipment commands and status channels, scripts based on JS Guide). These parts interact continuously; their settings determine the project's operating scenarios. Creating an iRidi project starts with configuring its graphical part.
The project's graphical part (design) can be obtained in one of the following ways:
- Download a free ready-made sample design from the Downloads section of iridiummobile.ru. This saves time by avoiding interface development from scratch.
- Purchase a ready-made design in the BUY section of iridiummobile.ru (integrators only). First, register in My account and complete Full Registration.
- Create your own design in iRidi Studio.
New iRidi project
When starting iRidi GUI Editor, first create a project or open an existing one. Create a project using the toolbar button, Ctrl+N, or File > New Project
New project:
File > New > New Panel Project
*Project Name - new project name *Target Device - device type on which the project will run (determines project resolution). Select Custom to enter the resolution manually *Landscape Width / Landscape Height - landscape project page resolution in pixels *Page Name - name of the new project's first page *Orientation - startup page orientation (portrait/landscape)
After creating a project, you will see its settings window:
Click the page name in the project tree to edit it:

Use the toolbar buttons to switch between creating and selecting graphical items on the page:
| Draw Item - create a graphical item |
For tools that quickly create an interface, see
Interface structure
Interface components
-
Pages (Page) - the project foundation on which graphical items are placed. Popups can only open over a page
-
the project must contain at least one page
-
a page can be portrait or landscape
-
a page supports autorotation (switching between landscape and portrait when a tablet or smartphone with an accelerometer rotates). Create a matching page in the other orientation to enable rotation
-
all pages have the same size, determined by the project resolution.
-
pages cannot open with animation effects or be transparent or translucent
-
only one page is open at a time; opening another closes the previous page and all its popups
-
Popups (Popup) - areas of arbitrary size for placing graphical items.
-
using popups in a project is optional
-
a popup cannot have portrait or landscape orientation
-
a popup closes when the page autorotates or a new page opens
-
a popup can have any size or opacity and can open anywhere
-
several popups can open on one page
-
Buttons for navigating between pages and popups
-
any graphical item can serve this purpose
-
- a button starts controlling the project once a Flip command is linked to it
-
a button can control pages, popups, and equipment at the same time
*Buttons for controlling equipment
-
any graphical item can serve this purpose
-
button settings determine the values sent to equipment
-
a button can control pages, popups, and equipment at the same time
-
Interface design items
-
any graphical item can serve this purpose
-
a button can be made inactive so that it does not respond to presses
Interface organization
- Page-based interface An interface based on Pages without Popups can use a rotating design that switches automatically between portrait and landscape. Pages support Prev Page, which returns to the previous page without specifying its name.
However, a page-based interface does not let you reuse common interface parts: menu items must be duplicated on each new page. Changes to a shared menu may therefore require updating every project page.
- Interface based on 1 page and popups A navigation menu can remain open on the project's single page while project popups are displayed without covering it. Additional pages can also be created. An interface consisting of a main page and popups cannot rotate: popups have no orientation and cannot rotate with the page.
Graphical items
A graphical item is an interface object on an iRidi project page or popup. Graphical items include buttons, levels, icons, design elements, background and animated images, and other specialized item types.
After creating an iRidi project, you will see its startup page, where you can begin working with graphical items.
Draw Item
Use Draw Item on the toolbar to create a graphical item template that can be configured with any properties:
The default item template has 2 states (on/off) and type Button (a simple button). Pressing it changes its state to the opposite one; releasing the graphical item returns it to its original state.
Graphic item states
To create or delete a graphic item state and quickly switch between states, use Object Properties > States :
| Prev State - open the previous state | |
| Next State - open the next state | |
| Add State - add one state | |
| Delete State - delete the selected state |
All graphical item properties >>
Graphical item types
The following graphical item types are available in iRidi projects:
| Button button | A button is a pressable item. It has 2 appearances, conventionally called "not pressed" (false) and "pressed" (true). Pressing a button can send commands. The value to send must be specified in the command; it can be a number or a string. | With some settings, the button shows the pressed state while touched and returns to the released state when released. With other settings, it enters the pressed state when it receives any nonzero value from equipment. State changes can be disabled to use the button as a Label |
| Trigger Button toggle button | A trigger is a pressable item that alternates between two latched states, off (Value 1) and on (Value 2), on successive presses and sends these values to equipment. On receiving data, it enters the on state if the received value matches Value 2 | |
| Up/Down Button increment/decrement button | Up/Down is a pressable item with 2 states, released and pressed. It looks like a regular Button but sends values increased or decreased relative to the current value. Each press takes the variable's current state, changes it by the specified amount, and sends it to equipment. A typical use is adjusting a temperature setpoint by +/- 1 degree or similar stepwise variable changes. This is the only item type that will not work correctly without feedback about the controlled value's current state (write the equipment Feedback to the Up/Down item's Value so it can calculate the value correctly) | |
| Multistate Button animated button | An animated button differs from a standard button in having multiple appearances. When pressed or when it receives data, it transitions from its "not pressed" (first) state to its "pressed" (last) state, like a standard button, while sequentially displaying all intermediate states. The transition between the endpoint states is frame-by-frame animation. Playback cannot be stopped at an intermediate state (use Multistate Level for this). With certain settings, animation playback can be looped for as long as a nonzero value is supplied to the button, or for the entire time the interface is running. | |
| Level level with a slider | A Level is an item with a movable slider. It has 2 appearances, empty and filled. The slider replaces one state with the other as it moves from edge to edge. Minimum and maximum values define the slider's movement range. Its position determines the value sent to equipment (when moved by a finger/cursor) or displayed when received from equipment. The slider moves linearly; Circular Level provides circular movement | |
| Circular Level circular level | Like a standard Level, a circular level can send/display values within a specified range, but its value changes as the slider moves around a circle or within a sector. | |
| Multistate Level animated level | Unlike a regular linear level, a Multistate Level has several appearances that replace one another as the slider moves within Min...Max. A unique state can correspond to each value or range (if there are fewer states than values). It can look like a button. For example, to display a fan mode, create an MS Level with a range from 0 to 3 and 4 states, each with a mode icon. When data arrives, the level displays the icon corresponding to the value. Controllable levels usually have many states, corresponding to their range. | |
| Multistate Circular Level animated circular level | A Multistate Circular Level combines circular and animated level behavior: its several appearances replace one another as the slider moves around the circle. A unique state can correspond to each value or range (if there are fewer states than values) | |
| Edit Box input field | An Edit Box is a rectangular field for entering and editing text with the keyboard. It has unselected and selected states; it enters the selected state when the cursor is in the field. The entered text can be sent by pressing Enter or a separate button that takes the field's value and sends it to the destination. | |
| TextArea input field | TextArea is a graphical item similar to Edit Box, with multiline input. Text wraps at spaces. Scrolling appears when the text exceeds the field bounds. Scroll using the scrollbar or a swipe. | This item has an enhanced Helper. Without a selection, it offers Paste, Select, Select All; with a selection, it offers Paste, Copy, Cut. |
| Joystick joystick | A Joystick is a two-axis level that generates ValueX and ValueY as its slider moves within the X and Y axis ranges. An important feature is reading the color beneath the slider. Place a palette image on the joystick to return the color under the slider, split it into RGB components, and send them to an RGB dimmer. | |
| Static List list of popups | A list is a project navigation item that lets you place many popups on one page and move between them using gestures. It looks like a graphic item on a page or popup. Its settings specify the list and order of popups to scroll within the item. A popup included in a list cannot be used independently or in another list (a technical limitation). | |
| List dynamically populated list | A List is scrollable and can contain many entries based on one popup template. Each entry is populated by scripts and can change while the project runs. Script control is fairly straightforward, but moving entries or inserting them at the beginning or middle is not supported (all content must be refreshed). | |
| Advanced List enhanced dynamically populated list | Advanced List is also controlled by scripts. It works well with very large numbers of entries and supports insertion at any position, but requires more initial learning. | |
| Picker picker | A Picker scrolls a list of entries and lets you change their number and content. It can only be created using a script: see Picker API. Its main use is setting dates or times | |
| Linear Trend line chart | A chart whose points, representing variable values, are connected by lines. A Linear Trend can display changes in several variables over specified time and value ranges. It receives values from the iRidi server database or an external SQL database (an external database requires a script). i3 pro cannot store its own database, so charts are available only with a server or external database. Some Linear Trend parameters can be changed from scripts. | |
| Pie Chart pie chart | A pie chart is divided into sectors to illustrate numerical proportions. The arc length of each slice is proportional to the value it represents. The chart is populated from scripts. | |
| Bar Chart bar chart | A bar chart compares several values represented by rectangular areas whose heights (lengths) are proportional to the values they represent. The chart is populated from scripts. |
- Button
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):

| 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:

| Event for Action | Interface event associated with the button. When the event occurs, the specified value is written to the variable | * Press - send when the button is pressed | * Release - send when the button is released | * Hold - send repeatedly while held | * Move - does not work with a Button | You can use several events at the same time. For example, send [ 100 ] on press and [ 0 ] on release. | |
|---|---|---|---|---|---|---|---|
| Value | The value to write to the variable. The button always sends the same value entered in Value | ||||||
| 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
example
DOWNLOAD
Use feedback to display the value on the item as a number:
-
enter a template in the item's text field
-
drag Feedback onto the item and select "In Value":
$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)
- Level
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
example
DOWNLOAD
Use feedback to display the value on the item as a number:
-
enter a template in the item's text field
-
drag Feedback onto the item and select "In Value":
$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)
- Multistate Button (animated button)
Each press sends the same commands bound to the button beforehand. An animated button handles commands like a regular button, but plays an animation when its state changes on a press or incoming feedback.
-
Create a variable to receive a number or string. Configure it as shown in the instructions
-
Create an animated button with the required number of states (frames). Configure frame images, text, or other button settings (see all settings):

| Feedback | Button response to user presses and data received from the equipment | * Momentary - animate when pressed. On release, the animation runs backward. Repeat: True - continue until the button is released | * On - animate when the project starts. Repeat: True - continue while the project runs (an infinite loop) | * Blink / Channel - animate when any nonzero value is received from equipment. Repeat: True - continue until zero is received |
|---|---|---|---|---|
| Time Up / Time Down | (tenths of a second) animation playback speed from the first frame to the last and back | |||
| Repeat | repeat animation continuously while the item is active |
- 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 specified value is written to the variable | * Press - send when the button is pressed | * Release - send when the button is released | * Hold - send repeatedly while held | You can use several events at the same time. For example, send [ 100 ] on press and [ 0 ] on release. | |
|---|---|---|---|---|---|---|
| Value | The value to write to the variable. The button always sends the same value entered in Value | |||||
| 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 its on/off state and animation playback |
- The variable is now linked to the button. View all button relations in
OBJECT PROPERTIES > Programming
example
DOWNLOAD
- Multistate Level (animated level)
A graphical item with more than 2 states. Pressing the level sends a number corresponding to the slider position to the variable, but there is no actual slider. Instead, the level displays the State corresponding to the selected value or value range. Each State can have its own image, text, and color.
-
Create a variable to adjust. Configure it as shown in the instructions
-
Create and configure a Multistate Level (see all settings):

| Feedback | Level response to user presses and data received from the equipment | *Momentary - item states change only when pressed | *Channel - states change when pressed or when data is received |
|---|---|---|---|
| Min / Max | Level adjustment limits: define the value range in which the level operates | ||
| Invert Range | Swap the lower and upper ends of the level, so frames change from last to first |
- 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 state changes according to the variable's actual state |
- The variable is now linked to the level. View all relations in
OBJECT PROPERTIES > Programming
example
DOWNLOAD
- List (inertial list)
A graphical item not used to communicate directly with equipment. It creates a list of entries based on a shared template, changes their number and content, and performs actions when an entry is pressed. Populate the inertial list using iRidi Script; see List API.
Use an inertial list to display songs, films, or folders received from a remote source.
-
Use JavaScript to prepare the data for the inertial list (such as songs and artists). Use List API to populate the list
-
Create a List item 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) |
|---|---|---|
| Feedback | affects the list background, not its entries. Usually unused | |
| List Template | the popup template for list entries | |
| List Items | entries created by default from the template. Any number of entries can be created with different text. Commands are generated using List API | |
| Resistance | percentage of inertia lost as the list moves | |
| Scroll Bar | show/hide the scrollbar |
- Use List API to link list items to equipment commands
example
DOWNLOAD
- Up/Down Button (increment/decrement button)
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
example
DOWNLOAD
- Trigger Button (toggle button)
A Trigger Button alternately sends 2 arbitrary values specified in Trigger Value 1 and Trigger Value 2. With feedback, it adopts the corresponding state automatically and sends the opposite value 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
example
DOWNLOAD
- Radio Buttons A Radio Button is an interface item for selecting one of several preset options. iRidi has no separate radio button type; configure them 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 for controlling a single variable with feedback. They write values to one variable; the equipment returns that variable's current state.
- Configure as many Trigger Button items as there are radio buttons (see the image). In
Trigger Value 1and 2, specify identical values corresponding to what each button should send to the controlled variable - Drag the variable's control command onto all radio buttons. Select
PressorReleaseas the send event and be sure to select theAdd A Feedback Channelcheckbox 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 for controlling variables with feedback. They write on\off values to different variables; the equipment returns the current states of these variables. The automation equipment does not synchronize the variables for radio-button operation (inactive modes must be turned off on the iRidi side)
3. Configure the items with Type: Trigger Button, Feedback: Channel, and set Trigger Value 1 = inactive and Trigger Value 2 = the active variable state (for example, 0/1, 0/100)
4. Drag the variable control commands onto graphical items. Using the first item in the group as an example:
5. 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
6. Add Delay(50) ms through the Press event macros editor to give equipment time to disable the active mode
7. Drag the control command for the variable corresponding to the radio button onto the item. Leave Action: Send Token and send Value on the Press event (or Release), selecting the checkbox 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
- Edit Box (input field)
An item for entering data with 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:


example
edit box configuration options
- Virtual key
An item for creating a custom keyboard. Virtual keys can form a keyboard of any appearance and configuration in an iRidi project.
- Create an item and configure it as follows (see all settings):
| Feedback | Response to a press | * Momentary - keys that enter individual characters | * Channel - keys configured to change case | To switch layouts, use a project variable containing a number: the current key state. Link the variable using In Value to change case. | |
|---|---|---|---|---|---|
| Key Action | Key event | Insert Text - enter the character specified in the key's text field. Enter 1 letter or digit in that field, and the key sends it | Enter, Up, Down, Left, ... - Windows keyboard commands |
A virtual key sends a value to the active input field (Edit Box). If no input field has been created, the value is not written anywhere.
example
DOWNLOAD
- Joystick
A graphical item with 1 state and a cursor. Its X and Y coordinates represent the current joystick cursor position. Minimum and maximum values limit cursor movement. The color beneath the cursor can be retrieved to control RGB lighting.
- Create an item and configure it as follows (see all settings):

| Feedback | response to events | * Momentary - the user moves the cursor |
|---|---|---|
| MinX ... MaxX / MinY ... MaxY | cursor movement range along X and Y | |
| InvertX / InvertY | swap minimum and maximum along X and Y |
- The joystick can be linked to a variable directly or through a script. A script is usually used to retrieve the color under the cursor and send its components to RGB strip control channels
example
DOWNLOAD
- Color Picker
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)
- Static List (popup list)
A graphical item in which popups can be scrolled. Used to create gesture-controlled menus.
- Create an item and configure it as follows (see all settings):

| Popups List | popup list: open the settings window and select the popups to display in the list |
|---|---|
| Direction | vertical or horizontal list |
| Resistance | (%) percentage of inertia lost as the list moves |
| Pull Up Type / Time | list scrolling animation type / (ms) list scrolling speed |
| List Type | how popups snap to the base list item's edges: center, left edge, or both edges. Used when popup sizes differ from the base item's size. |
| List Gap | spacing between popups on a Static list. Appears when List Type = Stick Up or Stick Up & Down |
Link equipment commands to graphical items on the popups included in the list.
example
DOWNLOAD
- Trend (chart)
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 - basic chart parameters: database access, time range, main curve
- Range - chart time interval (X axis). When loading from the database, displays information for the specified period
- Main Curve - select the main variable on the chart (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 (Genral, 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: Chart (trend) configuration example
Controlling trend display through scripts
- Populating a chart from a script array
A chart can be created manually using a script array, not only from database values.
To create this chart, add a Linear Trend graphical item and a button for plotting it to the project

Create a script:
var l_oPage = IR.GetPage("Page 1");
var l_oTrend = l_oPage.GetItem("Item 1");
var L_oCurve = l_oTrend.GetCurve("test");
var l_aArray = [[0, 60], [1, 30], [2, 90], [ 3, 10], [4, 60], [5, 20], [ 6, 80]]; // <translate><!--T:357-->
массив, в который вписываем значения для графика</translate>
IR.AddListener(IR.EVENT_ITEM_RELEASE, l_oPage.GetItem("Get_SCRIPT"), function(){
L_oCurve.SetData(l_aArray , 0, l_aArray.length);
});
var l_aArray -
an array in which to enter the values used to plot the trend.
The example trend created using a script array

example
DOWNLOAD
- Populating a chart from an external database
To display information from an external database, configure an iRidi Pro connection to it using the ODBC driver.
- Create a server project
- Configure the database connection by adding a script to the server project:
IR.AddListener(IR.EVENT_START,0,function()
{
IR.SetTimeout(2000, function(){
var MySQL = new ODBC("root", "", "MySQLresurs"); // creating database connection object
if(MySQL == false)
{
IR.Log("Wrong connection");
}
else
{
IR.Log("Right connection");
}
var response = MySQL.Query("SELECT * FROM test");
if (response) // if connection is successful and answer exists
{
var rows = response.GetRows();
var columns = response.GetColumns();
var data = {}; // two-dimension array with query result
for (var i = 0; i < columns; i++) {
var colName = response.GetColumnName(i);
data[colName] = [];
for (var j = 0; j < rows; j++) {
data[colName][j] = response.GetRowValue(i, j);
}
}
response.Free(); // free memory of recordset (optional action for memory optimization)
IR.Log(JSON.Stringify(data));
IR.SetVariable("Server.Tags.Data",JSON.Stringify(data));
}
});
});
- Create a virtual tag to pass data from the server project to the Panel Project.
- Create a Panel Project.
- Add and configure a Linear Trend graphical item.
- Add a button that queries database values when pressed.
7. Add a script to the Panel Project:
var l_oDevice = IR.GetDevice("iRidium Server");
var l_oPage = IR.GetPage("Page 1");
var l_oTrend = l_oPage.GetItem("Item 1");
var L_oCurve = l_oTrend.GetCurve("test");
var l_aArray = [];
IR.AddListener(IR.EVENT_ITEM_RELEASE, l_oPage.GetItem("Get_BD"), function(){
L_oCurve.SetData(l_aArray , 0, l_aArray.length);
});
IR.AddListener(IR.EVENT_TAG_CHANGE, l_oDevice ,function(m_sTag, m_sData){
if(m_sTag == "Data"){
l_aArray = [];
var m_oData = JSON.Parse(m_sData);
for(var Index in m_oData["X"]){
l_aArray[Index] = [m_oData["X"][Index], m_oData["Y"][Index]+0];
}
}
});
example
DOWNLOAD
- Line Chart
Line Chart - a chart of variable changes whose points are connected by lines. It can display changes in several values. Unlike Linear Trend, Line Chart supports gesture control.
The chart displays values from the iRidi server database . Some Line Chart parameters can be changed in a script.
i3 pro does not store its own database, so charts display information received from the iRidi server.
- Configuring graphs
- Configure storage of feedback channel history in the iRidi server database
- Configure history display: create line chart graphical items in the i3 pro interface and assign each the feedback channels whose history should be displayed.
-
-
- Store feedback channel history in the iRidi server database
-
A driver feedback channel or a virtual feedback channel can be stored in the database.
To retain change history, configure variable storage in the server database. This is configured in the server project. Once the variable is stored, i3 pro can query a chart of its changes. The chart combines historical and current data according to the Line Chart 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.

Database storage parameters:
- Persist - retain the last value written to the variable and restore it after the server restarts, before drivers initialize. This loads values without sudden drops, but the server restart or shutdown is not recorded on the chart.
- Store In DB - enable variable storage in the database and select a data format
- No - database storage disabled
-
- Signed 32-bit - store as a signed integer
-
- Float 64-bit - store as a floating-point number
-
- String UTF8 - store as a string
- Load On Start - write the variable's last database value to the feedback channel when the server starts
- DB Save Strategy - storage strategy: select the event that causes data to be stored in the database:
-
- Deadband - store when the variable differs from its previous value by the configured amount or more.
-
-
- Deadband (value) - minimum variable change stored in the database With Deadband: 0, every value is stored unless it equals the previous number. Strings are stored every time, because they are not compared.*
-
-
- Interval - periodic storage. Data is recorded at the specified interval.
-
-
- Interval (Value) - select an interval from 5 seconds to 1 hour, or enter a Custom interval in ms * If String UTF8 is selected for database storage, data is stored once per minute; more frequent storage cannot be set (use Deadband)
-
-
-
- Interval Value - interval value (minimum 1); *** Interval Units - units of measurement;
-
- Forward value to - forward the value from one tag to another (for details, see here);
Interval storage is convenient for variables whose values change smoothly and are completely inactive, such as air temperature and humidity.
Storage on change is suitable when it is important not to miss the moment a variable changes. For example, switching lights on/off or changing fan speed can be recorded in the database.
-
-
- Display history on a chart
-
-
Create a Panel Project from the server project or synchronize an existing one.
-
Create a Line Chart graphical item in the i3 pro interface and assign it the server feedback channel whose history should be displayed:

- Basic settings
Double-click the item to open appearance settings for the chart and each curve:

-
Name - curve name
-
Tag - server variable supplying data for the curve
-
Line type - curve type
-
Solid - curve points are connected by solid lines
-
Dotted - curve points are connected by dotted lines
-
Square - the curve steps from point to point with a solid line
-
Width line - line or point thickness
-
Line color - line color
-
Fill color - fill color of the area under the chart line
-
Background color - chart area color
-
Text color - color of data text on the axes
-
Gridlines color - grid color
-
Range - value range on the time axis
-
Auto-scaling - automatically scale from the lowest to the highest curve value in the interval
-
Min... Max (with automatic scaling disabled) - fixed data display range
-
Advanced settings - switch settings window modes
-
Advanced settings
Selecting the Advanced settings checkbox opens detailed settings organized into tabs:
- Chart lines:

- Name - curve name
- Tag - server variable supplying data for the curve
- Line type - curve type
- Solid - curve points are connected by solid lines
- Dotted - curve points are connected by dotted lines
- Square - the curve steps from point to point with a solid line
- Width line - line or point thickness
- Line color - line color
- Fill color - fill color of the area under the chart line
- Chart area

-
Chart background color - chart area color
-
Axis background color - color of the area beneath the axes
-
Show border - enable border display
-
Width - border line width
-
Color - border color
-
Gesture control settings
-
Scroll
-
Zoom (Windows)
-
Value popup:
-
Background color - background color of the value popup
-
Cursor color - cursor color in the chart area
-
Font - font settings
-
Font size - font size
-
Style - text style
-
Color - text color
-
To display the cursor and value popup in i3Pro, press and hold the item's chart area. To hide them, press and hold the cursor again until it disappears.
- Gridlines

- Color - gridline color settings
- Width - gridline width settings
- Major gridlines - main grid based on the number of Y-axis marks
- Minor gridlines - additional grid
- Minor gridlines quantity
- Horizontal axis

- Range - value range on the time axis
- Axis position - time axis position: top or bottom of the chart
- Color - axis line color
- Width - axis line width settings
- Show Axis - enable display of the axis, axis title settings, and time/date label settings
- Axis title settings - axis title display and style settings
- Show axis title - enable title display and its settings
- Time and date label settings - time text display and style settings
- Show labels on scale marks - enable time and date display on the axis
- Vertical axis:

- Auto-scaling - automatically scale from the lowest to the highest curve value in the interval
- Min... Max (with automatic scaling disabled) - fixed data display range
- Axis position - data axis position: left or right of the chart
- Marks quantity - chart marks at the specified interval (an integer)
- Axis title settings - axis title display and style settings
- Show axis title - enable title display and its settings
- Axis value label settings - data text display and style settings
- Show labels on scale marks - enable time and date display on the axis
Example:
https://drive.google.com/file/d/1aVJ9UOnORL2XsxN817QTyx9QvvNJKGn-/view?usp=drive_link
- Circular level
A Circular level is a level whose slider moves along a circular scale.
-
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 - send the value and display feedback (the slider moves when data is received) | ||||
| Mode | Circular level mode: | * Simple (one slider and an active area), | * Double (two sliders), | * Triple (three sliders), | * Looped (continuous). | |
| Min Angle / Max Angle | Slider rotation angle limits in degrees: allowed values are 0 to 360, with the origin and nominal counting direction matching clock hands. Set Min Angle / Max Angle to identical values or to 0 and 360 for unrestricted rotation. | |||||
| Min Value / Max Value | Limits of the level's adjustable output value | |||||
| Invert Range | Level change direction: | * False - clockwise, | * True - counterclockwise. | |||
| Range Type | Range type: | * Integer - integer, | * Float - floating-point. | |||
| Active Zone | Active area size as a percentage, from 0 to 100: | * 100 - the entire circular level is active, | * 0 - no active area except the slider(s). | |||
| DrawFullFirstState | Rendering the circular level's inactive sector: | * False - do not draw the inactive sector, | * True - draw the entire circular level (Empty state is drawn in the inactive sector). | |||
| Slider | Slider appearance | |||||
| Slider Color | Slider color | |||||
| Slider Image | Slider image from the project gallery (the image must point vertically upward). Available when Slider is set to Custom. | |||||
| Slider Offset | Slider image offset in pixels along the slider axis, from the center toward its top. Always nonnegative. | |||||
| Slider Stretch | Fit the slider image to the circular level's size. | |||||
| Default Value | Default value for this slider. |
- Drag the variable onto the level and specify the following in the variable-linking dialog:

| Event for Action | An interface event associated with the button. When it 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 Move 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.
Download the demo project:


- Circular level modes Simple - a simple circular level for volume, illuminance, etc.

Looped -
a continuous circular level.
This level is useful when a value needs to be set more precisely. Selecting this mode makes the "Changing Angle" property available; it sets the number of level revolutions needed to reach the maximum value.
For example, when adjusting volume (level values from 0 to 100), music is quiet at 60 and very loud at 65, while 62 is optimal. Setting intermediate values on a simple circular level can be difficult. An endless level can be used in this case.

Select the corresponding circular level mode and set Changing Angle to a suitable value (2 - one turn=50, 4 - one turn=25, etc.). This makes it easy to set 62.
Double - a level with two values.

For example, it can be used to configure a temperature sensor for room heating. One value is the sensor's setpoint, and the other is the current room temperature. Heating runs until it reaches the maximum deviation from the setpoint temperature, then turns off.
For this, the created level must be configured as follows:
- Set Double mode.
2. Set Slider Hit to Display Only for one value so the user cannot control it. This value displays the current temperature.
3. Create a script. This example uses a Modbus device.
var point;
IR.AddListener(IR.EVENT_ITEM_RELEASE,IR.GetItem("Page 1").GetItem("Circle level"), function(){
data = IR.GetItem("Page 1").GetItem("Circle level").Value2;
});
var Modbus = IR.GetDevice("Modbus TCP");
IR.AddListener(IR.EVENT_CHANNEL_SET, Modbus, function() {
var temperature = IR.GetVariable("Drivers.Modbus TCP.Feedback 1");
IR.GetItem("Page 1").GetItem("Circle level").Value1 = temperature;
if(temperature>=point+2){
IR.SetVariable("Drivers.Modbus TCP.Channel 1", 0);
}
if(temperature<=point-2) {
IR.SetVariable("Drivers.Modbus TCP.Channel 1", 1);
}
});
Triple - a level with three values.

The use case is the same as for Double, but this mode allows 3 values: minimum, maximum, and current room temperature. Heating therefore turns on at the set minimum temperature and off when the maximum is reached. This fully automates maintaining room temperature.
Configuring this level mode is very similar to Double:
- Set Triple mode.
- Set Slider Hit to Display Only for one value so the user cannot control it. This value displays the current temperature.
- Create a script. This example uses a Modbus device.
var min;
var max;
IR.AddListener(IR.EVENT_ITEM_RELEASE,IR.GetItem("Page 1").GetItem("Circle level"), function(){
min = IR.GetItem("Page 1").GetItem("Circle level").Value1;
max = IR.GetItem("Page 1").GetItem("Circle level").Value2;
});
var Modbus = IR.GetDevice("Modbus TCP");
IR.AddListener(IR.EVENT_CHANNEL_SET, Modbus, function() {
var temperature = IR.GetVariable("Drivers.Modbus TCP.Feedback 1");
IR.GetItem("Page 1").GetItem("Circle level").Value3 = temperature;
if(data>=max){
IR.SetVariable("Drivers.Modbus TCP.Channel 1", 0);
}
if(data<=min) {
IR.SetVariable("Drivers.Modbus TCP.Channel 1", 1);
}
});
- Multistate circular level (animated circular level)
A circular level with more than 2 states. Changing its value (rotating it) sends a number corresponding to the slider position to the variable. There is no actual slider; the level displays the State corresponding to the selected value or range. Each State can have its own image, text, and color.
- Create a variable to adjust. Configure it according to the instructions for the driver you will use.
- Create and configure a Multistate circular level with the required states, each representing the level's appearance (see all settings):

| Feedback | Level response to user presses and data received from the equipment | * Channel - | send the value and display feedback (the slider moves when data is received) | ||
| Mode | Circular level mode: | * Simple ( | one slider and an active area), | * Looped ( | continuous). |
| Min Angle / Max Angle | Slider rotation angle limits in degrees: allowed values are 0 to 360, with the origin and nominal counting direction matching clock hands. Set Min Angle / Max Angle to identical values or to 0 and 360 for unrestricted rotation. | ||||
| Min Value / Max Value | Limits of the level's adjustable output value | ||||
| Invert Range | Level change direction: | * False - | clockwise, | * True - | counterclockwise. |
| Range Type | Range type: | * Integer - | integer, | * Float - | floating-point. |
| Active Zone | Active area size as a percentage, from 0 to 100: | * 100 - | the entire circular level is active, | * 0 - | no active area except the slider(s). |
| DrawFullFirstState | Rendering the circular level's inactive sector: | * False - | do not draw the circular level's inactive sector, | * True - | draw the entire circular level (Empty state is drawn in the inactive sector). |
| Slider | Slider appearance | ||||
| Slider Image | Slider image from the project gallery (the image must point vertically upward). Available when Slider is set to Custom. | ||||
| Slider Offset | Slider image offset in pixels along the slider axis, from the center toward its top. Always nonnegative. | ||||
| Slider Stretch | Fit the slider image to the circular level's size. | ||||
| Default Value | Default value for this slider. |
- Drag the variable onto the level and specify the following in the variable-linking dialog:

| Event for Action | An interface event associated with the button. When it 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 Move 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.
Example:
-
Picker
A graphical item created only using a script. It does not communicate directly with equipment. It creates a list of entries based on a shared template and lets you change their number and content. Its main use in projects is setting dates or times.

- Create a popup as the template for a Picker row.
- Use JavaScript to prepare the Picker data (such as dates and months). Use Picker API to create and populate the list.
- Create the graphical design for your Picker.
Example:
Project pages and popups
A project must contain at least one page, which determines the workspace size. Popups are additional surfaces for graphical items. A popup always opens over a page.
- New page and popup
A project consists of pages (Page) and popups (popup):
-
Page - the foundation for placing graphical items.
-
the project must contain at least one page
-
a page can be portrait or landscape
-
- a page supports autorotation (switching between landscape and portrait when a panel with an accelerometer rotates). Create 2 pages in different orientations for autorotation
-
all project pages have the same size and determine the workspace dimensions.
-
pages cannot open with animation effects or be transparent or translucent
-
only one project page can be displayed at a time (opening another closes the previous page and its popups)
-
Popup - an auxiliary project object for placing graphical items.
-
popups are optional in a project
-
a popup cannot have portrait or landscape orientation (its coordinates are fixed)
-
a popup can have any size, opacity, and position on the page
-
any number of popups can open on one page
-
autorotating the page closes its open popups
Create a page (popup):
- Add Page - add a page
- Add Popup Page - add a popup
- Add Folder - create a folder for pages and popups
- Change View - switch the page tree view to work with Popup Groups
Page (popup) settings:
- New page
-
- Name - name
-
- Landscape/Portrait - landscape/portrait
- New popup
-
- Name - name
-
- Left and Top - offset from the page's top-left corner (in pixels)
-
- Width and Height - width and height (in pixels)
- Page autorotation
Choose a page orientation when creating it; it can be changed later.

- Name - name
- Alternate View - the page with the opposite orientation that automatically replaces the current page when the panel rotates (if the panel has an orientation sensor)
A rotating design should consist only of pages. This recommendation reflects the fact that autorotation closes all open popups. To open the required popups after rotation, use JavaScript API
- Previewing a popup on a page
Configure the preview in the context menu of an open page or popup.
- Navigating between pages and popups
Page and popup control commands can be executed on:
- a press on an item
- a gesture on a page or popup
Configure commands in the macros window for pages, popups, and graphical items:

Command list:
| Show Page (page name) | Open a page (only 1 page can be open at a time). Specify the page name in the command parameters | |||
| Prev Page | Show the previously opened project page | |||
| Show Popup (popup name) | Show a popup (several can be displayed at once). Specify its name in the command parameters. You can also change its Top and Left coordinates by setting Use: | |||
| Hide Popup (popup name) | Hide a popup. The parameter is the popup name | |||
| Toggle Popup (popup name) | Toggle a popup: show it if hidden, or hide it if shown. Specify its name in the command parameters. You can also change its Top and Left coordinates by setting Use: | |||
| Hide Group (group name) | Hide all popups in a Popup Group (see below) | |||
| Hide Popups On Page (page name) | Hide all popups on the page (page name) | |||
| Hide All Popups | Hide all currently open popups in the project |
Together, buttons containing navigation commands form the iRidi project's page and popup navigation system.
These commands can also be executed using gestures. Select a page in Projects Overview and open Object Properties - Programming - Gesture.
- Popup Group
In the page tree, create folders (Folders) to group pages and popups. This does not affect project operation. You can also create popup groups (Popup Group) by right-clicking a project or popup:
Popup Group - a set of popups that must never be open simultaneously. Popups added to the same group are mutually exclusive: opening another popup automatically closes the one already open.
Popup groups simplify project navigation. You do not need to check whether unwanted popups were closed, because they close automatically.

The command Hide Group hides any open popup in the group:

-
A popup group can be hidden using a script command: IR.HideGroup("Group")
-
Project start page
When an iRidi project starts, only 1 page and any number of popup windows open.
Select the startup page in Project Properties:
- Page - name of the page to open when the iRidi project starts (only one);
- Popups - popups to open at project startup. They open in list order
StartUp in project settings:
- Project screensaver
step 1. Create a screensaver page
step 2. Configure a back button using Prev Page to return to the project:

step 3. Select the project's screensaver page in Project Properties:
ScreenSaver - screensaver: *On/Off - enable/disable the project screensaver *Interval (sec.) - project idle time before the screensaver opens *Show Page - if enabled, display the screensaver page after the specified interval *Landscape Page - the page used as the screensaver in landscape orientation *Portrait Page - the page used as the screensaver in portrait orientation *Start Script - if enabled, execute a script *Script Name on Start - script function name
downloads
-
A script can be configured to trigger when the screensaver appears. For example, reduce the device display brightness using
[IR.SetVariable](/SWDL/dev-iridi/Tokens_API#irsetvariable).
downloads
- Password for opening a page
Use the password system when configuring buttons that open pages and popups.
Assign a password to the graphical item:
- None - no password; unrestricted access (default) *1 ... 4 - password number determining the access category (1st to 4th)
Open project settings to set the passwords corresponding to their ordinal numbers:

- The application automatically requests a password when a protected button is pressed. All commands attached to the button execute only after the correct password is entered. If no password is selected in project settings, no password prompt appears.
Change the password in iRidi Cloud (see project settings), iRidi Transfer, or in the application's system menu:


- the JavaScript API includes a method for validating a system password: using system passwords during any action rather than through the standard password prompt:
- custom system password prompt
- You can also use the method for invoking the system TouchID function to unlock pages and popups with a fingerprint instead of a password.
- Scaling pages and items
To change the project resolution, for example, from 2048x1536 to 1024x768, enter the required resolution in the project properties. Scaling down from a higher resolution is recommended to avoid losing image quality in the project.

After saving the project at the new resolution, two dialogs appear:
1. Confirm scaling
- "Ok" - confirm the project size change
- "Cancel" - retain the original project resolution without making changes
2. Choose whether to resize project popups and graphical items
- "Yes" - scale project popups and graphical items in proportion to the new page size
- "No" - retain popup and graphical item sizes; only project page sizes change
3. Save the scaled project to retain the changes.
After saving, the project can be edited or merged with other projects.
Scaling considerations:
If the new aspect ratio differs from the original, the resulting project may appear excessively stretched or compressed.
You can improve its appearance by changing the resolution in 2 stages. First, reduce the project size while preserving its proportions: use the final project height and calculate a width that preserves the original aspect ratio. When scaling, confirm that you want to resize project items and popups.
Next, give the project its final proportions by changing only its width. Decline the request to resize project items and popups.
The project now has the required size, while its items retain their original proportions. There may be unused space on the right, or some items may no longer fit on the page. Compensate by repositioning project items relative to each other.
Handling presses and gestures
- Event types
User interaction with the control panel interface is a sequence of events that execute or cancel interface commands.
Pressing the screen, releasing it, and moving an item are different events to which the graphical interface can respond.
Pages, popups, graphical items, and list entries support different event sets and therefore follow different command-sending rules.
Brief description:
- Press - send commands when the button is touched
- Release - send commands when the button is released
- Hold - send commands repeatedly while the button is held
- End Of Hold - send commands once on release after the button was held
- Move - send commands when the Level or Joystic slider moves
- Select - select an entry or subentry in a List. Event control is available in JavaScript: List API
- Change - enter a character or command in an Edit Box. Details are available in JavaScript: GUI API
- Enter - press Enter in an Edit Box
- Lost Focus - an event generated on release by any item, regardless of its type or conditions. It indicates that the item has lost focus (activity). This event can only be handled using JavaScript: GUI API
- Gestures - gestures, configurable only in Page properties. A gesture can start on the page, a graphical item, or a popup. It passes automatically to the parent page, triggering its configured commands. Exceptions are Level, Joystic, List, and Static List items that handle Move, which prevents gestures
:download a gesture usage example >>
Events available for different object types:
Page Multistate Level
Up/Down Button Joystick
- How interface events work
On a page or popup that are not scrolled (not part of a Static List or List), buttons behave as follows:
- a short press generates Press > Release
- a long press generates Press > Hold > End Of Hold
- moving a Level or Joystick slider generates Press > Move > Release
- releasing any item generates Lost Focus
Graphical items in a List or Static List behave differently: scrolling the list can interrupt their events. Scrolling can start on a popup or graphical item and stop command execution:
- starting list scrolling disables Release, so a short press with movement triggers only Press > scrolling
- when list scrolling starts (the cursor/finger moves), Hold stops immediately and End Of Hold is generated: Press > Hold > scrolling > End Of Hold
- releasing any item generates Lost Focus
-
Tips for implementing interface scenarios:
-
For a button on a regular page, link commands to Press; in a list, link them to Release
-
For different short-press and long-press commands, link the short-press command to Release and the long-press command to End Of Hold
-
To send a pulse (1 followed by 0) on a short press, there are two methods:
-
- link sending 1 to Press and 0 to Release. This lets the hold duration determine the pulse length, but cannot be used in lists because list movement cancels Release
-
- link both commands, 1 and 0, to Release and configure a Delay between them. The pulse has a fixed length and works correctly in lists
-
Macros Editor
This window configures commands to execute when a graphical item is pressed.
Interface events and gestures supported by iRidi
Any set of commands can be executed on an interface event, so this section describes individual commands and how to create macros : sequences of several commands.
Select a graphical item and open Macros Editor in Object Properties > Programming . Different item types support different events.
Macro lines execute sequentially, from top to bottom:

Commands in Macros Editor:
| Show Page (page name) | Open a page (only 1 page can be open at a time). Specify the page name in the command parameters | |||
| Prev Page | Show the previously opened project page | |||
| Show Popup (popup name) | Show a popup (several can be displayed at once). Specify its name in the command parameters. You can also change its Top and Left coordinates by setting Use: | |||
| Hide Popup (popup name) | Hide a popup. The parameter is the popup name | |||
| Toggle Popup (popup name) | Toggle a popup: show it if hidden, or hide it if shown. Specify its name in the command parameters. You can also change its Top and Left coordinates by setting Use: | |||
| Hide Group (group name) | Hide all popups in a Popup Group (see below) | |||
| Hide Popups On Page (page name) | Hide all popups on the page (page name) | |||
| Hide All Popups | Hide all currently open popups in the project |
| Play Sample | Play an audio file | ||||
| Stop Sample | Stop audio file playback | ||||
| Stop Slot (track number) | Stop audio file playback on the first track | ||||
| Stop All Sounds | Stop all audio playback in the project | ||||
| colspan="2"|Send To Driver (send data to a driver) | |||||
| Send Number | Send a decimal number (DEC format) | ||||
| Send Text | Send a data string (ASCII format) | ||||
| Send Data | Send binary data (BIN format) | ||||
| Send Token | Send data taken from graphical item parameters (Value, coordinates, dimensions, etc.: variable values determined by object properties) | ||||
| colspan="2"|Send To Token (send data to a project variable) | |||||
| Send Number | Write a decimal number to the token (DEC format) | ||||
| Send Text | Write text to the token (ASCII format) | ||||
| Send Token | Write data taken from graphical item parameters to the token (Value, coordinates, dimensions, etc.: variable values determined by object properties) | ||||
| colspan="2"|Other (other commands) | |||||
| Delay (ms) | Set an arbitrary delay between macro commands | ||||
| Script Call (function name) | Call an iRidi Script function by name | ||||
| Show Keyboard (keyboard type) | Open the control panel's on-screen keyboard | ||||
| Hide Keyboard | Hide the control panel's on-screen keyboard | ||||
| Minimize | Minimize iRidi App on the control panel | ||||
| Execute (command) | Execute a standard operating system command, for example: | *open a hyperlink in the browser (http://iridiummobile.ru/) | *send e-mail to an address (mailto:example@mail.ru) | *open Calculator (calc) | *or other standard commands for different operating systems |
| Exit | Close iRidi App on the control panel (Windows and Android only) |
Macro management commands:
| move the selected macro up one position | |
| move the selected macro down one position | |
| clone the selected macro | |
| delete a macro group | |
| save a macro group to the local macro gallery |
Saving macros:
- Create a command sequence and click the save button
- Name the new macro and click OK
- Open GALLERY > Project Gallery > Macros. Drag the command onto a button or into Programming to link it to an event other than Press

Creating relations:
In addition to macros configured in individual interface object properties (buttons, pages, popups), there are project-wide macros configured in All Relations . Create relations here to pass data between interface objects:
- open All Relations
for example, the value received from the level slider Item 1 can change the coordinate of item Item 2 . Graphic item, page, and popup parameters can interact, as can channels and tokens (global variables).
Working with the item that called Script Call
With Script Call, you can access the properties of the item that calls the Script Call function.
Example.
Create a script function that takes the Text property value of the calling item, increases it by one, and writes it back. Link the function to the item using Script Call

var a=0;
function action(){
a+=1;
this.Text=a; //Обращаемся к свойству Text элемента, который вызвал функцию
};
The function changes the value of the item that called it
Download the sample project
Graphics and sound galleries
iRidi galleries store background images, buttons, levels, groups of items or entire projects, sounds, and macros.
- Graphics galleries
Editor graphics gallery (Gallery > Graphics)
- a repository of interface objects for creating projects. The graphics gallery can store: *simple images as objects with 1 state *buttons with two states *animated buttons *levels with two states *levels with many states *groups of graphical items *project pages and popups

Project gallery (Gallery > Project Gallery)
– contains only images already used in the iRidi project. It contains individual images used by objects, not complex objects themselves.
- Sound galleries
Editor sound gallery (Gallery > Sounds)
- a library of audio files for the Panel Project. Sounds can play on an event (an item press or release) and are linked by drag and drop. The sound appears on the Programming tab of the Object Properties window:

Clicking [...] on the tab Programming opens the macros editor:

*Play Sample - play an audio file (name) *Play System Sample - play a standard system sound (one of two) *Stop Sample - stop an audio file (name) *Stop Slot - stop playback in a specific slot (1 to 32) *Stop All Sounds - stop all sound playback
Double-click the audio file entry to open playback settings:
*Sound - audio file name; *Slot - playback slot number (for grouping streams). There are 32 slots with unlimited audio files in each. The default is slot 0 (a new playback channel outside the slots); *Volume - audio file playback volume; *Loop - enable (True) or disable (False) repeated playback
Supported audio formats: :mp3 (constant or variable bitrate) :wav with the following codecs: :: PCM (8- or 16-bit audio depth, sample rate from 8 to 96 kHz) :: IMA ADPCM (8- or 16-bit audio depth, sample rate from 8 to 96 kHz) :: MS ADPCM (8- or 16-bit audio depth, sample rate from 8 to 96 kHz) :: GSM (8 kHz sample rate, 16-bit audio depth) :: MS GSM (8 kHz sample rate, 16-bit audio depth) :: mu-Law (8 kHz sample rate, 16-bit audio depth) :: A-Law (8 kHz sample rate, 16-bit audio depth) :: OGG
Project gallery (Gallery > Project Gallery)
– contains only sounds already used in the iRidi project.
- Working with images
- Background images

Use the command “Put Image To Page Background” in the context menu to set the image as a page or popup background. This command does not work with complex gallery objects.
The page background can also be selected in Object Properties > States , using Image
- Main images and icons

A button can display 2 images simultaneously:
- Image - main image
- Icon - icon displayed over Image
Choose the image's role when dragging it onto the button (see Chameleon Image below)
Image and icon settings on the States tab:
Change an item's image and icon in its object settings, States :
- Image - main image
- Icon - icon image displayed over the main image
- Chameleon Image - a PNG image that uses the button's fill and border colors to determine its own colors
- Icon Align - icon alignment relative to the item
- Image Align - main image alignment relative to the item
The States tab uses the local project gallery containing images already added to the project.
- Chameleon Image
Chameleon Image - an image without fixed colors. Changing the button fill and border colors changes the chameleon image's colors. Combined with custom palettes, chameleons provide many color schemes for one template, as well as highlighting, glow, shadow, and depth effects.
A chameleon is a PNG image with four color channels (alpha, red, green, and blue: ARGB). The colors are processed as follows:

*Alpha - item shape *Red - area filled with the item's fill color *Green - area filled with the item's border color *Blue - unused
Save the PNG in RGB colors (32-bit) so transparency is recognized correctly.
Configuration example and resulting chameleon color scheme:
- Dynamic images
For details: IP cameras and DVRs.
Execute: URL schemes
A URL scheme identifies a resource that can be opened with an iRidi command. A URL scheme can launch an application, open a browser link or email client, make a phone call, or send an SMS.
Different operating systems use different URL schemes. Consider the OS on which the project will run when selecting commands to execute.
Launching from iRidi
In iRidi, you can create a button that opens a third-party application or a browser link. Examples of commands available on different operating systems:

Hyperlinks:
*Execute(http://iridiummobile.net)
Files and applications on Windows:
*Execute(c:\Program Files\iRidium.exe)
Windows on-screen keyboard:
*Execute(osk)
Make a phone call or send SMS:
*Execute(tel:+123456789)
*Execute(sms:+123456789)
Send e-mail:
*Execute(mailto:test@example.com)
Launch an application:
Execute(videos://)Execute(music://)
iOS 8 and iOS 9 settings (there is no solution for iOS 10 yet):
Execute(prefs:root)Execute(prefs:root=WIFI)- see the full list
i3 pro settings on iOS 9-10:
-
Execute(app-settings://) -
URL schemes differ between iOS and Android
-
You cannot launch an application if its developer has not provided this capability!
Launching from JavaScript
Create a JavaScript file in the iRidi Studio script editor to execute commands when a button is pressed or a system event occurs.
IR.Execute("http://iridiummobile.net");
Details on working with JavaScript are provided in the Guide.
Launching iRidi from other applications
URL schemes for launching i3 pro can be invoked from a browser or email client, like hyperlinks to network resources. Use these commands:
-
i3pro://: launch the application (open it or bring it to the foreground). Works in the browser on an iOS/Android device with i3 pro installed. It can be invoked as a hyperlink in a browser, email client or another application -
i3pro://script?data1&data2launch the application and run a script a data string passed to the script as query. IR.AddListener(IR.EVENT_RECIEVE_SCHEME,0,function(query, source) ); - the listener to create in the iRidi project to receive data from the URL scheme
Example:
URL scheme in a third-party application or browser:
i3pro://script?Page1
URL scheme handler in iRidi:
IR.AddListener(IR.EVENT_RECIEVE_SCHEME,0,function(query, source)
{
if (query == "Page1")
IR.ShowPage("Page 1");
});
Visual effects
iRidi supports item press animation, frame-by-frame item animation, page opening animation, and special iRidi Script libraries.
- Popup opening animation
In the popup's Object Properties > General, specify the animation effects for opening and closing:
- Lifetime (ms) - popup lifetime. It closes automatically when this time expires
- Effects - popup show/hide effects. Any combination of effects can be created.
-
- Fade - changes the popup's opacity
-
- Rotate - moves the popup by rotating it around its central axis
-
- Slide - the popup slides from beyond the screen edge or from behind itself
-
- Scale - increases or decreases the popup's X and Y coordinates from zero to their specified values
-
- TV Scan - reveals the popup by changing its Y coordinate from zero to its specified value
Effect settings:
- Duration (ms) - effect duration
- Delay (ms) - delay before the effect starts
- Tween - direction in which the popup moves when appearing or disappearing
- Press effect
To create a visual press effect, use different images for the item's active and inactive states:
The item changes state when pressed if its settings specify "Feedback: Momentary" .
The item changes state on incoming feedback if "Feedback: Channel" is selected.
- Rapid effects
A tool that automatically creates an animation effect based on the button's first (inactive) state.
Add an image to the project and click the rapid effect button on the toolbar. In the modified state's parameters, specify: *Image offset relative to the original *Opacity of the new state (the item's alpha channel) *Text color and size in the new state
- Frame-by-frame animation
An item whose animation runs continuously:
- Create an item with type Multistate Button and states containing animation frames
- Animation must repeat continuously: Repeat: True
- Feedback type Feedback: On provides sequential, repeated playback of animation frames

An item whose animation runs when a nonzero value (logical one) is received:
- Create an item with type Multistate Button and states containing animation frames
- Animation must repeat continuously: Repeat: True
- Select feedback type Feedback: Blink

An item whose animation runs when the user presses it:
- Create an item with type Multistate Button and states containing animation frames
- Animation must repeat continuously: Repeat: True
- Select feedback type Feedback: Momentary

Project optimization
Use Delete Unused Files to quickly remove images added to the project but not actually used.
Such images increase project loading time and total size. They commonly result from item scaling, which creates copies of images at new sizes.
Check that unused items have been removed from the project before uploading it to a panel:
Merging projects
Use the video tutorial to learn how to quickly merge your project with a ready-made Script module (with its own graphical and driver parts) or another project: