Skip to main content

iRidi Studio

Project for iRidi Server

This section describes creating an iRidi Server project in iRidi Studio. iRidi Server processes data from automation equipment, saves it to a database and passes information to control panels. A server project has no graphic part; it consists of scripts and a list of equipment to communicate with.

Create a new project for iRidi Server:


iRidium Studio > File > New > **New Server Project**

new_server_project.png

Server project workspace​

After starting iRidi Studio and creating a new Server Project , you will see a workspace consisting of:

GUI_serverMode_overview.png

  1. Studio settings *
    drop-down menus providing access to editor settings: File, Project, Tools, Help, View
  2. Server project overview (Project Overview) *
    navigation between input/output settings and server parameters
  3. I/O * - select this server project section to view server tags and driver tags

  4. Config * - select this section to view server settings

  5. Server tags (Server Tags) *
    a list of variables used to generate the iRidi Server driver in the Panel Project. You can create virtual tags not linked to physical equipment (populated by a script)
  6. Server tag settings
    iRidi Server tag parameters (name, units, database storage, JS function binding, etc.)
  7. Driver tags (Driver Tags) *
    equipment variables to which iRidi Server must connect. All variables on this tab are mapped to server tags. The control panel accesses the equipment through server tags
  8. Driver tag settings
    parameters of drivers used by iRidi Server. Creating a driver variable automatically creates a server tag with the same name
  9. Device database (Device Base) *
    a repository of built-in iRidi drivers (products). Includes user tools for creating drivers and additional script driver databases.
  10. GC Cloud (IR Database) *
    an IR command database for use with Global Caché converters

Server project overview (Project Overview)​

Project Overview lets you navigate between server settings windows:

Editor_window_Server_Project_Overview.png

I/O - inputs/outputs; opens server tags and driver tags for editing Config - server project settings

Server tags and driver tags (I/O)​

This tab opens when you click I/O in Project Overview Server_IO_Settings.png

1. Virtual variables (Virtual) - variables to which you can write any data produced by scripts (numbers, strings, arrays). Virtual variables can be changed from the control panel.

  • Virtual > Channels - writable variables
  • Virtual > Tags - readable variables

2. Server tags (Server Tags) - variables generated automatically when controlled equipment is added to Driver Tags. The tag name matches the driver variable name in Driver Tags

  • Driver > Driver Tokens - equipment connection information, read-only
  • Driver > Commands - writable variables
  • Driver > Feedbacks - readable variables

3. Tag settings - configure virtual tags and server tags.

  • write settings

    • Name - short name
    • Full Name - full name for access from scripts
    • Description - optional description
    • Script - execute a JavaScript function without arguments whenever the tag is activated
  • read settings

    • Name - short name
    • Full Tag Name - full name for access from scripts
    • Description - optional description
    • Store In DB - store all changed values in the database
    • Access - variable type: Public - can be changed from the control panel; Private - can only be changed from the server
    • Deadband - a change tolerance to disregard when plotting a chart from tag data. For example, with Deadband: 0.5, a variable change of 0.3 is not displayed on the chart in the client application
    • Script - execute a JavaScript function without arguments whenever the tag is activated

4. Driver tags (Driver Tags) - equipment variables to which iRidi Server must connect. All variables on this tab are automatically mapped to server tags.

5. Tag settings - configure variables of equipment controlled by the server. These settings are specific to the driver type used by the server.


Server configuration (Config)​

This tab opens when you click Config in Project Overview

Server_Config_Settings.png

1. Job Notes - project information. Displayed in Panel Projects linked to this server project *Customer/Order - customer, invoice *Project Name - project name *Address - automation site address *Phone - customer's phone number *Email - customer's e-mail address

2. Description - project progress notes and version history. Displayed in Panel Projects linked to this server project

3. General - basic project parameters *Project Name - server project name

4. Settings - settings for the server and the iRidi Server driver that links the server project to the Panel Project. This information is displayed in all Panel Projects linked to this server project:

*Server host - server IP address *Server port - server connection port (default: 30464) *Login (future functionality) - login for connecting panels to the server *Password (future functionality) - password for connecting panels to the server *System ID (future functionality) - unique server identifier for the push notification system and DDNS server

5. Debugging Log Level - level of detail displayed in the server log:

*Global - sets the upper logging limit shared by all log subcategories. No subcategory displays information above the level specified in Global *Core - generated by the server core *Database - generated by the database *Script - generated by scripts *Webserver - generated by the web server

Logging levels:

  • EMERGENCE - the application cannot be used
  • ALERT - immediate action is required
  • CRITICAL - critical errors; the application cannot operate
  • ERROR - errors; the application can operate
  • WARNING - warnings; the application can operate
  • NOTICE - significant notices; the application can operate
  • INFO - basic information
  • DEBUG - all information

Click Save at the bottom of the settings window to save the server settings.

Script editor (JS Editor)​

A tool for creating JavaScript programs that run on the server. Scripts define the server's operating logic. The server supports its own set of JavaScript methods and properties.

icon_Scripts.png open the iRidi script editor


Editor_window_JS_Editor.png

IconAction / Description
JSnew.pngNew script file:
* create a script file
* open a script file (*.js)
JSdel.pngDelete the script file selected in the list
JSupdown.pngMove up / move down
JSpass.pngSet a password for viewing and editing the script file (save and reopen the project for the password to take effect)
JSapply.pngApply script changes
JSsavefile.pngSave to a *.js file
JSExternal_editor.pngOpen in an external editor
* Encrypted scripts cannot be opened in an external editor
* If no external editor is selected in the settings, clicking opens the external editor settings
JSundoredo.pngUndo / redo a change
JSColor.pngInsert a color value in the editor
JShelp.pngShow / hide help on IR methods and events
JSserch.pngSearch for a word or string (Ctrl+F)
JS_enable.pngEnable the script in the client
JS_disable.pngDisable the script in the client (disabled scripts are marked with a gray icon)
Enter_pass.pngEnter the password
Set_pass.pngReset the password (leave Set new password empty to remove it)
  • Script tab settings (tab size, external editor) are located in Studio settings: Tools > Studio settings > Script

Device database (Device Base)​

This is a database of drivers, commands, and script modules for controlling various equipment. It stores all supported iRidi devices that you can use in your projects.

Editor_window_Device_Base.png

Add* - add a driver from the database to the project. Use drag and drop: drag the driver from the Device tab to the Project tab
width = "4%"|Editor_window_Device_Base_icon_Edit.pngEdit* - edit the database. This professional tool lets you create custom databases and modify existing ones. It cannot be used with the main iRidi database.

Database editor (DataBase Editor)​

A tool for creating preconfigured drivers, commands, and channels based on the AV & Custom Systems driver.

This professional tool lets you configure control of any AV equipment, media server, converter, or other device. For details, see data processing.

Editor_window_Device_Base_icon_Edit.png Edit - open the database editor

width = "4%"|Editor_window_Device_Base_icon_new.pngNew* - create a new database. Used for professional equipment configuration and creating custom devices based on the AV & Custom Systems driver
Editor_window_Device_Base_icon_Attach.pngAttach* - add a new database to the GUI Editor list
Editor_window_Device_Base_icon_Detach.pngDetach* - remove the selected database from the GUI Editor list

Editor_window_Device_Base_small.png

Editor_window_DB_Editor.png


GC Cloud (IR Database)​

GC Cloud is an online IR command database for the Global Cache.

Click the refresh button to load the list of manufacturers and commands (an Internet connection is required)

GCDB_1.png

Database structure:

  • Brands - equipment manufacturers
  • Device Types - equipment categories for a manufacturer
  • Codesets & Commands - models and their IR commands

Drag the command folder onto the IR output of the Global Cache driver in your project. The commands are preconfigured and do not need editing:

GCD_11.png

Commands and folders can be dragged between the IR outputs of GC modules in the project.


Project encryption

Full project encryption (saving in a protected format)

GUIpirpz.png

An iRidi project (**.irpz, .sirpz ) can be saved in a protected format that prevents third parties from modifying the project or accessing its settings and resources (icons, sounds, images, equipment channels).

A protected project (.pirpz, '.psirpz ) cannot be opened in Studio, but can be uploaded to a control panel, where the application automatically unpacks it and runs the interface.

Project encoding is an irreversible process . A file saved in *.pirpz format cannot be converted back to *.irpz or edited. It can only be uploaded to a control panel. The encoded project is saved alongside the source project; only the source project can be edited.


There are also methods of protecting data within an *.irpz project without encoding the entire project:

Encoding a script file

You can restrict viewing and editing of a script (iRidi Script) by setting an access password:

GUIscriptCoder.png


Studio settings

Commands available in the drop-down menus

Open ProjectOpen a previously saved project in the editor (*.irpz)
Save ProjectSave the selected project (*.irpz)
Save Project As...Save the project under a different name
Close ProjectClose the selected project
Close All ProjectsClose all projects open in the editor
ReopenA list of recently opened projects. Click a project to open it
Save Protect ProjectSave an encrypted project (*.pirpz) that can be uploaded to a panel but cannot be edited. The encrypted file is saved alongside the source file. It cannot be converted to *.irpz and modified. Details
ImportImport data from controller configuration files or other iRidi projects into the open project: pr3, pr4, pr5, knxproj - import group addresses from ETS (for KNX equipment) csv - import registers for Modbus (a special Modbus CSV table in iRidi format) smw - import joins for Crestron irp, irpz - import drivers with all commands and settings from other iRidi projects
ExitClose the editor and all projects open in it. Prompts you to save project changes.
SectionDescription
LanguagesSelect the editor interface language
Studio settingsEditor_window_Tools_Option.png
Basic iRidi GUI Editor settings:
- Emulator settings
- Image import settings for the gallery
- Object display
- Update checks
- Network scan settings
- Project backups
Open the settings: Tools > Options

"Emulator" - i3 pro Emulator settings:
Editor_Tools_Option_Emulator.png
- Client Fullscreen - start the Emulator in full-screen mode
- Client Sound On - play sounds in the Emulator
- Show log at Emulator start - open the log window (F4)

"Showing" - editor workspace display settings:
Editor_Tools_Option_Showing.png
- Channels Count - display the number of commands linked to an item
- Font - size and type of the font displayed for items
- Show Items In Tree - show graphical items in the project's page tree
- Grid - enable and configure the grid
- Grid Color - grid color
- Render - rendering type

"Scan" - network scan settings for HDL Buspro
Editor_Tools_Option_Scan.png
- Scan Count - number of network scan cycles
- Scan Timeout, ms - duration of one scan cycle

"File Operating" - project autosave and backup:
Editor_Tools_Option_File_Operating.png
- Backup, Backup Path - create a backup version of the project whenever it is saved
- Check updates at start - check for updates when the editor starts
- Check BETA-builds - check for beta versions
- Divider for file group operations - delimiter when importing an animated object

"Default Control Settings" - font settings for a new item:
Editor_Tools_Option_File_DefaultCS.png
- Font - font type and size
- Font Color - text color
- State 1 - first state color
- State 2 - second state color

"Script" - script settings tab:
Editor_Tools_Option_File_Script01.png
- Tab size - Tab size
- External editor - select an external script editor
External editor:
Editor_Tools_Option_External_editor01.png
Editor_Tools_Option_External_editor02.png - Add an external editor
Editor_Tools_Option_External_editor03.png - Remove an external editor
- Update without request - automatically update the script
- Procedure for adding an external editor:
1. Click the "+" button
2. Select the program and click OK
3. Click OK in the External editor window
4. Click OK in the Studio settings window
CertificatesGenerate certificates for the app store (under development)
Default Panels SizeRestore the default layout of editor panels and windows
Update EditorCheck for editor updates. Updating modifies the editor and its accompanying applications. Settings are retained.
Send Bug ReportSend a bug report to the technical support portal
AboutEditor version information