0
Waiting for user's reply

Execute Macro

j4zz J4zzee 9 jaar geleden in Products / KNX bijgewerkt door Ekaterina (head of support) 8 jaar geleden 4

Hi - I am currently working on creating scenes. I am using the Java Script Module to execute macro as follow: After 10am, release the button to executed the associated macro. The macro contains : show popup and execute command through KNX server. My script works for the "show popup" but not for the KNX command. Can someone help? Thank you.


Note: below is a copy of the script:


IR.AddListener(IR.EVENT_START, 0, function()

{
var hour = IR.GetVariable("System.Time.Hour");
if (hour > 10)
{
IR.GetItem("Page 1").GetItem("Button").StartActions(IR.EVENT_ITEM_RELEASE);
};





Waiting for user's reply

Hello!


You have properly configured the command to KNX? Сan you send your project to us by e-mail? support@iridiummobile.ru

Hi Dimitry and sorry for the late response. In fact I have resolved the KNX command with this: IR.GetDevice("KNX Router (KNXnet/IP)").Set("CONNECT", "");


The real problem is in fact to execute this command at a specific time of the day... For instance close the shutters at 10:00:00pm, and repeat this action everyday...

Hello!


Please try this sample: http://dev.iridiummobile.net/Editor_Server_Tools/en#Periodic_actions

The problem is - you cannot make a shadule in client app, if it is not always online. So it is a serever sample