parent
43765d8b89
commit
5f3812a368
@ -1,8 +1,8 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": "fa3d2b67.0d5078",
|
"id": "efb1f72f.d56a98",
|
||||||
"type": "worldmap",
|
"type": "worldmap",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"name": "",
|
"name": "",
|
||||||
"lat": "",
|
"lat": "",
|
||||||
"lon": "",
|
"lon": "",
|
||||||
@ -12,14 +12,14 @@
|
|||||||
"maxage": "",
|
"maxage": "",
|
||||||
"usermenu": "hide",
|
"usermenu": "hide",
|
||||||
"panit": "true",
|
"panit": "true",
|
||||||
"x": 770,
|
"x": 505,
|
||||||
"y": 1120,
|
"y": 195,
|
||||||
"wires": []
|
"wires": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "4d3000c1.a4c81",
|
"id": "208a3922.4fc106",
|
||||||
"type": "inject",
|
"type": "inject",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"name": "",
|
"name": "",
|
||||||
"topic": "",
|
"topic": "",
|
||||||
"payload": "",
|
"payload": "",
|
||||||
@ -27,34 +27,35 @@
|
|||||||
"repeat": "",
|
"repeat": "",
|
||||||
"crontab": "",
|
"crontab": "",
|
||||||
"once": false,
|
"once": false,
|
||||||
"x": 410,
|
"onceDelay": "",
|
||||||
"y": 1060,
|
"x": 145,
|
||||||
|
"y": 135,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"31c1899.d3d0b76"
|
"59d2062e.e54db8"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "31c1899.d3d0b76",
|
"id": "59d2062e.e54db8",
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"name": "",
|
"name": "",
|
||||||
"func": "// create random position\nvar lat = 51 + Math.random() * 0.2;\nvar lon = -1.45 + Math.random() * 0.2;\nmsg.payload={lat:lat, lon:lon, name:\"Mike\", icon:\"male\", url:\"<a href=\\\"/red/ui/#/0\\\">IBM link</a>\"};\nreturn msg;",
|
"func": "// create random position\nvar lat = 51 + Math.random() * 0.2;\nvar lon = -1.45 + Math.random() * 0.2;\nmsg.payload={lat:lat, lon:lon, name:\"Mike\", icon:\"male\", url:\"<a href=\\\"../ui/#/0\\\">IBM link</a>\"};\nreturn msg;",
|
||||||
"outputs": 1,
|
"outputs": 1,
|
||||||
"noerr": 0,
|
"noerr": 0,
|
||||||
"x": 590,
|
"x": 325,
|
||||||
"y": 1120,
|
"y": 195,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"fa3d2b67.0d5078"
|
"efb1f72f.d56a98"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "28f4bf19.04c6c",
|
"id": "c7fd20dd.46979",
|
||||||
"type": "inject",
|
"type": "inject",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"name": "",
|
"name": "",
|
||||||
"topic": "",
|
"topic": "",
|
||||||
"payload": "",
|
"payload": "",
|
||||||
@ -63,19 +64,19 @@
|
|||||||
"crontab": "",
|
"crontab": "",
|
||||||
"once": true,
|
"once": true,
|
||||||
"onceDelay": "",
|
"onceDelay": "",
|
||||||
"x": 390,
|
"x": 125,
|
||||||
"y": 1180,
|
"y": 255,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"dd8e0887.5b4888"
|
"f88c9738.621ee8"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ce1dac49.66168",
|
"id": "aa27dc72.3e70a",
|
||||||
"type": "ui_template",
|
"type": "ui_template",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"group": "88c32df0.a0af9",
|
"group": "1c6852f7.95a1ed",
|
||||||
"name": "",
|
"name": "",
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"width": "6",
|
"width": "6",
|
||||||
@ -84,36 +85,36 @@
|
|||||||
"storeOutMessages": true,
|
"storeOutMessages": true,
|
||||||
"fwdInMessages": true,
|
"fwdInMessages": true,
|
||||||
"templateScope": "local",
|
"templateScope": "local",
|
||||||
"x": 760,
|
"x": 495,
|
||||||
"y": 1180,
|
"y": 255,
|
||||||
"wires": [
|
"wires": [
|
||||||
[]
|
[]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "dd8e0887.5b4888",
|
"id": "f88c9738.621ee8",
|
||||||
"type": "template",
|
"type": "template",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"name": "",
|
"name": "",
|
||||||
"field": "payload",
|
"field": "payload",
|
||||||
"fieldType": "msg",
|
"fieldType": "msg",
|
||||||
"format": "handlebars",
|
"format": "handlebars",
|
||||||
"syntax": "mustache",
|
"syntax": "mustache",
|
||||||
"template": "<iframe src=\"/worldmap\" height=300px ></iframe>",
|
"template": "<iframe src=\"../worldmap\" height=300px ></iframe>",
|
||||||
"x": 590,
|
"x": 325,
|
||||||
"y": 1180,
|
"y": 255,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"ce1dac49.66168"
|
"aa27dc72.3e70a"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ef0d9eba.478a5",
|
"id": "bdb72125.35aa9",
|
||||||
"type": "ui_button",
|
"type": "ui_button",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"name": "",
|
"name": "",
|
||||||
"group": "88c32df0.a0af9",
|
"group": "1c6852f7.95a1ed",
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"width": 0,
|
"width": 0,
|
||||||
"height": 0,
|
"height": 0,
|
||||||
@ -123,37 +124,37 @@
|
|||||||
"payload": "",
|
"payload": "",
|
||||||
"payloadType": "str",
|
"payloadType": "str",
|
||||||
"topic": "",
|
"topic": "",
|
||||||
"x": 410,
|
"x": 145,
|
||||||
"y": 1120,
|
"y": 195,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"31c1899.d3d0b76"
|
"59d2062e.e54db8"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "72196d3b.8a5724",
|
"id": "b9813d1d.028ac",
|
||||||
"type": "comment",
|
"type": "comment",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"name": "How to embed Map in Dashboard",
|
"name": "How to embed Map in Dashboard",
|
||||||
"info": "This example shows how to embed the Worldmap \ninto a template node within the `node-red-dashboard`\n\nThe first flow creates a dashboard button that \ngenerates a randon position, with the required \nicon, and passes that to the worldmap. The\nmap is configured to automatically pan to the\nposition of any point that arrives.\n\nThe second flow initialise the dashboard template\nwith the initial map and sets it to a more square shape\nby adjusting the height.",
|
"info": "This example shows how to embed the Worldmap \ninto a template node within the `node-red-dashboard`\n\nThe first flow creates a dashboard button that \ngenerates a randon position, with the required \nicon, and passes that to the worldmap. The\nmap is configured to automatically pan to the\nposition of any point that arrives.\n\nThe second flow initialise the dashboard template\nwith the initial map and sets it to a more square shape\nby adjusting the height.",
|
||||||
"x": 460,
|
"x": 195,
|
||||||
"y": 1000,
|
"y": 75,
|
||||||
"wires": []
|
"wires": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "88c32df0.a0af9",
|
"id": "1c6852f7.95a1ed",
|
||||||
"type": "ui_group",
|
"type": "ui_group",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"name": "Default",
|
"name": "Default",
|
||||||
"tab": "f58bb1b.fd6cc5",
|
"tab": "e4c4803b.93d4",
|
||||||
"disp": true,
|
"disp": true,
|
||||||
"width": "6"
|
"width": "6"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "f58bb1b.fd6cc5",
|
"id": "e4c4803b.93d4",
|
||||||
"type": "ui_tab",
|
"type": "ui_tab",
|
||||||
"z": "dfe4ec36.0a5a5",
|
"z": "46213b15.1d9a74",
|
||||||
"name": "Home",
|
"name": "Home",
|
||||||
"icon": "dashboard"
|
"icon": "dashboard"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user