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?
Trigger with memory which sets up the last value of the variable
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.
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 defaultTo 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.
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:
Menu opened by a gesture
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.
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