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.
yahoo weather module repair
I have noticed that the yahoo weather module stopped working. I guess that is because yahoo retired the API that was used? Are there plans the get it working again?
UMC memory expansion for database file
Hi, I noticed that the UMC server has a USB port. Is there any possibily to use this port to store the Server database ?
Maybe it requires some changes on server to select in wich path to store the database file.
If I use a 30Gb USB memory drive, I can store very large ammount of data into the UMC server.
Is there any possibilities ?
2N iridium pro setup guide
Hi
How do i use 2N IP verso intercom with i3 SIP Script ?
can i use it without sip server ?
iriduim file size needs to be reduced.
Iriduim client file contains lot of pages and pop-up which makes the file more big and its very hard to transfer and upload it on the cloud because of the file size anything can be done in this case to make the file more small???
Requesting feedback at regular intervals and JSON parsing
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.
Blur effect
Hello,
In your newsletter was an item about the new blur effect. I want to use that, but when I add this:
function Test (){
IR.GetItem("Popup 1").BlurEnabled=true;
IR.GetItem("Popup 1").BlurDepth=50;
}
Only the background from the popup will blur. When I use:
function Test (){
IR.GetItem("Page 1").BlurEnabled=true;
IR.GetItem("Page 1").BlurDepth=50;
}
Nothing happens.
I want to blur the content on the page behind the popup, not the popup it selve.
Is it possible to blur the page?
Using Philips Hue Dimmer Switch to send commands in a project
I am curious if anyone has successfully implemented the following. I have a Philips Hue bridge and a Philips Dimmer Switch. This switch has four buttons on it which send commands to the bridge to then trigger lighting presets etc. The Hue system has an open API which allows you to query what button has been pressed on the dimmer switch.
Effectively, instead of having the dimmer switch buttons controlling a light, I want to read its status (feedback) and have it send a command to a driver instead. For example:
Press Dimmer Switch 1 = send command 'x' to driver 'y'
Press Dimmer Switch 2 = send command 'a' to driver 'b' and send number '8' to token 'z'
and so on...
If anyone has any examples of this working or could advise a cleaner solution for inexpensive wall mountable buttons to trigger feedbacks I would be very appreciative!
Sending Hex data
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
Inexpensive mains power control
Hello
Just a note that I have been trying to track down an easy way to control a mains power point in my iRidium project. There are professional PDU units available with TCP, UDP and HTTP control but they can be quite expensive. Recently, I picked up a TP-Link HS100 smart switch ($50 at JB HiFi in Australia) These are available worldwide. This is originally designed to only work with the manufacturers software, but I found a way to control this with a custom driver in iRidium:
Create a Custom TCP driver with:
IP: address of smart switch on your wifi network
Port: 9999
No login/password required.
For commands, use the following:
ON
00 00 00 2a d0 f2 81 f8 8b ff 9a f7 d5 ef 94 b6 c5 a0 d4 8b f9 9c f0 91 e8 b7 c4 b0 d1 a5 c0 e2 d8 a3 81 f2 86 e7 93 f6 d4 ee df a2 df a2
OFF
00 00 00 2a d0 f2 81 f8 8b ff 9a f7 d5 ef 94 b6 c5 a0 d4 8b f9 9c f0 91 e8 b7 c4 b0 d1 a5 c0 e2 d8 a3 81 f2 86 e7 93 f6 d4 ee de a3 de a3
I am working on also retrieving the status of the switch so that you can receive feedback.
This could be a cheap, simple and handy way to integrate mains control into your project i.e. fan, coffee machine, pool pump, Christmas lights etc.
Перенос строки на элементе
Доброй ночи!
Подскажите, пжст, как при передаче текста в объект Text итема добавить перенос строки, чтобы вывести текст в несколько строк?
Customer support service by UserEcho