Thank you for the tip. Yes, that gives a lot cleaner and easier to read solution⦠now that I know that capability exists.
I do need to study more of the nodes capabilities. I tend to fall back to hard coding standards and fail to take advantage of these graphical languages.
[
{
"id": "a497176ae03c5310",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "77d9e820a79ab53e",
"name": "Icon 14",
"order": 12,
"width": 3,
"height": 3,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 840,
"y": 1140,
"wires": [
[
"e0efbec229d3b08a"
]
]
},
{
"id": "f6e108499ff02805",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "77d9e820a79ab53e",
"name": "Icon 1",
"order": 14,
"width": 3,
"height": 3,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 850,
"y": 620,
"wires": [
[
"106678610fd26521"
]
]
},
{
"id": "32f9f0655ad7e869",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "77d9e820a79ab53e",
"name": "Icon 2",
"order": 16,
"width": 3,
"height": 3,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 850,
"y": 660,
"wires": [
[
"706a9ef3f3a13c6b"
]
]
},
{
"id": "1d1c534204dd62cf",
"type": "switch",
"z": "7a5397e6f3f6e0e5",
"name": "",
"property": "payload.number",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
},
{
"t": "eq",
"v": "2",
"vt": "num"
},
{
"t": "eq",
"v": "3",
"vt": "num"
},
{
"t": "eq",
"v": "4",
"vt": "num"
},
{
"t": "eq",
"v": "5",
"vt": "num"
},
{
"t": "eq",
"v": "6",
"vt": "num"
},
{
"t": "eq",
"v": "7",
"vt": "num"
},
{
"t": "eq",
"v": "8",
"vt": "num"
},
{
"t": "eq",
"v": "9",
"vt": "num"
},
{
"t": "eq",
"v": "10",
"vt": "num"
},
{
"t": "eq",
"v": "11",
"vt": "num"
},
{
"t": "eq",
"v": "12",
"vt": "num"
},
{
"t": "eq",
"v": "13",
"vt": "num"
},
{
"t": "eq",
"v": "14",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 14,
"x": 650,
"y": 780,
"wires": [
[
"f6e108499ff02805"
],
[
"32f9f0655ad7e869"
],
[
"154bb19b33dd4aa3"
],
[
"63b7304e320323e9"
],
[
"77c8b83eb03d2c4a"
],
[
"b6601b41c2265d31"
],
[
"d078d2ca88b7aea2"
],
[
"d9daefceda765058"
],
[
"e7adae706d10a64e"
],
[
"af2dc6d034e5bbc4"
],
[
"bd7fec81f3348bde"
],
[
"55184d4384911cf5"
],
[
"ef595db4e4d8f1be"
],
[
"a497176ae03c5310"
]
]
},
{
"id": "e0efbec229d3b08a",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "77d9e820a79ab53e",
"order": 13,
"width": 11,
"height": 3,
"name": "Forecast 14",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 1140,
"wires": []
},
{
"id": "106678610fd26521",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "77d9e820a79ab53e",
"order": 15,
"width": 11,
"height": 3,
"name": "Forecast 1",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 620,
"wires": []
},
{
"id": "706a9ef3f3a13c6b",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "77d9e820a79ab53e",
"order": 17,
"width": 11,
"height": 3,
"name": "Forecast 2",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 660,
"wires": []
},
{
"id": "154bb19b33dd4aa3",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 3",
"order": 1,
"width": 3,
"height": 3,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 850,
"y": 700,
"wires": [
[
"b7601a83f8d0c138"
]
]
},
{
"id": "63b7304e320323e9",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 4",
"order": 3,
"width": 3,
"height": 3,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 850,
"y": 740,
"wires": [
[
"083ec3f5b035a41a"
]
]
},
{
"id": "77c8b83eb03d2c4a",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 5",
"order": 5,
"width": 3,
"height": 3,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 850,
"y": 780,
"wires": [
[
"3132130fa9ebb53b"
]
]
},
{
"id": "b6601b41c2265d31",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 6",
"order": 7,
"width": 2,
"height": 2,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 850,
"y": 820,
"wires": [
[
"f4fc5bee3e9d46be"
]
]
},
{
"id": "d078d2ca88b7aea2",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 7",
"order": 9,
"width": 2,
"height": 2,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 850,
"y": 860,
"wires": [
[
"9551ba45e24a16f3"
]
]
},
{
"id": "d9daefceda765058",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 8",
"order": 11,
"width": 2,
"height": 2,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 850,
"y": 900,
"wires": [
[
"dd4b555abf4786bd"
]
]
},
{
"id": "e7adae706d10a64e",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 9",
"order": 13,
"width": 2,
"height": 2,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 850,
"y": 940,
"wires": [
[
"f85f2bdb54b2a303"
]
]
},
{
"id": "b7601a83f8d0c138",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 2,
"width": 11,
"height": 3,
"name": "Forecast 3",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 700,
"wires": []
},
{
"id": "083ec3f5b035a41a",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 4,
"width": 4,
"height": 3,
"name": "Forecast 4",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 740,
"wires": []
},
{
"id": "3132130fa9ebb53b",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 6,
"width": 4,
"height": 3,
"name": "Forecast 5",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 780,
"wires": []
},
{
"id": "f4fc5bee3e9d46be",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 8,
"width": 5,
"height": 2,
"name": "Forecast 6",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 820,
"wires": []
},
{
"id": "9551ba45e24a16f3",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 10,
"width": 5,
"height": 2,
"name": "Forecast 7",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 860,
"wires": []
},
{
"id": "dd4b555abf4786bd",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 12,
"width": 5,
"height": 2,
"name": "Forecast 8",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 900,
"wires": []
},
{
"id": "f85f2bdb54b2a303",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 14,
"width": 5,
"height": 2,
"name": "Forecast 9",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 940,
"wires": []
},
{
"id": "e3053fe028c70aa9",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 16,
"width": 5,
"height": 2,
"name": "Forecast 10",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 980,
"wires": []
},
{
"id": "592b32d2ee42a729",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 18,
"width": 5,
"height": 2,
"name": "Forecast 11",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 1020,
"wires": []
},
{
"id": "af2dc6d034e5bbc4",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 10",
"order": 15,
"width": 2,
"height": 2,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 840,
"y": 980,
"wires": [
[
"e3053fe028c70aa9"
]
]
},
{
"id": "bd7fec81f3348bde",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 11",
"order": 17,
"width": 2,
"height": 2,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 840,
"y": 1020,
"wires": [
[
"592b32d2ee42a729"
]
]
},
{
"id": "56bb5167f165ab2a",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 20,
"width": 5,
"height": 2,
"name": "Forecast 12",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 1060,
"wires": []
},
{
"id": "3c2d906739f2065e",
"type": "ui_text",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"order": 22,
"width": 5,
"height": 2,
"name": "Forecast 13",
"label": "{{msg.payload.detailedForecast}}",
"format": "",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 1010,
"y": 1100,
"wires": []
},
{
"id": "55184d4384911cf5",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 12",
"order": 19,
"width": 2,
"height": 2,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 840,
"y": 1060,
"wires": [
[
"56bb5167f165ab2a"
]
]
},
{
"id": "ef595db4e4d8f1be",
"type": "ui_template",
"z": "7a5397e6f3f6e0e5",
"group": "2f878f18d87c7818",
"name": "Icon 13",
"order": 21,
"width": 2,
"height": 2,
"format": "<img src=\"{{msg.payload.icon}}\" style=\"width: 100%; height: 100%;\">",
"storeOutMessages": false,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 840,
"y": 1100,
"wires": [
[
"3c2d906739f2065e"
]
]
},
{
"id": "528988c185289648",
"type": "inject",
"z": "7a5397e6f3f6e0e5",
"name": "15min",
"props": [],
"repeat": "900",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"x": 100,
"y": 720,
"wires": [
[
"7366b6efcd6c6169",
"2e2e95c5deb53196"
]
]
},
{
"id": "7366b6efcd6c6169",
"type": "http request",
"z": "7a5397e6f3f6e0e5",
"name": "Grid forecast",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://api.weather.gov/gridpoints/GSP/29,65/forecast",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [],
"x": 270,
"y": 720,
"wires": [
[
"a4ccbe6f67bfdcfe"
]
]
},
{
"id": "a4ccbe6f67bfdcfe",
"type": "change",
"z": "7a5397e6f3f6e0e5",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.properties.periods",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 780,
"wires": [
[
"11c52ee41d257c0b"
]
]
},
{
"id": "11c52ee41d257c0b",
"type": "split",
"z": "7a5397e6f3f6e0e5",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"property": "payload",
"x": 510,
"y": 780,
"wires": [
[
"1d1c534204dd62cf"
]
]
},
{
"id": "77d9e820a79ab53e",
"type": "ui_group",
"name": " Tablet",
"tab": "7c7eaf50c20ab7bb",
"order": 2,
"disp": false,
"width": "14",
"collapse": false,
"className": ""
},
{
"id": "2f878f18d87c7818",
"type": "ui_group",
"name": "Tablet 2",
"tab": "44e29057bb6e203e",
"order": 1,
"disp": false,
"width": "14",
"collapse": false,
"className": ""
},
{
"id": "7c7eaf50c20ab7bb",
"type": "ui_tab",
"name": "Weather",
"icon": "dashboard",
"order": 1,
"disabled": false,
"hidden": false
},
{
"id": "44e29057bb6e203e",
"type": "ui_tab",
"name": "Weather 2",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
]