Skip to main content

Modular solutions: driver + i3 pro interface

Using ready-made visualization in your control interfaces

Types of ready-made solutions​

Many devices, services, and systems offer interaction capabilities that require complex implementation. For example, a Sonos multiroom system lets you control audio sources and volume, select tracks for playback in different rooms, and adjust the sound. These capabilities are presented to the user through an interface, which takes considerable work to create.

Ready-made solutions comprising a driver, logic, and interface:

  1. Pro interface modules Interface modules on the iRidi mobile website, under "JS MODULES", are ordinary "pro" interfaces whose appearance can be modified and styled to fit your interface. The module's scripts and basic drivers are also usually available for editing. Some modules are sold commercially

  2. Lite widget modules The MODULES catalog provides downloadable widget modules originally developed for the application. Widgets implement an interface and driver, but unlike the "pro" version, their appearance and contents cannot be edited. Once you configure a widget's connection parameters, you must use it "as is", without modifying its appearance. Only the widget's position can be changed. Using them does not require a license for [product not specified in the source]; only the drivers used in the interface count

  3. Community solutions On the support forum, iRidi integrators often share their interfaces and scripts for solving particular tasks. These solutions are used in the same way as the "pro" modules in the first item

If your project uses iRidi Server, a widget module cannot be transferred to the server: it connects directly to the equipment.

Interface modules created for pro can generally be transferred to the server, but much depends on how the particular module is organized and on your programming skills. Some module logic may handle the interface, while other logic handles equipment communication. These parts must be separated to run in different applications, which can take time and require substantial programming skills.

Pro interface modules​

Here, a pro module means any interface (*.irpz file) containing logic and drivers. The following describes how to add such modules to visualization interfaces you are already developing.

Add a pro module to an i3 pro interface:

  1. Download the interface file in *.irpz format and open it
  2. Open the destination interface to which the module will be added
  3. Drag the module's tab onto the destination interface's tab
  4. If an error reports duplicate driver, script, page, or window names, resolve it. Rename the conflicting pages, scripts, and drivers in the destination interface. Do not rename them in the module: its logic often depends on its page and popup names, and renaming them can stop the module working. You can trace and correct the corresponding dependencies more quickly in your own interface.

Studio2019_MergeInterfaces.png

Lite widget modules​

Attention

Support discontinued as of version 1.3.0

A Lite module is a popup interface (widget) with a hidden driver and logic. You can add it to your interface and open it when needed, but cannot change its appearance or logic. A Lite widget can be added through the MODULES panel. Some widget commands may be available outside the widget, in other parts of the interface or logic.

A Lite module is useful if you have not found a ready-made solution but have found the device you need in the catalog. It is also convenient to use modules for multimedia devices with extensive functionality that would be too costly to implement yourself.

Using Lite modules for professional automation systems (KNX, HDL, ...) is not recommended because they offer no advantages over built-in drivers: after basic iRidi training, the interface of such a module is easy to reproduce.

Lite modules are configured in the application, which opens in configuration mode when you click "+" on the MODULES tab:

Studio2019_Modules.png

Studio2019_Modules_AddFromApp.png

  1. Select "Devices" in the "Config" menu
  2. Click "+" beside Devices in the configuration window that opens
  3. Select how to add the module:
  • scan the local network
  • Manually from store
  1. Select and add the module. Enter the required settings; if necessary, change the name displayed on the widget
  2. Return to "Config" (the main configuration page) and click "Save & Close project". Module configuration will finish
  3. You will be prompted to "reload the project from disk". Accept Reload - all your data will be preserved. The Lite module is now added to your interface.

The contents of a Lite module:

  • Actions - commands available for use in the interface outside the Lite module. For example, the module widget has an "on" button. Actions may provide an "on" command that you can bind to a button in your own interface, outside the module, to perform the same actions as the widget button
  • Widgets - popup windows used in the same way as ordinary popups in your interface
    • Tags - feedbacks used on the corresponding widgets and available for use in the interface