NEWS
Automatisch auf Cam Seite umschalten bei Ereignis
-
Hallo,
habe ein Touchdisplay an der Wand, auf dem die VIS angezeigt wird. Nun hätte ich gern, das der View von der Haustürcam automatisch und sofort aufgerufen wird, wenn jemand die Türklingel betätigt. Wenn die Klingel betätigt wird, wird ein Eingang der SPS auf 1 gesetzt und das Signal kommt als bei IOBroer an. Ist es nun möglich, egal welchen View das Touchpanel gerade anzeigt auf die CAM umzuschalten ?
Gruss.
ToBo
-
Ist es nun möglich, egal welchen View das Touchpanel gerade anzeigt auf die CAM umzuschalten ? `
Ja ! Du kannst vis mit command ansteuern also mach dir ein script was bei turklingel die gewuenste view in die enstprechende objecte schreibt:
Erst instan, dan view, dan commando (changeview):
https://github.com/ioBroker/ioBroker.vis
` > Commands:
alert - show alert window in vis. "control.data" has following format "message;title;jquery-icon". Title and jquery-icon are optional. Icon names can be found here. To show icon "ui-icon-info" write Message;;info.
changeView - switch to desired view. "control.data" must have name of view. You can specify project name too as "project/view". Default project is "main".
If user changes the view or at start the variables will be filled by vis with
"control.instance": browser instance and ack=true
"control.data": project and view name in form "project/view", e.g. "main/view" (and ack=true)
"control.command": "changedView" and ack=true
You can write the JSON-string or Object into control.command as {instance: 'AABBCCDD', command: 'cmd', data: 'ddd'}. In this case the instance and data will be taken from JSON object. `