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.
http project download parmeters
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
"Freezing" static list when pressing button until button release.
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?
Триггер с памятью, возвращающий последнее установленное значение переменной
Чтобы сделать триггер с памятью, используйте скрипт, приведенный в проекте-примере:
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, имя драйвера. Остальная часть файла скрипта остается неизменной.
UPNP discovery
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
Wake On LAN - turn on PC via network
WakeOnLan.irpz
Android: screen brightness adjustment doesn't work
IR.SetVariable("System.Display.Bright", 0);
it will not work on Android.
It works perfect on iOs.
http://wiki2.iridiummobile.net/Tokens_API#Get_Data_about_Device_Display
Countdown Timer
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
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:
Меню, открываемое жестом
Чтобы использовать меню в своем интерфейсе, перетащите этот пример в свой проект (тащим проект за имя), и редактируйте скрипт в соответствии с комментариями.
Send KNX command in script
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
sending mail from iridium?
Customer support service by UserEcho