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
Answered

http project download parmeters

Roger [rocfusion] 9 years ago in iRidium Script updated by Ekaterina (head of support) 9 years ago 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
Answered

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

TuomoHautala 9 years ago in iRidium Script / Interface scripts updated by Ekaterina (head of support) 9 years ago 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
Completed

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

Ekaterina (head of support) 10 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

UPNP discovery

rocfusion 10 years ago in iRidium Script updated by Sergey (expert) 10 years ago 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
Completed

Wake On LAN - turn on PC via network

Ekaterina (head of support) 10 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
Completed

Android: screen brightness adjustment doesn't work

Эмиль Боев 10 years ago in iRidium Script / Interface scripts updated by Ekaterina (head of support) 10 years ago 1
If one try to adjust brightness: 

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

it will not work on Android.
It works perfect on iOs.
Answer
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
Answered

Countdown Timer

Khurram Masud 9 years ago in iRidium Script updated by Ekaterina (head of support) 9 years ago 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
Answer
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
Completed

Menu opened by a gesture

Ekaterina (head of support) 10 years ago in iRidium Script / Interface scripts updated by Эмиль Боев 9 years ago 13
In the project below you can see how to create the navigation menu for the project for smart phone. The menu gradually appears from the left side of the screen by clicking the button in the corner of the screen or with the left-to-right gesture. You can close the menu with a gesture or by clicking on a visible area of the opened page (at that none of the buttons on the page will be clicked)

To use the menu in your interface, drag the example in your project (by the name) and edit the script with respect to the comments.
0
Answered

Send KNX command in script

Jackie Roos 9 years ago in iRidium Script updated by Dmitry - support (expert) 9 years ago 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
Answered

sending mail from iridium?

Melih 10 years ago in iRidium Script updated by Ekaterina (head of support) 10 years ago 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 :)