0
Waiting for user's reply

Database editor | Project device panel features

benno 11 years ago in iRidium Script / AV and Driver scripts updated by Oksana (expert) 9 years ago 2
Hi

I need to create a driver in iRidium for a complete bus structure.
This bus can contain multiple devices of the same type. See attachment.
To create a driver which can be used from the gui editor alone (so the installer doesn't need to edit a part of JavaScript) I need to create a hierarchy in the different driver elements.

For example:

BUS
|——Input module1
|——————Busaddress (property)
|——————….. (Property)
|——————Input 1(feedback)
|——————Input 2 (feedback)
|——————…….
|——Input module 2
|——————Busaddress (property)
|——————….. (Property)
|——————Input 1(feedback)
|——————Input 2 (feedback)
|——————…….
|——Output module1
|——————Busaddress (property)
|——————….. (Property)
|——————Output 1 on (command)
|——————Output 1 off (command)
|——————Output 2 on (command)
|——————Output 2 off (command)
|——————……..
|——Output module2
|——————Busaddress (property)
|——————….. (Property)
|——————Output 1 on (command)
|——————Output 1 off (command)
|——————Output 2 on (command)
|——————Output 2 off (command)
|——————……..

The user sets the Busaddress property in the GUI editor to the right address.
It also has to be possible to add extra modules to the busdriver. For example like we do now with Global Cache's IR database: add existing IR codes (grouped) to a IP2IR from the cloud (this of course needs to be from the database for this driver)

Of course we also need to have a group divided in commands, feedbacks etc per module.

From Javascript I need to do the following things:
Parse incoming data to set feedbacks with respect to Hierarchy:
IR.SetFeedback("BUS.Input module 1.Input 1",1);

Determine which command was pressed with respect to Hierarchy:
IR.AddListener(IR.EVENT_CHANNEL_SET, IR.GetDevice("BUS"), function (name, value) {
  if(name == "Output module1.Output 1 on")
  {
  //do something
  }
}

Determine and eventually edit properties of the module:
myAddress = IR.GetProperty("Bus.Input module 1.Busaddress);

Is this possible, if not, when can you create this functionallity?

Thanks,

Benno
bus iridium.png
bus iridium.png_thumb
Hello! Thanks You for the questions.


Now you can not create this. Programmers is working about this problem. In future.



Sincerely,
Sergey Smirnov.