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

0

Remove the custom driver from script

Dmitry Ryzhkov 1 year ago in iRidium Script • updated 12 months ago 4

Hi


How I can remove created driver by script?


var dev = IR.CreateDevice(parameters);


//????????

dev.Remove();

dev.Delete();

dev.Clear();

0
Under review

String.fromCharCode(0) problem

Dmitry Ryzhkov 1 year ago in iRidium Script • updated by Ekaterina (head of support) 1 year ago 1

Hello


I'm use yours function from dev portal, see below. When 0 appears in array sending string don't have any characters and stop sending.


In my case I use next procedure. I will need transform length string to 4 byte present and send it to device.



var value = "0";
//This not working when coming 0
var elementLength = String.fromCharCode(value.length >> 24 & 0xFF)+
                    String.fromCharCode(value.length >> 16 & 0xFF)+
                    String.fromCharCode(value.length >>  8 & 0xFF)+
                    String.fromCharCode(value.length       & 0xFF);
// This working fine witch concat
var elementLength = [ 
                      value.length >> 24 & 0xFF,
                      value.length >> 16 & 0xFF,
                      value.length >> 08 & 0xFF,
                      value.length >> 00 & 0xFF

                    ];
<em>// process an array of HEX bytes from Data field of Command or Feedback</em>
<strong>function</strong> HexArrayToAsciiString<span class="br0">(</span>in_aArray<span class="br0">)</span> 
<span class="br0">{</span>
   <em>// init string</em>
   <strong>var</strong> l_sStr <span class="sy0">=</span> <span class="st0">''</span><span class="sy0">;</span>
 
   <em>// aray bypass</em>
   <strong>for</strong><span class="br0">(</span><strong>var</strong> i <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0"><</span> in_aArray.<span class="me1">length</span><span class="sy0">;</span> i<span class="sy0">++</span><span class="br0">)</span>
      l_sStr <span class="sy0">+=</span> <span class="kw4">String</span>.<span class="me1">fromCharCode</span><span class="br0">(</span>parseInt<span class="br0">(</span>in_aArray<span class="br0">[</span>i<span class="br0">]</span><span class="sy0">,</span> <span class="nu0">16</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span>
 
   <em>// return string in ASCII format</em>
   <strong>return</strong> l_sStr<span class="sy0">;</span>
<span class="br0">}</span>
0
Answered

Help! Sip Video Iridium v3 IOS to SIP Video Iridium v3 Windows

Ruud 1 year ago in iRidium Script • updated by Dmitry - support (expert) 1 year ago 1

Hello,

I would like to add SIP video to my project.

such as below example project iridium.

SIP_Intercom_Video_iPad.irpz

SIP_Intercom_Video_Win.irpz


The methods I use in my project as Iridium project above

IR.AddListener(IR.EVENT_START,0,function()
{
IR.GetItem("Talking + Video").GetItem("my_camera").GetState(0).Image = "ir_camera://";
IR.GetItem("Outgoing + Video").GetItem("my_camera").GetState(0).Image = "ir_camera://";

IR.GetItem("Outgoing + Video").GetItem("Incoming_stream").GetState(0).Image = "sip_image://";
IR.GetItem("Talking + Video").GetItem("Incoming_stream").GetState(0).Image = "sip_image://";
})
function CameraStart()
{
IR.Camera(IR.CAMERA_RECORD, IR.CAMERA_FRONT, IR.CAMERA_RESOLUTION_MEDIUM);
IR.Camera(IR.CAMERA_FLIP_VERTICAL, 1);
}
I do see both ir_camera: //. but I do not see the sip_image: //. on iOS or Windows, as in the above projects. I guess I do not see a piece of script? or is there still a link underwater in SIP? How can I get this working in my project?

thanks

0
Answered

Sip Video Iridium v3 IOS to SIP Video Iridium v3 Windows

Ruud 1 year ago in iRidium Script • updated by Dmitry - support (expert) 1 year ago 6

Hello,


I would like to add SIP video to my project.

such as below example project iridium.

Sip video IOS

Sip video windows


The methods I use in my project as Iridium project above

IR.AddListener(IR.EVENT_START,0,function()
{
IR.GetItem("Talking + Video").GetItem("my_camera").GetState(0).Image = "ir_camera://";
IR.GetItem("Outgoing + Video").GetItem("my_camera").GetState(0).Image = "ir_camera://";

IR.GetItem("Outgoing + Video").GetItem("Incoming_stream").GetState(0).Image = "sip_image://";
IR.GetItem("Talking + Video").GetItem("Incoming_stream").GetState(0).Image = "sip_image://";
})
function CameraStart()
{
IR.Camera(IR.CAMERA_RECORD, IR.CAMERA_FRONT, IR.CAMERA_RESOLUTION_MEDIUM);
IR.Camera(IR.CAMERA_FLIP_VERTICAL, 1);
}
I do see both ir_camera: //. but I do not see the sip_image: //. on iOS or Windows, as in the above projects. I guess I do not see a piece of script? or is there still a link underwater in SIP? How can I get this working in my project?
thanks

0
Answered

IR.EVENT_RECEIVE_DAAP

Dmitry Ryzhkov 1 year ago in iRidium Script • updated by Ekaterina (head of support) 1 year ago 1

Здравствуйте, в драйвере iTunes для 2-ки нашел листенер IR.EVENT_RECEIVE_DAAP. Работает ли он в i3 Pro и можно ли получить на него описание?

0

Script learning suggestion

Surya Teja 1 year ago in iRidium Script 0

Hi All,


AM planning to learn JS for do designs in IR. But AS per my knowledge JS means, With include CSS and HTML. But i couldn't see those files in your IR Studio. Kindly suggest me for this.

0

Вызвать функцию на странице

Богдан Меленчук 1 year ago in iRidium Script • updated 1 year ago 2

в наличии био камин, planika с веб панелью. на каждой кнопке веб панели висит вызов своего скрипта (start, stop и тд). Как с iridiummobile его вызвать?


0

gooey button

Surya Teja 1 year ago in iRidium Script • updated 1 year ago 7

Can you tell me how to add this gooey button in Iridium GUI

http://codepen.io/suryatejabolikonda/pen/gwKEgZ

0

RemoveListener?

crabicode 1 year ago in iRidium Script • updated 1 year ago 7

Hi,


Can anyone help me find a solution to this scenario:


var object = {};
IR.AddListener(EVENT_RECEIVE_TEXT, 0, function(data) {
// this is called only once
}, object);

object is now referenced within the event loop and can't be garbage collected.

Assuming multiple cases like that, what is the best approach to deal with it?

I guess there must be a way to unbind the handler aka RemoveListener...


Any ideas?


Regards

0

Osram Lightify

oggi katic 1 year ago in iRidium Script 0

Hi everybody..


Has somebody tried to control Osram Lightify throug API and Iridium Script?


Its like Philips Hue but more used in the private homes..