Your comments

Hello. 

You can use this script for example


//For exmaple x=value^2
function FromSlider(value)
{
  return Math.round(Math.pow(value, 2));
}

var OurSlider = IR.GetItem("Page 1").GetItem("Item 1");//it is our slider
IR.AddListener(IR.EVENT_ITEM_RELEASE, OurSlider, function()//release listener
{
   OurSlider.Text = FromSlider(OurSlider.Value);  //Get value from slider, convert it to value^2 and write to the slider text property
});

Hello

Yes, mailing is disable because soon we will remove "Feedbacks" section from store


Добрый день.

При создании слушателя, вторым входным параметром надо указывать полный путь до кнопки в формате IR.GetItem("Имя страницы").GetItem("Имя кнопки"). И при обращении в свойству итема надо обращаться также

Hello,

you can use js script for this task. You can subscript to this tag via global listener or event tag change and then convert it.


var device = IR.GetDevice("MQTT")

IR.AddListener(IR.EVENT_TAG_CHANGE, device, function(name, value)
{
   if (name == "MQTT Feedback")
   {
     if (value == "ON")
     {
       //Here you should set 1 to your varibale
     }
     else
     {
      //Here you should set 0 to your varibale
     }
   }
})


Hello

in latest version you can import baos 774 in your project and works with it, but you can't import datapont description. It will be ready in future. baos 773 is under development now. Soon it will be avaliable. 

You script is incorrect. You has device protocol. In this protocol you can find something like this:

"if you send request to device @MAIN:VOL=?, then the device will answer @MAIN:VOL=100" It means that devices will send to you a message with volume level. So, we has 2 tasks. 


First task - we should identify the message. For this task we use text.indexOf command. This command will search @MAIN:VOL= string in messege. If command will find it, then it will receive you a position of this substring in message


Second task - we should find the volume level. There are several ways to get it. For example, we can get the substring from the end of @MAIN:VOL= till the end of message and it will be the volume value. So, you should use something like this

var driver = IR.GetDevice("Yamaha RXV-1067"); 
IR.AddListener(IR.EVENT_RECEIVE_TEXT, driver, function(text) 
{
  if(text.indexOf("@MAIN:VOL") != -1)   
{             
var volume = text.substring(text.indexOf("@MAIN:VOL") + 10,text.length-1)
IR.SetVariable("Drivers.Yamaha RXV-1067.yamaha_volume", volume);
}
});



I recomend you to watch our script webinar http://www.iridiummobile.net/academy/script_driver_pro/ There you will find all answers

hello

Your script is uncorrect/

1) You you use EVENT_RECEIVE_DATA then you will get data in hex format. You should use EVENT_RECEIVE_TEXT

2) parameter in function is Incorrect. You should write function(text). When device send something in script, then iridium put it in "text" variable. if you write IR.Log(text) then you will see inforamtion from device. 

You should use somethinf like this

var driver =IR.GetDevice("Yamaha RXV-1067");
IR.AddListener(IR.EVENT_RECEIVE_TEXT, driver, function(text)
{

              if(text.indexOf("@MAIN:VOL") != -1) {
                           Here you should get the value and write it in variable
                }

       
});

Hello,

sorry for the delay. Attach example Project 1(2).irpz