Напишите здесь описание Вашего форума ...
0
Answered

script indexOf()

Romain LE CAN 8 months ago in Bugs and problems updated by Vladimir Ovchinnikov 6 months ago 9

Hello,


i want to use a javascript function on my project but when i use it i can see on the log "function is not defined"

the function is indexOf() to return the position of an element in an array.

array.indexOf(element)

is it the right syntax in iridium ?

thanks for your help

0
Under review

Systom Error

Maurits Roos 8 months ago in Bugs and problems updated by Vladimir Ovchinnikov 8 months ago 4

Hi  

I have updated to V1.3.5.20380 and now when I try and run i3 Pro 64 the below error comes up V1.2  worked fine  32 bit works fine as well I have reinstalled and no different 

0
Under review

Requesting feedback at regular intervals and JSON parsing

Iain Brew 10 months ago in Bugs and problems updated by Vladimir Ovchinnikov 9 months ago 10

Hello all

I am working on a small task to use the Philips Hue lighting system ecosystem in a project in a different way. One of their products is a 4 button wireless light switch. When buttons are pressed, it sends commands to a Hue Bridge (base station) which then talks to lights etc. Instead, I want to use those four buttons to trigger iRidium commands (i.e. send data to a driver, write a value to a token etc). 

I have made some progress with my project however am stuck with two things:

1) Request status every 100ms

Currently, I can only gain feedback once when I land on the page which contains the text box which the feedback is attached too. For this to work, I need iRidium to be checking the status of the buttons constantly so that it can be responsive within 100 or maybe 200ms. Is this possible?

2) Parsing JSON

I am a bit stuck on this. I have been working on a small javascript file which uses an 'SendEx' request to GET a response from the button (in the system it is known as a 'sensor' and its current ID is '12'). This is using JSON.

IR.AddListener(IR.EVENT_START, 0, function()
   
{
   IR.GetDevice("hue");
   // ***get Hue driver***
   sendRequests();
   // ***send request for API***  
   // ***Code to go here to request status every 100ms regardless of active page or popup***         
});

function sendRequests()
{
   // ***request status of Sensor 12 - Buttons***
   IR.GetDevice("hue").SendEx({ 
         Type: "GET",                                                                    
         Url:  "/api/a8CaS3oaTHN0mL-1IgKZgYRzXTLL3kIbJVApJukm/sensors/12",      
         cbReceiveText:       function(text)  

For now in my testing phase, I have the output of the text response go into a text box on my page:

IR.GetPage("Page 1").GetItem("buttonstate").Text = text;


The response from the Philips Hue system when requesting the status of Sensor 12 is:

hello

{
"state": {
"buttonevent": 4002,
"lastupdated": "2018-12-15T01:23:33"
},
"config": {
"on": true,
"battery": 100,
"reachable": true,
"pending": []
},
"name": "DimmerDemo",
"type": "ZLLSwitch",
"manufacturername": "Philips",
"swversion": "5.45.1.17846",
"uniqueid": "00:17:88:01:04:af:cb:12-02-fc00"
}

What is important to me is the first number after "state" > "button event". These numbers refer to the button pressed (1000, 2000, 3000, 4000). The last digit refers to the kind of press (long, short, release etc). 


Only the first number is important to me. This tells me simply which button has been triggered (1, 2, 3 or 4). This is the area I am struggling with most is the JSON Parse to extract just that first number. 


From here, depending on the number, it would then trigger something. For example:


}    
//switch goes here I think???!??
    case "1": 
    //button number '1'
    IR.GetPage("Page 1").GetItem("response").Text = Button 1 Pressed;
// ***trigger a command to a device i.e. Turn Light 5 ON
    IR.GetDevice("hue").Set("Light ID 5 = On, "");
break;
case "2":
IR.GetPage("Page 1").GetItem("response").Text = Button 2 Pressed;
    // ***do the things***
break;
case "3":
IR.GetPage("Page 1").GetItem("response").Text = Button 3 Pressed;
// ***do the things***
break;
case "4":
IR.GetPage("Page 1").GetItem("response").Text = Button 4 Pressed;
// ***do the things***
// break;


If anyone could advise on how to properly parse this JSON response and then have it trigger events in iRidium I would be very grateful.  

0
Answered

Sending Hex data

Mike Slattery 10 months ago in Bugs and problems updated by Aleksandr Romanov (CTO) 10 months ago 2

I am trying to send embedded hex data and seem to be having issues.Is there another way to do this?


From Main program

Matrix.sendData(camSlot[myCamera], 3, "\x81\x01\x04\x00\x03\xFF");

Matrix Driver


function SendMsg(msg) {
// IR.Log("SendMsg: " + msg);
this.device.Send([msg]);
}


this.sendMsg = SendMsg;

function SendData(slot, baud, data) {

this.sendMsg("/+" + slot + "/" + baud + ":" + data + ".");

}

this.sendData = SendData;


What is received using Hercules Server in hex.

{81}{01}{04}{03}{C3}{BF} 

Missing the \x00 and \xFF get changed to C3 BF 

0
Will be answered

Bar with 'light' stripe on iPhone X

Theo Derks - NL (distributor) 11 months ago in Bugs and problems updated 6 months ago 7

Hi 

On the iPhone X, there is in the bottom a 'white stripe' (bar).

This is for swiping to other apps that are running on the iPhone.

Our installer is asking: can we de-activate this 'white stripe' in iRidium i3 pro app? So, it's not more visible?

Thanks

Theo

0
Under review

iRidium is still on top, while Always on top is disabled

'Wouter van der Post' 1 year ago in Bugs and problems updated by Vladimir Ovchinnikov 6 months ago 10

Version: 1.2.12

Client: Windows


Hello,


I want to display a video on top of iRidium. Since iRidium doesn't support video files, I had to use VLC to play a video.

I've created a command line call to open VLC:

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I dummy --width=512 --height=288 --video-x=1300 --video-y=700 --no-video-deco --no-embedded-video --no-loop --play-and-exit --video-on-top C:\video.mp4

A button in the project opens this command and the video is played.


But when I set iRidium to Full screen, the video is played on the background. Even when "Always on top" is disabled in iRidium.

Next I tried setting iRidium to run without a frame (so not fullscreen) and position it at X:0 Y:0. Still the video is played in the background, even when "Always on top" is disabled.


What can I do to make this work?

0
Answered

i3lite App does not run continuously in background

Govinda Raja 1 year ago in Bugs and problems updated by Aleksandr Romanov (CTO) 1 year ago 3

Why does the i3lite app not run continuously in the background?


When I want to open the door or turn on a switch, I realize the app takes a lot of time to load.


Ideally once signed in and started, why does the app close on its own? Why cannot the app be kept running continuously in the background so that we do not have to wait for the app to load to use it.

0
Answered

Verifying Google Home is properly linked

Ron Verstappen 2 years ago in Bugs and problems updated by Aleksandr Romanov (CTO) 2 years ago 2

Can you explain how you verify that the accounts for Gate for Google Home and the Google Home are properly linked? Going through all the steps, it all seems to be successful but afterwards there is no indication in Google Home that it knows anything about i3.


Other vendors' interfaces (e.g., Lutron Connect) show that the accounts are connected from within the Google Home app. 

0
Under review

iRidium gate, Google Home and AMX

Ron Verstappen 2 years ago in Bugs and problems updated 2 years ago 2

Hi, I have the i3 lite server talking to AMX, Gate for Google Home and AMX in the project and the iridum linked to Google Home.


Google Home doesn't respond to anything, so please provide examples of what should work. 


I created a button for the AMX device of the gate project called "Cycle Main Scene". How should I get Google Home to invoke this? I have tried things like:

- OK Google, Cycle Main Scene

- OK Google, Tell AMX to Cycle Main Scene

- OK Google, Tell i3 to Cycle Main Scene

but none of these work. What form of command to Google Home should work?


Thanks,

Ron

0
Under review

i3Pro displays white screen when using displaylink monitors.

Mike Slattery 2 years ago in Bugs and problems updated by Vladimir Ovchinnikov 2 years ago 3

I have been using a SEETEC 10.1" USB DisplayLink monitor running on an INTEL NUC for some applications. When I tried to run i3Pro, it would only display a white screen for the program. The resolution of the monitor is 1024x600. I did find a work around by placing a monitor EDID emulator on the HDMI out of the NUC and then set the display settings to duplicated at 1024x600.


Can you check to see why i3Pro does not display with a DisplayLink monitor.