Uw opmerkingen
Hello.
You can use IR.ShowSystemMenu or IR.ShowSettingsMenu.
The Send method allows you to send an arbitrary set of data to the equipment. You can send GET and POST to the TCP driver. If you know the exact data set, you can send it "as is" to the TCP driver. IR.EVENT_RECEIVE_TEXT is triggered when data is received and only in AV & Custom Systems.
IR.GetDevice("AV & Custom Systems (TCP)").Send(['Content-Length: 0']);
To track clicks on the item you can use:
This can be used with Virtual key, i.e. create a keyboard in the panel project iRidium.
Hello.
You can save history in SQLite.
Example of creating a driver to connect to Gmail IMAP mail:
var smtp_driver = IR.CreateDevice(IR.DEVICE_CUSTOM_TCP, "SMTP", {
Host: "imap.gmail.com",
Port: 993,
SSL: true,
SendMode: IR.ALWAYS_CONNECTED,
ScriptMode: IR.SCRIPT_ONLY,
Login: "your_full_email_address",
Password: "Gmail_Password"
});
You need a IMAP client to receive emails and sort them by subject. You can implement it in pure JavaScript, but we do not have ready-made examples. Perhaps, you will borrow the decision from here.
What do you want to send to UMC? Video file?
Hello.
Example of sending from iridium via external SMTP.
var smtp_driver = IR.CreateDevice(IR.DEVICE_CUSTOM_TCP, "SMTP", {
Host: "smtp.gmail.com",
Port: 465,
SSL: true,
SendMode: IR.ALWAYS_CONNECTED,
ScriptMode: IR.SCRIPT_ONLY
});
function send_email (name_from, email_from, password, email_to, header, message)
{
IR.AddListener(IR.EVENT_RECEIVE_TEXT, smtp_driver, sender);
send("hello");
send("auth");
function send(command)
{
switch (command)
{
case "hello":
smtp_driver.Send(["EHLO smtp.gmail.com\r\n"]);
break;
case "auth":
smtp_driver.Send(["AUTH LOGIN\r\n"]);
break;
case "login":
smtp_driver.Send([IR.Base64Encode(email_from) + "\r\n"]);
break;
case "password":
smtp_driver.Send([IR.Base64Encode(password) + "\r\n"]);
break;
case "from":
smtp_driver.Send(["MAIL FROM:<"+email_from+">\r\n"]);
break;
case "to":
smtp_driver.Send(["RCPT TO:<"+email_to+">\r\n"]);
break;
case "data":
smtp_driver.Send(["DATA\r\n"]);
break;
case "string":
smtp_driver.Send(["From: "+name_from+" <"+email_from+">\r\nTo:<"+email_to+">\r\nSubject: "+header+"\r\nContent-Type: text/plain\r\n\r\n"+message+"\r\n.\r\n"]);
break;
case "quit":
smtp_driver.Send(["QUIT\r\n"]);
break;
}
}
function sender(text)
{
if(text.indexOf("334 VXN", 0) + 1)
{
send("login");
send("password");
}
if(text.indexOf("Accepted", 0) + 1)
{
send("from");
send("to");
send("data");
send("string");
IR.SetTimeout(200, function () {
send("quit"); IR.RemoveListener(IR.EVENT_RECEIVE_TEXT, smtp_driver, sender);
IR.Log("message sent");
});
}
}
}
Customer support service by UserEcho
Hello.
ShowProjectMenu.irpz
Clicking the button opens the project selection menu in the cloud.