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.

0
Under review

String.fromCharCode(0) problem

Dmitry Ryzhkov 7 jaar geleden in iRidium Script bijgewerkt door Ekaterina (head of support) 7 jaar geleden 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
Beantwoord

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

Ruud 7 jaar geleden in iRidium Script bijgewerkt door Dmitry - support (expert) 7 jaar geleden 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?

Image 15926

thanks

0
Beantwoord

Sip Video Iridium v3 IOS to SIP Video Iridium v3 Windows

Ruud 7 jaar geleden in iRidium Script bijgewerkt door Dmitry - support (expert) 7 jaar geleden 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
Beantwoord

IR.EVENT_RECEIVE_DAAP

Dmitry Ryzhkov 7 jaar geleden in iRidium Script bijgewerkt door Ekaterina (head of support) 7 jaar geleden 1

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

0

Script learning suggestion

Surya Teja 7 jaar geleden 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

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

Богдан Меленчук 7 jaar geleden in iRidium Script bijgewerkt 7 jaar geleden 2

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


0

gooey button

Surya Teja 7 jaar geleden in iRidium Script bijgewerkt 7 jaar geleden 7

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

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

0

RemoveListener?

crabicode 7 jaar geleden in iRidium Script bijgewerkt 7 jaar geleden 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 7 jaar geleden 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..

0

Set HDL device parameter from iRidium Script

AlexDr 7 jaar geleden in iRidium Script bijgewerkt 7 jaar geleden 2

Set relay chanel HDL module state - how it realise? Give some example please.