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

http project download parmeters

Roger [rocfusion] 9 jaar geleden in iRidium Script bijgewerkt door Ekaterina (head of support) 9 jaar geleden 8
Hi,

Following on from my previous question, since the first release of the function IR.DownLoadProject the parameters look like they have changed also the functionality of these method is changed.

In the first release we have,
function HTTPUpdate(url)
{
var parsed_url = parse_url(url);
var downloader = IR.DownLoadProject(
{
type:parsed_url.scheme,
host:parsed_url.authority,
path:parsed_url.path + '?' + parsed_url.query,
method:'GET',
name:'Fireplace'
});
}
HTTPUpdate('https://s3.amazonaws.com/iRidiumWiki2.0/iRidiumTransfer/HTTP_Upload.irpz');

This would cause the project to get uploaded immediately.

Now the new IR.DownloadProject, found in the project file supplied in the wiki, does not automatically update. Only the original project is shown. I guess the IR.DesignSwitch is no longer working or the sample script provided does not load the correct project file name.

With this new implementation will we always have to IR.DesignSwitch together with IR.DownLoadProject to get the new downloaded project to start?

Thanks,


Roger
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

Триггер с памятью, возвращающий последнее установленное значение переменной

Ekaterina (head of support) 9 jaar geleden in iRidium Script / AV and Driver scripts bijgewerkt 9 jaar geleden 1
Триггеры, которые переключаются из нуля в свое предыдующее состояние, часто используются для раелизации кнопки Mute и управления светом, вместе с основным управляющим элементом - уровнем. Триггер с памятью позволяет именно вренуться в последнее включенное состояние, а не к "умолчанию" обычного триггера.

Чтобы сделать триггер с памятью, используйте скрипт, приведенный в проекте-примере:

KNX_SmartTrigger.irpz

Скрипт подходит для любого драйвера, не только KNX.
Чтобы он начал работать, настройте связь с оборудованием, команды и каналы, кнопки, которые будут служить в качестве "умных" триггеров.

Кнопка должна иметь тип Button, к ней должен быть привязан канал обратной связи от управляемого адреса, чтобы она отображала реальное его состояние.

Далее, откройте редактор скриптов - [JS], и создайте в нижней части скрипта описание всех "умных" триггеров так же, как это сделано в примере.

Для каждого триггера описывается:
  • имя управляемого драйвера
  • имя адреса, куда триггер отправляет данные (имя команды, куда отпарвляются данные, и имя канала обратной связи в настройках драйвера должны быть одинаковыми)
  • путь к кнопке-триггеру (страница, имя элемента)
  • значение, которое триггер "помнит" по умолчанию. Оно нужно при запуске проекта. Если при запуске переменная = 0, триггер он установит при нажатии это значение.
Экземпляр триггера в файле скрипта выглядит так:
trigger(IR.GetDevice("KNX Router (KNXnet/IP)"),    // драйвер          
	"Address 1",                               // адрес KNX (Command = Feedback)
IR.GetItem("Page 1").GetItem("Item 2"),    // кнопка-триггер          
	50)                                        // значение триггера по-умолчанию
чтобы создать другой триггер, вам нужно скопировать только этот блок данных и заменить необходимые параметры - адрес элемента, адрес KNX, имя драйвера. Остальная часть файла скрипта остается неизменной.
0
Voltooid

UPNP discovery

rocfusion 9 jaar geleden in iRidium Script bijgewerkt door Sergey (expert) 9 jaar geleden 3
Hi,

The reason behind no discovery is quite apparent from the following, I made 3 different packet captures of the discovery process. First with iRidium client, next with the original Sonos app and finally with an UPNP Developer Tool. Both the Original Sonos app and the UPNP Developer Tool could find the Sonos Devices on my network immediately every time. Whilst the iRidium client discovery can "sometimes" take a minute or 2. I repeated this 3 times just to be sure. It would be great if the iRidium client could copy what the UPNP Developer tool is broadcast so that we can use this device with all UPNP devices.

Iridium Client Sends one broadcast.

M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 3
ST: upnp:rootdevice


The original Sonos App, 2 broadcasts are sent 2 seconds apart targeted specifically at the sonos household and two different broadcast addresses are used.

M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:schemas-upnp-org:device:ZonePlayer:1
X-RINCON-HOUSEHOLD: Sonos_XXXXXXXXXXXXXXXXXXXXXXXXX

M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:schemas-upnp-org:device:ZonePlayer:1
X-RINCON-HOUSEHOLD: Sonos_XXXXXXXXXXXXXXXXXXXXXXXXX


UPNP Developer Tool send two broadcasts less than 1 second apart, note the MX record gives all the devices to respond within 5 seconds

M-SEARCH * HTTP/1.1
ST: upnp:rootdevice
MAN: "ssdp:discover"
MX: 5
HOST: 239.255.255.250:1900
Content-Length: 0

M-SEARCH * HTTP/1.1
ST: upnp:rootdevice
MAN: "ssdp:discover"
MX: 5
HOST: 239.255.255.250:1900
Content-Length: 0



Thanks,


Roger
0
Voltooid

Wake On LAN - turn on PC via network

Ekaterina (head of support) 9 jaar geleden in iRidium Script / AV and Driver scripts bijgewerkt door Alex N 8 jaar geleden 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
Voltooid

Android: screen brightness adjustment doesn't work

Эмиль Боев 9 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Ekaterina (head of support) 9 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
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
Beantwoord

Countdown Timer

Khurram Masud 9 jaar geleden in iRidium Script bijgewerkt door Ekaterina (head of support) 9 jaar geleden 1
Timer.irpz
Hello,
I am trying to insert a countdown timer in the application. When i press the button, the countdown starts from 60 Secs to 0 Secs.
i have tried it using the string 'GetState.Text = 60' then 'GetState.Text = 59' and so on... but i need to put delay of 1 sec in between, how is it possible?
Also, Is there any other way of doing this?
Please reply

Thanks,


Khurram
Antwoord
var counter;
function count () 
{
   // stop interval if it has been started before
   IR.ClearInterval(counter);
   //start value
   var time = IR.GetItem("Page 1").GetItem("Item 1").GetState(0).Text = 60;
   function count () {
      //if time > 0 then subtract 1 and send to text field
      if (time > 0) {
         IR.GetItem("Page 1").GetItem("Item 1").GetState(0).Text = --time; 
      } else {
         // stop subtracting if time <=0
         IR.ClearInterval(counter);
      }; 
   }
   // start function count every 1000 ms (1 s)
   counter = IR.SetInterval(1000, count);
}
you can start the timer with Script Call command:
0
Voltooid

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

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

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

Send KNX command in script

Jackie Roos 9 jaar geleden in iRidium Script bijgewerkt door Dmitry - support (expert) 9 jaar geleden 3

Hi

I have a need to be able to send a command from JavaScript to the KNX driver. The command exists in the KNX Driver Commands in the GUI Editor.


Is it possible to call this command from the script to send it?


If not, is it possible to simulate a button press from the script so a command assigned to this item would be sent?


thanks




0
Beantwoord

sending mail from iridium?

Melih 9 jaar geleden in iRidium Script bijgewerkt door Ekaterina (head of support) 9 jaar geleden 6
Is it possible to do this? I know that it is possible to use execute mailto and use a mail agent to send it but i want to know if it is possible to do it without another app. Mail will be a generic mail to predetermined mail which wont change ever. Any idea's to how to accomplish this would be appreciated :)