Widget and camera - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9) +--- Thread: Widget and camera (/showthread.php?tid=869) |
Widget and camera - JMM - 26.06.2017 HI ! When we install a camera in a widget, with the "auto open window" marked, it do not open automatically. Has t he a solution for this issue ? Regards. JMM. RE: Widget and camera - AEK - 26.06.2017 (26.06.2017, 11:10)JMM Wrote: HI ! Hi You can create additional plan in Vis structure for camera and open it via Frame in needed plan. Just tested it, and it works (firmware 20160927) RE: Widget and camera - JMM - 27.06.2017 Hi ! I found a solution for auto opening a camera on widget via js : Code: $("#widget-15 > div").trigger('vclick'); This solution works perfect with quick visualization but not wih user visualisation ! I don't understand why Somebody would have an idea ? Regards JMM RE: Widget and camera - admin - 27.06.2017 You need to bind this event to the object that's opening the widget by using an additional CSS class (myclass): Code: $(function() { RE: Widget and camera - JMM - 27.06.2017 Thank you for the answer Admin ! My code was already bound to an event. Code: // Open widget on KNX command It works perfect with quick visualization but not with user visualization ! JMM. RE: Widget and camera - admin - 27.06.2017 You need to switch to the plan that has your widget first with showPlan(plan_id) RE: Widget and camera - JMM - 27.06.2017 HI, The script here is which works well, it is not certainly very academic.... I does not follow a specialist of the js! JMM. Code: // Init widget and change display and opacity |