Welcome!

On this forum you can discuss iRidium with other users.

iRidium consist of 2 main components - i3 pro app and iRidium Server. Please post here your questions, ideas or errors you find.

Please send your questions to support team as a private messages.


Please subscribe to the Change Log to know our news

We have moved our support service to a new technical support system. Since 17.01.2022, we have disabled the ability to create appeals through the userecho personal account. Now all requests are processed via mail to support@iridi.com .

Thank you for your understanding and have a nice day.

+2
Waiting for user's reply

Недокументированные свойства кнопок для скриптов

Oleg Bubnov 8 years ago in iRidium Script updated by Ilya Markov (expert) 7 years ago 12

  1. Руководство обозначает свойство состояния DrawOrder, но никак его не описывает. Можно ли его использовать? Если да, то как? Я попытался использовать вот такой подход: btn.GetState(0).DrawOrder = "Fill Image Border Text Icon"; - кнопка исчезла с экрана, но на нажатия реагировала. Такой же результат, если через запятую перечислять.
  2. То же самое со свойством Font. В руководстве описано, что можно использовать только Тахому-20. Можно ли в скрипте поменять как-то значение и размер шрифта при помощи скрипта? Например, используя FontId? Если да, то как?
  3. Можно ли задать свойство Image однажды для всех состояний? Аналогично свойству Text.
  4. Если скриптом нельзя полноценно создать экземпляр кнопки, тогда как решать эту задачу? Создавать некий шаблон кнопки в Студио и потом уже его прятать на никогда не вызываемой странице, размножать и изменять?
+2
Answered

.AddChannel & .AddTag

Dmitry Ryzhkov 8 years ago in iRidium Script updated by Andrey S 8 years ago 4

Здравствуйте,


когда можно ожидать добавление функционала .AddChannel & .AddTag


Это очень необходимо для динамического создания драйверов и их каналов.

+2
Voting

New List Direction

Damian Hartin 9 years ago in iRidium Script updated by Oksana (expert) 9 years ago 3

As per my other topic for info on the new list..

Direction doesn't seem to work? Even in the sample list project you have provided...?

Answer
Oksana (expert) 9 years ago

Hello Damian,

The new list doesn't support Direction now.The new list have a minimal functional in the first release. In future, we plan to improve them.

+1

Server Timer

Henry 7 years ago in iRidium Script updated by Andrey S 7 years ago 1

Hi Guys,


Anyone can help on how I can make a timer in the server that can be sent/controlled in the panel.


I need to send the month,  the day and the time plus the command from the panel going to the server.


appreciate your help.


Thanks,

Henry

+1
Answered

How to Embed Youtube App inside iRidum?

admin 8 years ago in iRidium Script updated by Aleksandr Romanov (CTO) 7 years ago 3

How can we embed the YouTube app to open a default youtube channel and to send it to smarttv

+1
Declined

Supported Javascript methods

geurtsd 9 years ago in iRidium Script updated 8 years ago 9

Dear support team,


Despite the fact that your training and reference material has grown and professionalised a lot over the time, would it bw possible to publish a list of supported methods of standard javascript? Or a javascript version that the script editor is based on so we can research it ourselves?


I find regularly that standard javascript methods do not work in iridium, which makes it cumbersome to troubleshoot if I did something wrong in my programming, or if the method s just not supported.....


one example: Array method "indexOf"


thanks in advance.


cheers

Answer

Polifill for indexOf("item of array")
add this script in your project and you will be able to use indexOf(array) thats available in ECMA5


// Polifill, IndexOf
// ECMA-262, 5, 15.4.4.14
// http://es5.github.io/#x15.4.4.14

if (!Array.prototype.indexOf) {
  Array.prototype.indexOf = function(searchElement, fromIndex) {
    var k;

    if (this == null) {
      throw new TypeError('"this" is null or not defined');
    }

    var O = Object(this);

    var len = O.length >>> 0;

    if (len === 0) {
      return -1;
    }

    var n = +fromIndex || 0;

    if (Math.abs(n) === Infinity) {
      n = 0;
    }

    if (n >= len) {
      return -1;
    }


    k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);

    while (k < len) {

      if (k in O && O[k] === searchElement) {
        return k;
      }
      k++;
    }
    return -1;
  };
}

then you can use it:

var arr = ["All Systems", "Floor 1", "Room 1", "Room 3", "Room 4"];

var a = arr.indexOf("Room 1");
IR.Log(a);   // 2


+1
Voting

i3 Lite/Pro Lists Suggestion

Dmitry Ryzhkov 9 years ago in iRidium Script updated 8 years ago 5
Hello.
Please consider a new opportunity to work with lists of type List to develop new drivers.
At the moment the list is announced in the script,
var myList = Module.GetPopup ("myPopup"). GetItem ("myList");
It has the right to life in the development of drivers for i3 Lite.
In the transition to the development of drivers for i3 Pro it becomes a problem, because the driver is closed and it does not make a difference.
Therefore, you must manage the list of drivers through the channels (Commands and Feedback)
Thus to connect to the driver list is necessary and sufficient to throw drayveha channels on the list in the interface.
In the driver pressing on the list will be processed through IR.EVENT_CHANNEL_SET, and display information through Module.SetFeedback ('myList', [data]);
I am more than sure that there are nuances, but the meaning is clear about.

0
Completed

setting volume on emulator

feri setiawan 7 years ago in iRidium Script updated by Vladimir Ovchinnikov (expert) 7 years ago 8

Hello,


how to set volume in apps i3 use scirpt?


thanks

0
Answered

Yahoo Weather Module - Need to extract data

j4zz J4zzee 7 years ago in iRidium Script updated by Aleksandr Romanov (CTO) 4 years ago 3

Hi everyone -


I'm currently working on a project to close the shutters at a certain time. I can set that time manually and the function works. Now, I would like to close the shutters at the sunset time.


I am using the Yahoo Weather Module, and I would like to know how to extract this sunset time to use it in my script.


Thank you for your support! :)


0
Waiting for user's reply

Как считать поле data из Feedback в JS ?

Василий Пупкин 7 years ago in iRidium Script updated by Tatiana Kiselyova (expert) 7 years ago 3

В Драйвере в Feedback создаю элемент:

Name: Розетка

Data: ZWayVDev_zway_4-5-38


Каждую секунду я опрашиваю сервер и мне приходят обновленные ID. Мне нужно пробежаться по всем элементам в Feedback, прочитать поле Data и сравнить Data c полученным ответом от сервера. Это возможно?


Основная идея, чтобы в Name лежало человеческое имя, а в Data лежало ID устройства с которым я буду сравнивать приходящие от сервера обновления.