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
Beantwoord

Циклическое повторение функции

Alexey Grishanin 10 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Oksana (expert) 10 jaar geleden 2
Добрый день.
Поясните пожалуйста почему в следующем скрипте:

function byte1(val)
{
return val >>> 24
};

function ReadEvent(val)
{
IR.Log("Значение байта 1: "+ byte1(val));
};

function WriteLog ()
{
IR.Log("просто сообщение")
};

IR.AddListener(IR.EVENT_START,0,function()
{
IR.SetInterval(5000,WriteLog);
IR.SetInterval(5000,ReadEvent(1830317336));
});

функция ReadEvent  не работает циклично через каждые 5 сек.? В то время как WriteLog работает, т.е. код исполняется каждые 5 сек.
0
Beantwoord

​Is it possible to use a usb joystick for controlling purposes (for windows 8/10)?

gert korf 9 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Ekaterina (head of support) 9 jaar geleden 1

I have PTZ ip-cameras which I can control by AV and Custom driver (HTTP), but instead of a virtual joystick I would like to use a (Microsoft HID-compliant) joystick.


Is there a script available for this or do I need to use a joystick to key mapper and use a editbox?


0
Beantwoord

Bubble popup with slider...

Andrey Honich 10 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Oksana (expert) 10 jaar geleden 8
Hallo,
Is there some way to show automatic bubble popup with numerical value when I move slider on mobile devices?
The point is the slider control is quite small, and when I put finger on it i cannot see anything under it, I even don't know either I hit control or not. Also quite often I need numerical control for some precise adjusting in several percents.

If it's not possible in current version, can I expect to see this feature in some near future I2 release please?

Please check OpenRemote sliders as reference.

slider1.jpg
slider1.jpg_thumb
0
Beantwoord

Password editbox

Giljan 11 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Oksana (expert) 10 jaar geleden 7
Hello,

Is it posssible to use an editbox as an password field, so it displays bullets instead of text?
0
Beantwoord

"Freezing" static list when pressing button until button release.

TuomoHautala 9 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Ekaterina (head of support) 9 jaar geleden 4

I have static list on my project for PC and i have buttons with press and release event. When I move cursor out from button while pressing the button, static list moves and now when i release, it wont send relase command. So can i remove "drag static list" event when pressing on button so static list will not move, and put "drag static list" event back when releasing button?

0
Voltooid

Android: screen brightness adjustment doesn't work

Эмиль Боев 10 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Ekaterina (head of support) 10 jaar geleden 1
If one try to adjust brightness: 

IR.SetVariable("System.Display.Bright", 0);

it will not work on Android.
It works perfect on iOs.
Antwoord
Ekaterina (head of support) 10 jaar geleden
This function works only on iOS, it is correct. You can see this information in API:
http://wiki2.iridiummobile.net/Tokens_API#Get_Data_about_Device_Display
0
Voltooid

Меню, открываемое жестом

Ekaterina (head of support) 10 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Эмиль Боев 9 jaar geleden 13
В проекте показано, как сделать меню навигации по проекту для смартфона, которое плавно появляется из-за левого края экрана по нажатию кнопки в углу экрана или жестом слева-направо. Закрыть меню можно также жестом или нажатием на видимую область ранее открытой страницы (при этом какие-либо кнопки страницы не будут нажаты).

Чтобы использовать меню в своем интерфейсе, перетащите этот пример в свой проект (тащим проект за имя), и редактируйте скрипт в соответствии с комментариями.
0
Beantwoord

Image size

Jan Hein Liebregts 12 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Oksana (expert) 10 jaar geleden 2
Hello,
When I have an javascript with:
[font=courier]IR.GetItem("Page 1").GetItem("Button").GetState(0).Image = "pict.jpg";
It ads an image to the button.
When I ad:
IR.GetItem("Page 1").GetItem("Button").Width = 500;
IR.GetItem("Page 1").GetItem("Button").Height = 100;
It changes the button size, but not the image size.
How can I change the image size in the javascript?
Jan Hein
0
Voltooid

Построение графиков (graph)

evg 10 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Ekaterina (head of support) 10 jaar geleden 1
Проект строящий графики
Graph.irpz

Предложени по оптимизации и доработке приветствуются.
0
Under review

Project crash because of script created joystick item

r riksma 10 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Ekaterina (head of support) 10 jaar geleden 1
If you create a joystick item to use as a color picker by using a script, the project crashes when you click on the joystick. This is only in windows, on an iPad it works fine.
To reproduce:
-download your demo project:
https://s3.amazonaws.com/iRidiumWiki2.0/i2Scripts/JS_Iridium_demo_EditItem.irpz
-make sure you can click on the joystick by placing the code last or removing the other items.
-click and watch it crash.

Tested Editor versions:
V2.1.2.16841
V2.2.1.17647

Antwoord
Ekaterina (head of support) 10 jaar geleden
Yes, you are right, the Joystic created via the script doesn't work for now.
It happens because the default value of MaxX and MaxY is zero, when you create it via the script, and you cannot change it. Now you cannot use CreateItem function for the Joystic, but we'll find a solution. Thank you.