Add your idea or search for answers in existing topics. The most popular ideas will be implemented faster!

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
Waiting for user's reply

Custom AV TCP driver support for utf-8 charset

rocfusion 9 years ago in iRidium Script / AV and Driver scripts updated by Oksana (expert) 9 years ago 1
Hi,

The custom TCP driver skips receiving on UTF chars.  There a possible 10,000 characters in utf-8 charset,  it would be good if all of Custom AV Drivers could support this character set.  In the text below is the hex dump of the packet which is dropped by the TCP driver. 


0b70  0d 0a 3c 6f 75 74 6c 69 6e 65 20 74 79 70 65 3d  ..<outline type=
0b80  22 6c 69 6e 6b 22 20 74 65 78 74 3d 22 ce 9b ce  "link" text="…
0b90  b5 cf 85 ce ba ce bf cf 81 cf 89 cf 83 ce af ce  …………….
0ba0  b1 22 20 55 52 4c 3d 22 68 74 74 70 3a 2f 2f 6f  ." URL="http://o
0bb0  70 6d 6c 2e 72 61 64 69 6f 74 69 6d 65 2e 63 6f  pml.radiotime.co
0bc0  6d 2f 42 72 6f 77 73 65 2e 61 73 68 78 3f 69 64  m/Browse.ashx?id
0bd0  3d 72 31 30 30 33 30 33 22 20 67 75 69 64 65 5f  =r100303" guide_
0be0  69 64 3d 22 72 31 30 30 33 30 33 22 2f 3e 0d 0a  id="r100303"/>..
0bf0  3c 6f 75 74 6c 69 6e 65 20 74 79 70 65 3d 22 6c  <outline type="l
0c00  69 6e 6b 22 20 74 65 78 74 3d 22 ce 9b ce b9 ce  ink" text="…..
0c10  b8 ce bf cf 85 ce b1 ce bd ce af ce b1 22 20 55  …………." U
0c20  52 4c 3d 22 68 74 74 70 3a 2f 2f 6f 70 6d 6c 2e  RL="ime.com/Browse.a.
0c30  72 61 64 69 6f 74 69 6d 65 2e 63 6f 6d 2f 42 72  radiotime.com/Br
0c40  6f 77 73 65 2e 61 73 68 78 3f 69 64 3d 72 31 30  owse.ashx?id=r10
0c50  30 33 37 34 22 20 67 75 69 64 65 5f 69 64 3d 22  0374" guide_id="
0c60  72 31 30 30 33 37 34 22 2f 3e 0d 0a 3c 6f 75 74  r100374"/>..<out
0c70  6c 69 6e 65 20 74 79 70 65 3d 22 6c 69 6e 6b 22  line type="link"
0c80  20 74 65 78 74 3d 22 ce 9b ce b9 cf 87 cf 84 ce  text="………
0c90  b5 ce bd cf 83 cf 84 ce ac ce b9 ce bd 22 20 55  …………." U
0ca0  52 4c 3d 22 68 74 74 70 3a 2f 2f 6f 70 6d 6c 2e  RL="ime.com/Browse.a.
0cb0  72 61 64 69 6f 74 69 6d 65 2e 63 6f 6d 2f 42 72  radiotime.com/Br
0cc0  6f 77 73 65 2e 61 73 68 78 3f 69 64 3d 72 31 30  owse.ashx?id=r10
0cd0  30 33 37 33 22 20 67 75 69 64 65 5f 69 64 3d 22  0373" guide_id="
0ce0  72 31 30 30 33 37 33 22 2f 3e 0d 0a 3c 6f 75 74  r100373"/>..<out
0cf0  6c 69 6e 65 20 74 79 70 65 3d 22 6c 69 6e 6b 22  line type="link"
0d00  20 74 65 78 74 3d 22 ce 9b ce bf cf 85 ce be ce  text="………
0d10  b5 ce bc ce b2 ce bf cf 8d cf 81 ce b3 ce bf 22  ……………"
0d20  20 55 52 4c 3d 22 68 74 74 70 3a 2f 2f 6f 70 6d  URL="ime.com/Browse.a
0d30  6c 2e 72 61 64 69 6f 74 69 6d 65 2e 63 6f 6d 2f  l.radiotime.com/
0d40  42 72 6f 77 73 65 2e 61 73 68 78 3f 69 64 3d 72  Browse.ashx?id=r
0d50  31 30 31 32 36 32 22 20 67 75 69 64 65 5f 69 64  101262" guide_id
0d60  3d 22 72 31 30 31 32 36 32 22 2f 3e 0d 0a 3c 6f  ="r101262"/>..<o
0d70  75 74 6c 69 6e 65 20 74 79 70 65 3d 22 6c 69 6e  utline type="lin
0d80  6b 22 20 74 65 78 74 3d 22 ce 9c ce b1 ce ba ce  k" text="…….
0d90  b5 ce b4 ce bf ce bd ce af ce b1 22 20 55 52 4c  ……….." URL
0da0  3d 22 68 74 74 70 3a 2f 2f 6f 70 6d 6c 2e 72 61  ="radiotime.com/Br
0db0  64 69 6f 74 69 6d 65 2e 63 6f 6d 2f 42 72 6f 77  ime.com/Browse.a
0dc0  73 65 2e 61 73 68 78 3f 69 64 3d 72 31 30 31 32  se.ashx?id=r1012
0dd0  36 33 22 20 67 75 69 64 65 5f 69 64 3d 22 72 31  63" guide_id="r1
0de0  30 31 32 36 33 22 2f 3e 0d 0a 3c 6f 75 74 6c 69  01263"/>..<outli
0df0  6e 65 20 74 79 70 65 3d 22 6c 69 6e 6b 22 20 74  ne type="link" t
0e00  65 78 74 3d 22 ce 9c ce ac ce bb cf 84 ce b1 22  ext="………."
0e10  20 55 52 4c 3d 22 68 74 74 70 3a 2f 2f 6f 70 6d  URL="radiotime.com/Br
0e20  6c 2e 72 61 64 69 6f 74 69 6d 65 2e 63 6f 6d 2f  l.radiotime.com/
0e30  42 72 6f 77 73 65 2e 61 73 68 78 3f 69 64 3d 72  Browse.ashx?id=r
0e40  31 30 31 32 36 38 22 20 67 75 69 64 65 5f 69 64  101268" guide_id
0e50  3d 22 72 31 30 31 32 36 38 22 2f 3e 0d 0a 3c 6f  ="r101268"/>..<o
0e60  75 74 6c 69 6e 65 20 74 79 70 65 3d 22 6c 69 6e  utline type="lin
0e70  6b 22 20 74 65 78 74 3d 22 ce 9c ce b1 cf 85 cf  k" text="…….
0e80  81 ce bf ce b2 ce bf cf 8d ce bd ce b9 ce bf 22  ……………"
0e90  20 55 52 4c 3d 22 68 74 74 70 3a 2f 2f 6f 70 6d  URL="ime.com/Browse.a
0ea0  6c 2e 72 61 64 69 6f 74 69 6d 65 2e 63 6f 6d 2f  l.radiotime.com/
0eb0  42 72 6f 77 73 65 2e 61 73 68 78 3f 69 64 3d 72  Browse.ashx?id=r
0ec0  31 30 31 33 35 38 22 20 67 75 69 64 65 5f 69 64  101358" guide_id
0ed0  3d 22 72 31 30 31 33 35 38 22 2f 3e 0d 0a 3c 6f  ="r101358"/>..<o
0ee0  75 74 6c 69 6e 65 20 74 79 70 65 3d 22 6c 69 6e  utline type="lin
0ef0  6b 22 20 74 65 78 74 3d 22 ce 9c ce bf ce bb ce  k" text="…….
0f00  b4 ce b1 ce b2 ce af ce b1 22 20 55 52 4c 3d 22  ………" URL="
0f10  68 74 74 70 3a 2f 2f 6f 70 6d 6c 2e 72 61 64 69  radiotime.com/Br
0f20  6f 74 69 6d 65 2e 63 6f 6d 2f 42 72 6f 77 73 65  ime.com/Browse.a
0f30  2e 61 73 68 78 3f 69 64 3d 72 31 30 31 32 37 33  .ashx?id=r101273
0f40  22 20 67 75 69 64 65 5f 69 64 3d 22 72 31 30 31  " guide_id="r101
0f50  32 37 33 22 2f 3e 0d 0a 3c 6f 75 74 6c 69 6e 65  273"/>..<outline
0f60  20 74 79 70 65 3d 22 6c 69 6e 6b 22 20 74 65 78  type="link" tex
0f70  74 3d 22 ce 9c ce bf ce bd ce b1 ce ba cf 8c 22  t="…………"
0f80  20 55 52 4c 3d 22 68 74 74 70 3a 2f 2f 6f 70 6d  URL="radiotime.com/Br
0f90  6c 2e 72 61 64 69 6f 74 69 6d 65 2e 63 6f 6d 2f  l.radiotime.com/
0fa0  42 72 6f 77 73 65 2e 61 73 68 78 3f 69 64 3d 72  Browse.ashx?id=r
0fb0  31 30 31 32 37 34 22 20 67 75 69 64 65 5f 69 64  101274" guide_id
0fc0  3d 22 72 31 30 31 32 37 34 22 2f 3e 0d 0a 3c 6f  ="r101274"/>..<o
0fd0  75 74 6c 69 6e 65 20 74 79 70 65 3d 22 6c 69 6e  utline type="lin
0fe0  6b 22 20 74 65 78 74 3d 22 ce 9d ce bf cf 81 ce  k" text="…….
0ff0  b2 ce b7 ce b3 ce af ce b1 22 20 55 52 4c 3d 22  ………" URL="
1000  68 74 74 70 3a 2f 2f 6f 70 6d 6c 2e 72 61 64 69  ime.com/Browse.a
1010  6f 74 69 6d 65 2e 63 6f 6d 2f 42 72 6f 77 73 65  radiotime.com/Br
1020  2e 61 73 68 78 3f 69 64 3d 72 31 30 30 33 39 32  .ashx?id=r100392
1030  22 20 67 75 69 64 65 5f 69 64 3d 22 72 31 30 30  " guide_id="r100
1040  33 39 32 22 2f 3e 0d 0a 3c 6f 75 74 6c 69 6e 65  392"/>..<outline
1050  20 74 79 70 65 3d 22 6c 69 6e 6b 22 20 74 65 78  type="link" tex
1060  74 3d 22 ce 9f ce bb ce bb ce b1 ce bd ce b4 ce  t="………….
1070  af ce b1 22 20 55 52 4c 3d 22 68 74 74 70 3a 2f  …" URL="http:/
1080  2f 6f 70 6d 6c 2e 72 61 64 69 6f 74 69 6d 65 2e  /opml.radiotime.
1090  63 6f 6d 2f 42 72 6f 77 73 65 2e 61 73 68 78 3f  com/Browse.ashx?
10a0  69 64 3d 72 31 30 30 33 38 35 22 20 67 75 69 64  id=r100385" guid
10b0  65 5f 69 64 3d 22 72 31 30 30 33 38 35 22 2f 3e  e_id="r100385"/>
10c0  0d 0a 3c 6f 75 74 6c 69 6e 65 20 74 79 70 65 3d  ..<outline type=
10d0  22 6c 69 6e 6b 22 20 74 65 78 74 3d 22 ce 9f cf  "link" text="…
10e0  85 ce b3 ce b3 ce b1 cf 81 ce af ce b1 22 20 55  …………." U
10f0  52 4c 3d 22 68 74 74 70 3a 2f 2f 6f 70 6d 6c 2e  RL="ime.com/Browse.a.
1100  72 61 64 69 6f 74 69 6d 65 2e 63 6f 6d 2f 42 72  radiotime.com/Br
1110  6f 77 73 65 2e 61 73 68 78 3f 69 64 3d 72 31 30  owse.ashx?id=r10
1120  31 32 34 39 22 20 67 75 69 64 65 5f 69 64 3d 22  1249" guide_id="
1130  72 31 30 31 32 34 39 22 2f 3e 0d 0a 3c 6f 75 74  r101249"/>..<out
1140  6c 69 6e 65 20 74 79 70 65 3d 22 6c 69 6e 6b 22  line type="link"
1150  20 74 65 78 74 3d 22 ce 9f cf 85 ce ba cf 81 ce  text="………
1160  b1 ce bd ce af ce b1 22 20 55 52 4c 3d 22 68 74  ……." URL="ht
1170  74 70 3a 2f 2f 6f 70 6d 6c 2e 72 61 64 69 6f 74  tp://opml.radiot
1180  69 6d 65 2e 63 6f 6d 2f 42 72 6f 77 73 65 2e 61  ime.com/Browse.a
1190  73 68 78 3f 69 64 3d 72 31 30 30 34 33 34 22 20  shx?id=r100434"
11a0  67 75 69 64 65 5f 69 64 3d 22 72 31 30 30 34 33  guide_id="r10043
11b0  34 22 2f 3e 0d 0a 3c 6f 75 74 6c 69 6e 65 20 74  4"/>..<outline t
11c0  79 70 65 3d 22 6c 69 6e 6b 22 20 74 65 78 74 3d  ype="link" text=
11d0  22 ce a0 ce bf ce bb cf 89 ce bd ce af ce b1 22  "………….."
11e0  20 55 52 4c 3d 22 68 74 74 70 3a 2f 2f 6f 70 6d  URL="radiotime.com/Br
11f0  6c 2e 72 61 64 69 6f 74 69 6d 65 2e 63 6f 6d 2f  l.radiotime.com/
1200  42 72 6f 77 73 65 2e 61 73 68 78 3f 69 64 3d 72  Browse.ashx?id=r
1210  31 30 30 33 39 38 22 20 67 75 69 64 65 5f 69 64  100398" guide_id
1220  3d 22 72 31 30 30 33 39 38 22 2f 3e 0d 0a 3c 6f  ="r100398"/>..<o
1230  75 74 6c 69 6e 65 20 74 79 70 65 3d 22 6c 69 6e  utline type="lin
1240  6b 22 20 74 65 78 74 3d 22 ce a0 ce bf cf 81 cf  k" text="…….
1250  84 ce bf ce b3 ce b1 ce bb ce af ce b1 22 20 55  …………." U
1260  52 4c 3d 22 68 74 74 70 3a 2f 2f 6f 70 6d 6c 2e  RL="ime.com/Browse.a.
1270  72 61 64 69 6f 74 69 6d 65 2e 63 6f 6d 2f 42 72  radiotime.com/Br
1280  6f 77 73 65 2e 61 73 68 78 3f 69 64 3d 72 31 30  owse.ashx?id=r10
1290  31 32 38 36 22 20 67 75 69 64 65 5f 69 64 3d 22  1286" guide_id="
12a0  72 31 30 31 32 38 36 22 2f 3e 0d 0a 3c 6f 75 74  r101286"/>..<out
12b0  6c 69 6e 65 20 74 79 70 65 3d 22 6c 69 6e 6b 22  line type="link"
12c0  20 74 65 78 74 3d 22 ce a1 ce bf cf 85 ce bc ce  text="………
12d0  b1 ce bd ce af ce b1 22 20 55 52 4c 3d 22 68 74  ……." URL="ht
12e0  74 70 3a 2f 2f 6f 70 6d 6c 2e 72 61 64 69 6f 74  tp://opml.radiot
12f0  69 6d 65 2e 63 6f 6d 2f 42 72 6f 77 73 65 2e 61  ime.com/Browse.a
1300  73 68 78 3f 69 64 3d 72 31 30 31 32 38 37 22 20  shx?id=r101287"
1310  67 75 69 64 65 5f 69 64 3d 22 72 31 30 31 32 38  guide_id="r10128
1320  37 22 2f 3e 0d 0a 3c 6f 75 74 6c 69 6e 65 20 74  7"/>..<outline t


Thanks,


Roger

0
Answered

Script garbage memory collected

globus2008 11 years ago in iRidium Script / AV and Driver scripts updated by Oksana (expert) 9 years ago 3
When I log my project that contains a lot of scripts I got sometimes system message "Script garbage memory collected.". When the project runs under PC panel then nothing happens. But in case of android tablet, it stops working and iRidium app shuts down after a while. This device has android 4.0, 1Gb CPU and 512Mb RAM. There is the same result with iRidium 2.0 and beta 2.1.

Do you have an idea how to force the project working without crash please?
Best regars,
Tomas

0
Completed

Trigger with memory which sets up the last value of the variable

Ekaterina (head of support) 9 years ago in iRidium Script / AV and Driver scripts updated 9 years ago 1
The trigggers, which switch from 0 to their previous state, are frequently used for implementation of the Mute button and light control together with the main control item - Level. Triggers with memory alow you to get back to the last state used, not the default value of a standard trigger.

To creat a trigger with memory use the script used in the example of the project below:

KNX_SmartTrigger.irpz

The script works with any driver, not KNX only.
In order for it to work, set up connection with equipment, commands, channels, and buttons which will work as "smart" triggers. 

Such button has to be of the Button type and have feedback channel from the controlled address assigned to it to display the actual state. 

Then open the script editor - [JS] and create description of all "smart" triggers the same way it's done in the example.

For each trigger describe the following:
  • the name of the controlled driver 
  • the address where the trigger sends data (the command name, where the data is sent and the feedback channel name have to be the same in the driver settings)
  • the path to the trigger (page, item name)
  • the value for the trigger to "remember" by default. It is required at the project launch. If at launch the variable = 0, then the will be set up when clicking this value.
The trigger instance in the script file looks as follows:
trigger(IR.GetDevice("KNX Router (KNXnet/IP)"),    // driver          	
"Address 1",                               // KNX address (Command = Feedback) 
IR.GetItem("Page 1").GetItem("Item 2"),    // Trigger Button           	
50)                                        // the trigger value by default 
To create another trigger, copy only this block of data and change the necessary parameters - the item address, the KNX address, the driver name. The rest of the script file has to be left unchanged.  
0
Completed

Wake On LAN - turn on PC via network

Ekaterina (head of support) 9 years ago in iRidium Script / AV and Driver scripts updated by Alex N 8 years ago 5
please see the example allows you to turn on the remote PC thru the local network by the MAC address of this PC

WakeOnLan.irpz
0
Answered

missing standard ECMAscript functions

r riksma 9 years ago in iRidium Script / AV and Driver scripts updated by Oksana (expert) 9 years ago 6
I think it is always a good idea not to copy and paste code too much.
that's why i would like to create a function and use it many times over.

The problem with this is that the variable scope is defined when creating the function, not when running it.
for example:

var a = 456;
var func_b = function() {
IR.Log(a);
}
function func_a(param_a) {
var a = 123;
param_a();
}
func_a(func_b);

This returns 456 but i want it to return 123

To fix this there should be methods like call, apply and bind but they do not seem to exist in iRidium.

I also noticed Splice() does not work. (used to remove items from an array)

What is the current level of compatibility with the ECMA standard?
Is it at least possible to add the functions that are missing?

(extra resources:)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
http://javascriptissexy.com/javascript-apply-call-and-bind-methods-are-essential-for-javascript-professionals/
0
Declined

deleting a device

rocfusion 9 years ago in iRidium Script / AV and Driver scripts updated by Aleksandr Romanov (CTO) 7 years ago 7
Hi,

Is there a way to delete a device that has been created by an script?

I have an UPNP device which I want to delete.


Thanks,


Roger
0
Completed

Driver for Amatilinea player by Evika

evg 9 years ago in iRidium Script / AV and Driver scripts updated by anonymous 8 years ago 13
Ready driver.
Frequency of data update is set up in the script.
I'm working on forming the list of tracks but haven't finished it yet.
Control and all player functions work.
Checked on "live" equipment.
Evika_amatilinea.irpz
0
Answered

Custom TCP Driver - Timeout

Nikolay Arbuzov 9 years ago in iRidium Script / AV and Driver scripts updated by Johan Vinke 8 years ago 3
Is there way to reduce timeout value for the Custom TCP driver ?

In case equipement is off it takes too long for the connection to timeout.

Thanks.
0
Answered

Popup page sending states

Nick Redant 11 years ago in iRidium Script / AV and Driver scripts updated by Oksana (expert) 9 years ago 5
Hi,

for one project I would like to change the state of a button when a popup is shown
is it possible to integrate this and so,

what are the type and feedback relations I have to use?


Thanks in advance…

Nick
0
Answered

try catch doesn't always work

rocfusion 9 years ago in iRidium Script / AV and Driver scripts updated by Oksana (expert) 9 years ago 4
Hi,

I have a script that parses an object.  Not every record contains the same fields. 

Only through breaking some other code in another script did the try catch statement trigger and the error was shown.

This is an simplified example of what I was trying. 

myobject =  [{ test : [data:"123",data:"1234"], test2:"abcd"}, { test : [data:"13",data:"134"], test2:"abc"},
      {  test2:"abcd"}];

try {
for(i=0;i<myobject.length;i++)
  for(y=0;y<test.length;y++)
    IR.Log("y is "+y)
}catch(error){IR.Log("there was an error  "+error)

I think that when you try this as a stand alone script its fine, yet when this example is used in an more complex project that contains multiple drivers then the try catch become less reliable.  My project contains  KNX, SIP, SONOS, XBMC,  Global cache, denon; plus more.


Thanks,


Roger