In dashboard 2 I am setting the templet node from a incoming msg to display a ifram, this is a Grafana dashboard, it does not display the ifram.
The same flow with a Old dashboard templet node works.
Are there any changes from old dashboard to Dashboard2 to handle ifram of setting the template?
The msg
{"_msgid":"01b538a4af8fd2d7","payload":["10.0.0.11","\n"],"rc":{"code":0},"template":"<iframe src='http://10.0.0.11:3000/d/bbae67aa-afc9-4bbe-aeb8-76339748f1bc/aquaponics-1?orgId=1' th='3500'height='1800' frameborder='0'></iframe>'"}
The flow
[
{
"id": "6564d0b5b467e2fd",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "c3f5a68812aca5d6",
"type": "debug",
"z": "6564d0b5b467e2fd",
"name": "debug 14",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 920,
"y": 300,
"wires": []
},
{
"id": "2f65950e206b0751",
"type": "ui-template",
"z": "6564d0b5b467e2fd",
"group": "3f3131ffec036689",
"dashboard": "2a0aae187070df62",
"page": "2b0f4e6f0f7de505",
"name": "",
"order": 0,
"width": "34",
"height": "14",
"head": "",
"format": "",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 780,
"y": 360,
"wires": [
[]
]
},
{
"id": "9283fc7f8810b080",
"type": "inject",
"z": "6564d0b5b467e2fd",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "30",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 110,
"y": 300,
"wires": [
[
"161bc4b5d6586be4"
]
]
},
{
"id": "161bc4b5d6586be4",
"type": "exec",
"z": "6564d0b5b467e2fd",
"command": "hostname -I",
"addpay": "",
"append": "",
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 270,
"y": 300,
"wires": [
[
"3f17a18435ea04ed"
],
[],
[]
]
},
{
"id": "854edd9f0b30d69f",
"type": "change",
"z": "6564d0b5b467e2fd",
"name": "",
"rules": [
{
"t": "set",
"p": "hostIP",
"pt": "flow",
"to": "payload[0]",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 300,
"wires": [
[
"9630b8c4d1fa11e1"
]
]
},
{
"id": "9630b8c4d1fa11e1",
"type": "function",
"z": "6564d0b5b467e2fd",
"name": "iframe",
"func": "let ip = flow.get(\"hostIP\")\n\n\nmsg.template = \"<iframe src='http://\" + ip + \":3000/d/bbae67aa-afc9-4bbe-aeb8-76339748f1bc/aquaponics-1?orgId=1' th='3500'height='1800' frameborder='0'></iframe>'\"\n\n\nreturn msg;\n\n\n//<iframe src=\"http://10.0.0.7:3000/d-solo/bbae67aa-afc9-4bbe-aeb8-76339748f1bc/aaquaponics-1?orgId=1\" width=\"450\" height=\"200\" frameborder=\"0\"></iframe>\n\n\n//http://10.0.0.7:3000/d/bbae67aa-afc9-4bbe-aeb8-76339748f1bc/aquaponics-1?orgId=1",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 750,
"y": 300,
"wires": [
[
"2f65950e206b0751",
"c3f5a68812aca5d6"
]
]
},
{
"id": "3f17a18435ea04ed",
"type": "function",
"z": "6564d0b5b467e2fd",
"name": "split",
"func": "let a = msg.payload.split(' ')\n\nmsg.payload = a\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 410,
"y": 300,
"wires": [
[
"854edd9f0b30d69f"
]
]
},
{
"id": "3f3131ffec036689",
"type": "ui-group",
"name": "Grafana",
"page": "2b0f4e6f0f7de505",
"width": "36",
"height": "1",
"order": -1,
"disp": true,
"className": ""
},
{
"id": "2a0aae187070df62",
"type": "ui-base",
"name": "1234",
"path": "/dashboard"
},
{
"id": "2b0f4e6f0f7de505",
"type": "ui-page",
"name": "Aqua",
"ui": "2a0aae187070df62",
"path": "/this is it",
"layout": "grid",
"theme": "42a04c91ac70eb75",
"order": -1,
"className": ""
},
{
"id": "42a04c91ac70eb75",
"type": "ui-theme",
"name": "Theme Name",
"colors": {
"surface": "#ffffff",
"primary": "#0094ce",
"bgPage": "#eeeeee",
"groupBg": "#ffffff",
"groupOutline": "#cccccc"
}
}
]