From 59a12590439cf9f0ff0eebf8c01a3f205e558519 Mon Sep 17 00:00:00 2001 From: Tim Oberle Date: Wed, 20 Sep 2023 18:19:52 +0200 Subject: [PATCH] negativeValueXX + custom icon - Add msg.negativeValueXX - Add custom icon --- Fritzfon-smarthome.json | 1531 ++++++++++++++++++++++++--------------- 1 file changed, 936 insertions(+), 595 deletions(-) diff --git a/Fritzfon-smarthome.json b/Fritzfon-smarthome.json index 466efbe..80c2a75 100644 --- a/Fritzfon-smarthome.json +++ b/Fritzfon-smarthome.json @@ -1,9 +1,9 @@ [ { - "id": "9c8ed30fb778bd08", + "id": "32842d881f7f6e29", "type": "subflow", "name": "Fritzfon smarthome image", - "info": "Show power, energy and temperature on a fritzfon\r\n\r\n# Need to be \"http in\" (Get) node originated\r\n- msg.info (string) \r\n- msg.valueXX (number for all features or string) \r\n(1. X=iconNumber 2. X=valueNumber) \r\n\r\n## Override \"Input unit\" per data \r\nmsg.unitXX (string) \r\nexample: msg.unit11 = \"kWh\"\r\n\r\n## Override \"out unit\" per data \r\nmsg.outUnitXX (string) \r\nexample: msg.outUnit11 = \"kWh\" \r\n\r\n## Override label \r\nmsg.labelX (string) \r\nexample: msg.label1 = \"TV\"\r\n\r\n## Override headline \r\nmsg.headlineX (string) \r\nexample: msg.headline2 = \"TV\"\r\n\r\n## color circle \r\nmsg.circleX \r\navailable colors: \r\nblue, green, grey, orange, red, white and yellow \r\nexample: msg.circle1 = \"green\" \r\n\r\n## mini icons\r\nmsg.miniIconX (string) \r\navailable icons: \r\n\"battery\", \"batteryX\", \"batteryFlash\", \"happy\", \"sceptic\", \"sad\", \"warn\", \"signal\", \"signalNoConnection\", \"signal0\" to \"signal4\" \r\n\r\nmsg.miniIconXPercent (number 0-100) \r\n\"battery\", \"batteryX\", \"batteryFlash\" or \"signal\" icon \r\n\r\nmsg.miniIconXDBm (number -100-0) \r\n\"signal\" icon \r\n\r\nmsg.miniIconXColor (string) \r\navailable colors: \r\nred, orange, yellow, greenYellow and green \r\n\"battery\", \"batteryX\" or \"batteryFlash\" icon \r\n# Rounding\r\n## Round modes:\r\nRound = no unnecessary zeros. \r\nTo fixed = add zeros to fit selected decemals.\r\n## Override round mode \r\nmsg.roundModeXX (string) \r\n\"\", \"Round\" or \"To fixed\"\r\nexample: msg.roundMode11 = \"To fixed\" \r\n## Override round decimals\r\nmsg.decimalsXX \r\nexample: msg.decimals11 = 2", + "info": "Show power, energy and temperature on a fritzfon\r\n\r\n# Need to be \"http in\" (Get) node originated\r\nmsg.info (string) \r\nmsg.valueXX (number for all features or string) \r\n(1. X=iconNumber 2. X=valueNumber) \r\n\r\n## Custom icon\r\nmsg.customIconX (file path, URL or base64 string) \r\nX = iconNumber \r\nmsg.customIcon as fallback if msg.customIconX isn't setted \r\n\r\n## Override \"Input unit\" per data \r\nmsg.unitXX (string) \r\nexample: msg.unit11 = \"kWh\"\r\n\r\n## Override \"out unit\" per data \r\nmsg.outUnitXX (string) \r\nexample: msg.outUnit11 = \"kWh\" \r\n\r\n## Override label \r\nmsg.labelX (string) \r\nexample: msg.label1 = \"TV\"\r\n\r\n## Override headline \r\nmsg.headlineX (string) \r\nexample: msg.headline2 = \"TV\"\r\n\r\n## color circle \r\nmsg.circleX \r\navailable colors: \r\nblue, green, grey, orange, red, white and yellow \r\nexample: msg.circle1 = \"green\" \r\n\r\n## mini icons\r\nmsg.miniIconX (string) \r\navailable icons: \r\n\"battery\", \"batteryX\", \"batteryFlash\", \"happy\", \"sceptic\", \"sad\", \"warn\", \"signal\", \"signalNoConnection\", \"signal0\" to \"signal4\" \r\n\r\nmsg.miniIconXPercent (number 0-100) \r\n\"battery\", \"batteryX\", \"batteryFlash\" or \"signal\" icon \r\n\r\nmsg.miniIconXDBm (number -100-0) \r\n\"signal\" icon \r\n\r\nmsg.miniIconXColor (string) \r\navailable colors: \r\nred, orange, yellow, greenYellow and green \r\n\"battery\", \"batteryX\" or \"batteryFlash\" icon \r\n# Rounding\r\n## Round modes:\r\nRound = no unnecessary zeros. \r\nTo fixed = add zeros to fit selected decemals.\r\n## Override round mode \r\nmsg.roundModeXX (string) \r\n\"\", \"Round\" or \"To fixed\"\r\nexample: msg.roundMode11 = \"To fixed\" \r\n## Override round decimals\r\nmsg.decimalsXX \r\nexample: msg.decimals11 = 2\r\n\r\n## Negative input\r\nWhen Positiv and Negative is a seperated var you can easily combine both. \r\nmsg.negativeValueXX (1. X=iconNumber 2. X=valueNumber) ", "category": "image tools", "in": [ { @@ -11,7 +11,7 @@ "y": 1280, "wires": [ { - "id": "f4ecd810ed73063a" + "id": "c5c504899d146639" } ] } @@ -207,6 +207,12 @@ "de": "Solar und Netz zu Haus" }, "v": "SolarGridToHouse" + }, + { + "l": { + "de": "Eigenes" + }, + "v": "Custom" } ] } @@ -320,6 +326,12 @@ "de": "Solar und Netz zu Haus" }, "v": "SolarGridToHouse" + }, + { + "l": { + "de": "Eigenes" + }, + "v": "Custom" } ] } @@ -433,6 +445,12 @@ "de": "Solar und Netz zu Haus" }, "v": "SolarGridToHouse" + }, + { + "l": { + "de": "Eigenes" + }, + "v": "Custom" } ] } @@ -546,6 +564,12 @@ "de": "Solar und Netz zu Haus" }, "v": "SolarGridToHouse" + }, + { + "l": { + "de": "Eigenes" + }, + "v": "Custom" } ] } @@ -4511,7 +4535,7 @@ } ], "meta": { - "version": "0.2.9", + "version": "0.3.4", "author": "Tim Oberle", "desc": "Show power, energy and temperature on a fritzfon", "keywords": "energy,live,image,bild,solar,display,monitor,avm,fritzbox,fritzfon,power,meter,usage,phone,webcam,c5,c6,anzeige,photovoltaik,solaranzeige,gitmacer" @@ -4523,57 +4547,57 @@ "icon": "font-awesome/fa-image" }, { - "id": "5e3c96613217f4f0", + "id": "d3a7a44670ceccbc", "type": "junction", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "x": 3960, "y": 1220, "wires": [ [ - "2353ac6241f06900" + "50c1ed639227c456" ] ] }, { - "id": "23b16d0948c9de96", + "id": "8b4dbe01a0cce232", "type": "junction", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "x": 3980, "y": 600, "wires": [ [ - "80eec1ba521fc179" + "371f87e41acb941a" ] ] }, { - "id": "cb1f21d13ebd334b", + "id": "4e2596dda2b1634c", "type": "junction", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "x": 3700, "y": 2700, "wires": [ [ - "3144406fbfcbfc3e" + "63582bfbc53316bb" ] ] }, { - "id": "4dcbef64d7b186e4", + "id": "fa8b1c22e17e7dbb", "type": "junction", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "x": 4500, "y": 640, "wires": [ [ - "f6d05eeeeef5372b" + "0dac8cf1b83f73fe" ] ] }, { - "id": "67fc468f98450533", + "id": "fb2c3810c6b93125", "type": "inject", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "", "props": [], "repeat": "", @@ -4585,14 +4609,14 @@ "y": 20, "wires": [ [ - "3bb6d429555f3562" + "f8f1ad686b4680aa" ] ] }, { - "id": "84e7bd0eb5e4ee56", + "id": "cdd0095703011dea", "type": "change", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Images to flow", "rules": [ { @@ -4650,9 +4674,9 @@ ] }, { - "id": "b83ea153b1f41f37", + "id": "c77d71cf76f4105f", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Big€", "data": "iVBORw0KGgoAAAANSUhEUgAAABIAAAAZCAMAAAAL146mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADtUExURf///+jo6N7e3vr6+p+fnzw8PAAAABYWFkRERJiYmOLi4kJCQigoKBwcHDc3N46OjrOzs8TExKOjo4KCgiMjI76+vkFBQYSEhKmpqZycnF1dXT4+Pg4ODubm5uDg4E1NTaCgoI+Pj9TU1GdnZ2xsbCEhIVZWVl5eXmBgYGJiYmRkZGVlZcfHx+zs7IeHhxQUFBsbGykpKS0tLSoqKgkJCQUFBa6urt/f37e3t2lpaRUVFQwMDIuLi+/v7xgYGLGxsWFhYbi4uPT09MjIyHl5eQ8PD9nZ2eHh4XBwcG5ubtjY2MLCwrS0tNPT0/Hx8bMl5PUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADRSURBVChTTdFbV4JAGIXhwWxbVGqhpuVZSxPEKLSzpWkesv7/z3Gcb8PyuWHPewGzFmqPlTjgEslDaKmjY56VfbILxinLGZDOZM8vnBzykgrApSxVlEcJuJIVu0a5wklVoMYZqQMNTqPZat8At53uXc91XZM8XkeY1Pf9Ae59MkkL8MAVC/DIJbwwHAKhsCTxxYYkZdttYPS0U5WiPQMvnLFXvHHFHOCdM/IxBhzuyKf+2tekMk18z+Y/bMmy3EKLklosByYEq/0ft/7d/P0rpbbnOxRfxcKyRgAAAABJRU5ErkJggg==", "dataType": "str", @@ -4687,14 +4711,14 @@ "y": 20, "wires": [ [ - "71e4c4604f85216f" + "4e841135432ca787" ] ] }, { - "id": "71e4c4604f85216f", + "id": "4e841135432ca787", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Small€", "data": "iVBORw0KGgoAAAANSUhEUgAAAAkAAAANCAIAAAD0YtNRAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADeSURBVChTTY+tCoRAEIBXuW4SbBb1KRSzgkkw2sQiPoDFh/BZjAYxWcQfMBoEQRCDwSbszTl73n2wu7Pz7ezscpRS8qVpmrIs931XVdXzPAIOCcMQtG3brutqmibLMnNRFAmC0Pc9boFlWZgTRTEIAowfXlVVDcOwbZtlWRBjY8MwYOYcx2nbdl1XSZJQAPM8fxaozbJMURS85x8CdffRH3EcMwdjHEdIFUWBqQf2TtM04RsYPzCX5zmUJknSdd15nnVdp2nKHABa13We5++mxPf9n0Ou65qm6TgOSukbg/TfrpLyJ3YAAAAASUVORK5CYII=", "dataType": "str", @@ -4729,14 +4753,14 @@ "y": 20, "wires": [ [ - "853ce89ef74b189a" + "db0fa85fa59d78f0" ] ] }, { - "id": "3bb6d429555f3562", + "id": "f8f1ad686b4680aa", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "3IconsFrom", "data": "iVBORw0KGgoAAAANSUhEUgAAAA0AAAAUCAMAAABh7EcdAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB7UExURf///+Xl5YiIiHd3d7q6utra2hEREQAAAGlpafr6+nR0dAcHB7e3t9nZ2VhYWGFhYRoaGkxMTGBgYF9fX/Dw8MnJyTc3N1paWo+Pj1lZWWRkZPz8/FxcXGdnZ9HR0e/v7woKCs/Pz7a2ttbW1h8fH3BwcLGxsYyMjOrq6pO5ufsAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAB5SURBVChTVc/ZEoIwDAXQ6wJXqIqIiuyLqPz/F0IltSVPOZNkkgCb7W4PE55P8hCIQnU8nRkJLzEQXA0T/zYzEd750Exnaj8XZswLhyUr3WuYsnbYtG5R9O/sLErmFtlvv92uh9aXra8OVf+yH3kDqd4CoPh8xyUDJsZkCXIPD6iCAAAAAElFTkSuQmCC", "dataType": "str", @@ -4771,14 +4795,14 @@ "y": 20, "wires": [ [ - "258c2104141c93d2" + "8ded119a2c157109" ] ] }, { - "id": "258c2104141c93d2", + "id": "8ded119a2c157109", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "3IconsTo", "data": "iVBORw0KGgoAAAANSUhEUgAAAA0AAAAUCAMAAABh7EcdAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB4UExURf///9nZ2YSEhMjIyPf391BQUAEBAQAAADY2Nvr6+jw8PHp6etra2oqKiqWlpZCQkPz8/BYWFkxMTMnJydjY2BgYGAkJCe/v7xkZGbm5ufj4+BoaGqCgoI+PjwoKCry8vPDw8Hl5eeTk5IyMjEZGRicnJ3Z2dpSUlFyEm1EAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAB8SURBVChTXc/XFoMgDAbgH7UB62jrQK2ru+//hkUMdXAR+A45GXBHeD6/gOBAklTIOFIUJ5Q6nIDzJVuA3EZGUerqD1HrBrjOiNsJ6Ki3GEZzQSkTRKstdtpmbqusO0xzLt1vq995Mkee2vL+ePJGhi8p6c3bmrT08w3wA/lJCCl6VM51AAAAAElFTkSuQmCC", "dataType": "str", @@ -4813,14 +4837,14 @@ "y": 20, "wires": [ [ - "3c17b203d4dd1cf4" + "844ab4e241a84933" ] ] }, { - "id": "993bf3b2debbf415", + "id": "00e2970eae900edf", "type": "inject", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "", "props": [], "repeat": "", @@ -4832,14 +4856,14 @@ "y": 60, "wires": [ [ - "cd1cc693cad3dcba" + "73e58d6180e490e0" ] ] }, { - "id": "cd1cc693cad3dcba", + "id": "73e58d6180e490e0", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "4IconsFrom", "data": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAPCAIAAABSnclZAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADTSURBVChTbVFLDkUwFL15ExEDS8BKPCbSGPjswlosw9BEwkp8yjaEuXdo4/n0JE17e87tOW1pHEff903T9DxvGIbtjk+WZZiKotA0LQzDvu/pCsMwmqaBYlmWOI5t2+667ujcQa7rMsbWdUXxVhBOQ41dcG8FYWClVCDpTguF4zhJkszzjBJecISvpIGyLJE0z3NRIq+u67fuNE1FN87/d7dta1mW2hvJwcH1wcnkj3tHUXRyO41Xq+tayQH0PVBVVRAESHflAJqm6fwxzrncFti2H1cCI9XEe2dxAAAAAElFTkSuQmCC", "dataType": "str", @@ -4874,14 +4898,14 @@ "y": 60, "wires": [ [ - "a7821cf91cf04b71" + "7b9f37cd72e8a4a6" ] ] }, { - "id": "a7821cf91cf04b71", + "id": "7b9f37cd72e8a4a6", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "4IconsTo", "data": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAPCAIAAABSnclZAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADRSURBVChTbVFNDkUwGGzeRsTCEXASj41IF1q3cBbHsLSRcBL/1xD23vR9wqtnkkrHzHydwnYdwzAEQWDbdhiG0zS92A/6vuecG4ZRFAWsWZZd6a7rXNcVQqzrCto0jWVZh3zTtm2L49j3fSXfNDyxxxucxdDlUUMGlGEC5mAayLIsUkrP80hTsmmaaEEkz3P0L8uSKHCkaTLSaZpq6cezHcdp21bJWP/N0QAO1Rz8dCRJQg7t3oSbo67r66sR4ECvKIqqqnp/ocnAOI7nH5vn+QPKSCPVIbZI3wAAAABJRU5ErkJggg==", "dataType": "str", @@ -4916,14 +4940,14 @@ "y": 60, "wires": [ [ - "c3830dfd4d594832" + "07ee122b9ce3728e" ] ] }, { - "id": "08a7bb81422f3d05", + "id": "86251e82ceb1275f", "type": "change", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Images to flow", "rules": [ { @@ -4967,9 +4991,9 @@ ] }, { - "id": "3c17b203d4dd1cf4", + "id": "844ab4e241a84933", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Huge€", "data": "iVBORw0KGgoAAAANSUhEUgAAACMAAAAvCAMAAABexYMQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGGUExURf///7S0tJaWlnl5eVxcXD8/PzAwMEJCQlRUVG1tbZ6ens7Ozt/f34GBgSMjIwAAABUVFWBgYKqqqvb29llZWRwcHI2NjcjIyCsrK+Xl5Zqamjo6OkRERC4uLhcXF7Ozs2pqarm5uff39+Dg4F5eXubm5hkZGc3NzeLi4nd3d01NTWlpaf39/S0tLTQ0NK2trbe3t5KSkiIiInFxcQ0NDZmZmdjY2IqKiicnJykpKS8vLx0dHR4eHh8fHyAgICEhISQkJCUlJXNzc/Hx8cvLyz09PWFhYczMzEFBQUhISIKCgqOjo1tbW1paWhgYGF1dXRYWFpSUlKmpqa+vr7CwsLGxsbKysg4ODlVVVW9vb5ubmywsLLi4uExMTK6urp+fn+/v75CQkDw8PEtLSxsbGxMTE8rKymtrawwMDPz8/L+/v3JycsXFxd3d3fX19dbW1rW1taenp9fX1zs7OwQEBCgoKKSkpFFRUTU1NYeHh9ra2tDQ0JeXl3p6emRkZG5uboyMjLa2tja3+pwAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGrSURBVDhPrZTrVxJRFEcvhIWPZgRBMbFBQMRHJmQaFiGY5rPyUb5SK19oT7MsTUv/c+ccfwHD3Osn9peZfc5edy1YMyPsOJw3XFU3b7mra2oxKaPutqYXqfd4MS/S4MOyiL8RO9AUwMJCM7bMHQx1XWsJtt7FvQdbxsAw1BZmj3ijpKXHtMe4CHbAiXin9ZguTrphBXpwJZycRGFy7lHSC5Fzn48xYHKClLghcjr4mD6YnAQlSYgCNzUPIAr6qXkIkTNAiT4AszH4KBVoHeLG73/8JJ1+mklq2nA2m82hMBtey6h8M/LMZJRmY89LMIcRFGCcmgREQaWaCWomIXampmd8vhfUDEejL01cAHtC9dtfYU9UqokYhuGY5fHc/H8WXr+xP9qL1Fz/xIslapYhClaoWYUoiFOjv4Up4H96DaJgnQ/agClIUZN6B5Pzng/qgin4wNFmHColssXRtuVru7Ob38Mts8+Nrsc+fvr8RYS/fpvNZUy1NOIgfxUR/HIz1kZ8P8S8lLJGiNAPbAr8tDUifPQLS+L38QnmZYz8MU7P/v7rPL/gt1CISyWbT5/rDqAIAAAAAElFTkSuQmCC", "dataType": "str", @@ -5004,14 +5028,14 @@ "y": 20, "wires": [ [ - "b83ea153b1f41f37" + "c77d71cf76f4105f" ] ] }, { - "id": "c3830dfd4d594832", + "id": "07ee122b9ce3728e", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "4IconsLabel", "data": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAMBAMAAACQIoDIAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAADUExURf///6fEG8gAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAANSURBVBjTYxhwwMAAAACEAAGtvXXXAAAAAElFTkSuQmCC", "dataType": "str", @@ -5046,14 +5070,14 @@ "y": 60, "wires": [ [ - "08a7bb81422f3d05" + "86251e82ceb1275f" ] ] }, { - "id": "39ef3745791f7551", + "id": "5a4892c570ae8531", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Blank", "data": "iVBORw0KGgoAAAANSUhEUgAAANIAAADmBAMAAABSXMbKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAADUExURf///6fEG8gAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAvSURBVHja7cExAQAAAMKg9U9tDB8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC4qgFfPAABcWsZnQAAAABJRU5ErkJggg==", "dataType": "str", @@ -5088,18 +5112,23 @@ "y": 1280, "wires": [ [ - "57626b9c14b42dbc" + "4370219ec91b8b19" ] ] }, { - "id": "a082d8631cba47d7", + "id": "94452c539dd78f4c", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "icon", "property": "icon", "propertyType": "msg", "rules": [ + { + "t": "eq", + "v": "Custom", + "vt": "str" + }, { "t": "eq", "v": "NoEntry", @@ -5126,31 +5155,34 @@ ], "checkall": "true", "repair": false, - "outputs": 5, + "outputs": 6, "x": 690, "y": 2200, "wires": [ [ - "97104b378191e09e" + "2c0fc0e0f3190611" ], [ - "4af66b2c2ea967f6" + "82981759665efb73" ], [ - "bb12648298e86b26" + "bfa45aa97fab023a" ], [ - "445a4243cc3fec84" + "76543736c428ef35" ], [ - "2f760141dab35847" + "ed2826aade91026c" + ], + [ + "6a96c020c5230092" ] ] }, { - "id": "805993d5fcc49183", + "id": "d9f8d10818911376", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "iconNumber", "func": "if (msg.iconNumber === undefined) {\n msg.iconNumber = 1;\n}\n\nif (env.get(\"Rows\" + msg.iconNumber.toString()) == \"1\") {\n msg.subCount = 1\n msg.subNumber = 1;\n}\nelse if (env.get(\"Rows\" + msg.iconNumber.toString()) == \"3\" && env.get(\"Value size\") == \"Small\" && env.get(\"Unit size\") == \"Small\") {\n msg.subCount = 3\n msg.subNumber = 1;\n}\nelse if (env.get(\"Rows\" + msg.iconNumber.toString()) == \"3\") {\n node.warn(\"3 Rows only supported with small unit and small value\");\n msg.subCount = 2\n msg.subNumber = 1;\n}\nelse {\n msg.subCount = 2\n msg.subNumber = 1;\n}\n\nreturn msg;", "outputs": 1, @@ -5162,7 +5194,7 @@ "y": 2200, "wires": [ [ - "1a61ee95063b3a91" + "ac0489264e235c2d" ] ], "outputLabels": [ @@ -5170,9 +5202,9 @@ ] }, { - "id": "4af66b2c2ea967f6", + "id": "bfa45aa97fab023a", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Label", "func": "\nif (msg.label?.length >= 2){\n return [null, null, msg];\n}\nelse if (msg.label?.length == 1){\n return [null, msg, null];\n}\nelse{\n return [msg, null, null];\n}", "outputs": 3, @@ -5184,13 +5216,13 @@ "y": 2200, "wires": [ [ - "ad98a78ca2f62e40" + "b1d54841bd2e6130" ], [ - "1cb039b261fd32b4" + "f3fbdfaccef653f5" ], [ - "c489ef80d96a18cf" + "b9902870d3445e11" ] ], "outputLabels": [ @@ -5200,9 +5232,9 @@ ] }, { - "id": "1cb039b261fd32b4", + "id": "f3fbdfaccef653f5", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Label == 1", "data": "payload", "dataType": "msg", @@ -5282,14 +5314,14 @@ "y": 2200, "wires": [ [ - "deb14670a3a3b505" + "68ff6d33d9863b9b" ] ] }, { - "id": "deb14670a3a3b505", + "id": "68ff6d33d9863b9b", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "label", "data": "payload", "dataType": "msg", @@ -5376,14 +5408,14 @@ "y": 2200, "wires": [ [ - "ad98a78ca2f62e40" + "b1d54841bd2e6130" ] ] }, { - "id": "4fefe11ff07f92b7", + "id": "c86f12dfb4583b58", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "label", "data": "payload", "dataType": "msg", @@ -5470,14 +5502,14 @@ "y": 2240, "wires": [ [ - "ad98a78ca2f62e40" + "b1d54841bd2e6130" ] ] }, { - "id": "c489ef80d96a18cf", + "id": "b9902870d3445e11", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Label >=2", "data": "payload", "dataType": "msg", @@ -5557,14 +5589,14 @@ "y": 2240, "wires": [ [ - "4fefe11ff07f92b7" + "c86f12dfb4583b58" ] ] }, { - "id": "c33c175c4dda818b", + "id": "8796acaf8472c664", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit size", "property": "Unit size", "propertyType": "env", @@ -5587,17 +5619,17 @@ "y": 2180, "wires": [ [ - "0886b754267033d6" + "bbfd4ae869a7ee4c" ], [ - "63c6692e178de328" + "df8d99649fafdd52" ] ] }, { - "id": "0886b754267033d6", + "id": "bbfd4ae869a7ee4c", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit", "property": "unitTemp", "propertyType": "msg", @@ -5623,20 +5655,20 @@ "y": 2180, "wires": [ [ - "db3d32f53414346f" + "e57f3247a11b762f" ], [ - "33c399c46e25f590" + "9126a8b591580b95" ], [ - "7ec6fe50a4a00f66" + "8eb9f00a7d584652" ] ] }, { - "id": "7ec6fe50a4a00f66", + "id": "8eb9f00a7d584652", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Add unit", "func": "msg.valueTemp = msg.valueTemp + msg.unitTemp;\nreturn msg;", "outputs": 1, @@ -5648,7 +5680,7 @@ "y": 2220, "wires": [ [ - "4d8fd473c210c1b6" + "f473a69aea0e1756" ] ], "outputLabels": [ @@ -5656,9 +5688,9 @@ ] }, { - "id": "db3d32f53414346f", + "id": "e57f3247a11b762f", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -5745,14 +5777,14 @@ "y": 2140, "wires": [ [ - "b353aed04fd64894" + "59a952c51771cad4" ] ] }, { - "id": "b353aed04fd64894", + "id": "59a952c51771cad4", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Big€", "data": "payload", "dataType": "msg", @@ -5832,14 +5864,14 @@ "y": 2140, "wires": [ [ - "d9388c428e44fa2d" + "5267fb4c1edcf24e" ] ] }, { - "id": "4d8fd473c210c1b6", + "id": "f473a69aea0e1756", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -5926,14 +5958,14 @@ "y": 2220, "wires": [ [ - "d9388c428e44fa2d" + "5267fb4c1edcf24e" ] ] }, { - "id": "33c399c46e25f590", + "id": "9126a8b591580b95", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "T(€)", "func": "msg.valueTemp = msg.valueTemp + \"T\";\nreturn msg;", "outputs": 1, @@ -5945,7 +5977,7 @@ "y": 2180, "wires": [ [ - "db3d32f53414346f" + "e57f3247a11b762f" ] ], "outputLabels": [ @@ -5953,9 +5985,9 @@ ] }, { - "id": "1a61ee95063b3a91", + "id": "ac0489264e235c2d", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "y 1.", "func": "var spacing = 52;\n\nvar labelBaseY = 56;\nvar labelTextBaseY = 54;\n\nvar headlineBaseY = 13;\n\nvar circleBaseY = 56;\nvar miniIconBaseY = 28;\n\nvar defaultIconBaseY = 28; //For 40x40 icons\nvar heatPumpIconBaseY = 33;\nvar solarIconBaseY = 30;\n\nvar fromIconBaseY = 28;\nvar toIconBaseY = 53;\n\nmsg.icon = env.get(msg.iconNumber.toString() + \". icon\");\nif (msg.icon == \"HeatPump\") {\n msg.yIcon = heatPumpIconBaseY + (spacing * (msg.iconNumber - 1));\n}\nelse if (msg.icon == \"Solar\") {\n msg.yIcon = solarIconBaseY + (spacing * (msg.iconNumber - 1));\n}\nelse{\n msg.yIcon = defaultIconBaseY + (spacing * (msg.iconNumber - 1));\n msg.yFromIcon = fromIconBaseY + (spacing * (msg.iconNumber - 1));\n msg.yToIcon = toIconBaseY + (spacing * (msg.iconNumber - 1));\n}\n\nmsg.yLabel = labelBaseY + (spacing * (msg.iconNumber - 1));\nmsg.yLabelText = labelTextBaseY + (spacing * (msg.iconNumber - 1));\n\nmsg.yHeadline = headlineBaseY + (spacing * (msg.iconNumber - 1));\n\nmsg.yCircle = circleBaseY + (spacing * (msg.iconNumber - 1));\nmsg.yMiniIcon = miniIconBaseY + (spacing * (msg.iconNumber - 1));\n\nreturn msg;", "outputs": 1, @@ -5967,14 +5999,14 @@ "y": 2200, "wires": [ [ - "572a8ee6afcc489a" + "a24f416150c8a5fc" ] ] }, { - "id": "d374a59e8a6c2f75", + "id": "4e2c26ead115b1e1", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Is string? + clock", "func": "if (typeof msg.info != 'string') { \n var locale = \"lookup\";\n if (env.get(\"Clock locale\").length !== 0) {\n locale = env.get(\"Clock locale\");\n }\n \n var weekday = new Date().toLocaleString(locale, { weekday: \"short\" })\n var dateTime = new Date().toLocaleString(locale, { dateStyle: \"short\", timeStyle: env.get(\"Clock time\") }); \n\n if (env.get(\"Clock weekday\") == \"noDayName\"){\n msg.info = dateTime;\n }\n else {\n msg.info = weekday + \" \" + dateTime;\n }\n}\n\nif (typeof msg.value11 != 'string') { msg.value11 = \"-\"; }\nif (typeof msg.value12 != 'string') { msg.value12 = \"-\"; }\nif (typeof msg.value13 != 'string') { msg.value13 = \"-\"; }\n\nif (typeof msg.value21 != 'string') { msg.value21 = \"-\"; }\nif (typeof msg.value22 != 'string') { msg.value22 = \"-\"; }\nif (typeof msg.value23 != 'string') { msg.value23 = \"-\"; }\n\nif (typeof msg.value31 != 'string') { msg.value31 = \"-\"; }\nif (typeof msg.value32 != 'string') { msg.value32 = \"-\"; }\nif (typeof msg.value33 != 'string') { msg.value33 = \"-\"; }\n\nif (typeof msg.value41 != 'string') { msg.value41 = \"-\"; }\nif (typeof msg.value42 != 'string') { msg.value42 = \"-\"; }\nif (typeof msg.value43 != 'string') { msg.value43 = \"-\"; }\nreturn msg;", "outputs": 1, @@ -5982,18 +6014,18 @@ "initialize": "", "finalize": "", "libs": [], - "x": 1250, + "x": 1490, "y": 1280, "wires": [ [ - "97c70253fbd8ded1" + "fc1b601b7a157275" ] ] }, { - "id": "0dbd01a1e3e46319", + "id": "6708c69c2edea033", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "OutUnit", "func": "if (msg.outUnit1 !== undefined && msg.outUnit11 === undefined) { msg.outUnit11 = msg.outUnit1; delete msg.outUnit1; }\nif (msg.outUnit2 !== undefined && msg.outUnit21 === undefined) { msg.outUnit21 = msg.outUnit2; delete msg.outUnit2; }\nif (msg.outUnit3 !== undefined && msg.outUnit31 === undefined) { msg.outUnit31 = msg.outUnit3; delete msg.outUnit3; }\nif (msg.outUnit4 !== undefined && msg.outUnit41 === undefined) { msg.outUnit41 = msg.outUnit4; delete msg.outUnit4; }\n\nif (env.get(\"OutUnit11\") !== \"Default\" && msg.outUnit11 === undefined) { msg.outUnit11 = env.get(\"OutUnit11\"); }\nif (env.get(\"OutUnit12\") !== \"Default\" && msg.outUnit12 === undefined) { msg.outUnit12 = env.get(\"OutUnit12\"); }\nif (env.get(\"OutUnit13\") !== \"Default\" && msg.outUnit13 === undefined) { msg.outUnit13 = env.get(\"OutUnit13\"); }\n\nif (env.get(\"OutUnit21\") !== \"Default\" && msg.outUnit21 === undefined) { msg.outUnit21 = env.get(\"OutUnit21\"); }\nif (env.get(\"OutUnit22\") !== \"Default\" && msg.outUnit22 === undefined) { msg.outUnit22 = env.get(\"OutUnit22\"); }\nif (env.get(\"OutUnit23\") !== \"Default\" && msg.outUnit23 === undefined) { msg.outUnit23 = env.get(\"OutUnit23\"); }\n\nif (env.get(\"OutUnit31\") !== \"Default\" && msg.outUnit31 === undefined) { msg.outUnit31 = env.get(\"OutUnit31\"); }\nif (env.get(\"OutUnit32\") !== \"Default\" && msg.outUnit32 === undefined) { msg.outUnit32 = env.get(\"OutUnit32\"); }\nif (env.get(\"OutUnit33\") !== \"Default\" && msg.outUnit33 === undefined) { msg.outUnit32 = env.get(\"OutUnit33\"); }\n\nif (env.get(\"OutUnit41\") !== \"Default\" && msg.outUnit41 === undefined) { msg.outUnit41 = env.get(\"OutUnit41\"); }\nif (env.get(\"OutUnit42\") !== \"Default\" && msg.outUnit42 === undefined) { msg.outUnit42 = env.get(\"OutUnit42\"); }\nif (env.get(\"OutUnit43\") !== \"Default\" && msg.outUnit43 === undefined) { msg.outUnit43 = env.get(\"OutUnit43\"); }\n\nvar defaultUnit = env.get(\"Default out unit\");\nif (msg.outUnit11 === undefined) { msg.outUnit11 = defaultUnit; }\nif (msg.outUnit12 === undefined) { msg.outUnit12 = defaultUnit; }\nif (msg.outUnit13 === undefined) { msg.outUnit13 = defaultUnit; }\n\nif (msg.outUnit21 === undefined) { msg.outUnit21 = defaultUnit; }\nif (msg.outUnit22 === undefined) { msg.outUnit22 = defaultUnit; }\nif (msg.outUnit23 === undefined) { msg.outUnit23 = defaultUnit; }\n\nif (msg.outUnit31 === undefined) { msg.outUnit31 = defaultUnit; }\nif (msg.outUnit32 === undefined) { msg.outUnit32 = defaultUnit; }\nif (msg.outUnit33 === undefined) { msg.outUnit33 = defaultUnit; }\n\nif (msg.outUnit41 === undefined) { msg.outUnit41 = defaultUnit; }\nif (msg.outUnit42 === undefined) { msg.outUnit42 = defaultUnit; }\nif (msg.outUnit43 === undefined) { msg.outUnit43 = defaultUnit; }\n\nreturn msg;", "outputs": 1, @@ -6001,37 +6033,37 @@ "initialize": "", "finalize": "", "libs": [], - "x": 620, + "x": 860, "y": 1280, "wires": [ [ - "69bb69d7f3b21d53" + "78c04f856a4c66c8" ] ] }, { - "id": "57626b9c14b42dbc", + "id": "4370219ec91b8b19", "type": "function", - "z": "9c8ed30fb778bd08", - "name": "value1-4", - "func": "if (msg.value1 !== undefined) { msg.value11 = msg.value1; delete msg.value1; }\nif (msg.value2 !== undefined) { msg.value21 = msg.value2; delete msg.value2; }\nif (msg.value3 !== undefined) { msg.value31 = msg.value3; delete msg.value3; }\nif (msg.value4 !== undefined) { msg.value41 = msg.value4; delete msg.value4; }\n\nreturn msg;", + "z": "32842d881f7f6e29", + "name": "(negative)value1-4", + "func": "if (msg.value11 == undefined) { msg.value11 = msg.value1; delete msg.value1; }\nif (msg.value21 == undefined) { msg.value21 = msg.value2; delete msg.value2; }\nif (msg.value31 == undefined) { msg.value31 = msg.value3; delete msg.value3; }\nif (msg.value41 == undefined) { msg.value41 = msg.value4; delete msg.value4; }\n\nif (msg.negativeValue11 == undefined) { msg.negativeValue11 = msg.negativeValue1; delete msg.negativeValue1; }\nif (msg.negativeValue21 == undefined) { msg.negativeValue21 = msg.negativeValue2; delete msg.negativeValue2; }\nif (msg.negativeValue31 == undefined) { msg.negativeValue31 = msg.negativeValue3; delete msg.negativeValue3; }\nif (msg.negativeValue41 == undefined) { msg.negativeValue41 = msg.negativeValue4; delete msg.negativeValue4; }\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], - "x": 360, + "x": 390, "y": 1280, "wires": [ [ - "8a80e1a6e47395da" + "3f72d43feb0e54c8" ] ] }, { - "id": "bb12648298e86b26", + "id": "76543736c428ef35", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "4IconsFromBatt", "data": "payload", "dataType": "msg", @@ -6111,14 +6143,14 @@ "y": 2160, "wires": [ [ - "8b24f03a3efdb918" + "9a0a46b26f5de90f" ] ] }, { - "id": "8b24f03a3efdb918", + "id": "9a0a46b26f5de90f", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "4IconsToBatt", "data": "payload", "dataType": "msg", @@ -6198,14 +6230,14 @@ "y": 2160, "wires": [ [ - "2f760141dab35847" + "6a96c020c5230092" ] ] }, { - "id": "445a4243cc3fec84", + "id": "ed2826aade91026c", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "4IconsFrom", "data": "payload", "dataType": "msg", @@ -6285,14 +6317,14 @@ "y": 2200, "wires": [ [ - "4796c2b7ed99774a" + "711cd3b8aeb08f75" ] ] }, { - "id": "4796c2b7ed99774a", + "id": "711cd3b8aeb08f75", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "4IconsTo", "data": "payload", "dataType": "msg", @@ -6372,14 +6404,14 @@ "y": 2200, "wires": [ [ - "2f760141dab35847" + "6a96c020c5230092" ] ] }, { - "id": "97c70253fbd8ded1", + "id": "fc1b601b7a157275", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "", "property": "Layout", "propertyType": "env", @@ -6396,21 +6428,21 @@ "checkall": "true", "repair": false, "outputs": 2, - "x": 1410, + "x": 1650, "y": 1280, "wires": [ [ - "f7010be8cd5175fd" + "9ec1db2c777d4520" ], [ - "805993d5fcc49183" + "d9f8d10818911376" ] ] }, { - "id": "f7010be8cd5175fd", + "id": "9ec1db2c777d4520", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "iconNumber", "func": "if (msg.iconNumber === undefined) {\n msg.iconNumber = 1;\n}\n\nif (env.get(\"Rows\" + msg.iconNumber.toString()) == \"1\") {\n msg.subCount = 1\n msg.subNumber = 1;\n}\nelse if (env.get(\"Rows\" + msg.iconNumber.toString()) == \"3\" && env.get(\"Value size\") == \"Small\" && env.get(\"Unit size\") == \"Small\"){\n msg.subCount = 3\n msg.subNumber = 1;\n}\nelse if (env.get(\"Rows\" + msg.iconNumber.toString()) == \"3\"){\n node.warn(\"3 Rows only supported with small unit and small value\");\n msg.subCount = 2\n msg.subNumber = 1;\n}\nelse{\n msg.subCount = 2\n msg.subNumber = 1;\n}\n\nreturn msg;", "outputs": 1, @@ -6422,7 +6454,7 @@ "y": 740, "wires": [ [ - "514aceef68378d63" + "b9ae5bbafd89c8ef" ] ], "outputLabels": [ @@ -6430,9 +6462,9 @@ ] }, { - "id": "514aceef68378d63", + "id": "b9ae5bbafd89c8ef", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "y 1.", "func": "var spacing = 70;\n\nvar labelBaseY = 72;\nvar labelTextBaseY = 70;\n\nvar headlineBaseY = 11;\n\nvar circleBaseY = 71;\nvar miniIconBaseY = 26;\n\nvar heatPumpIconBaseY = 32;\nvar solarIconBaseY = 29;\n\nvar defaultIconBaseY = 26; //For 58x58 icons\n\nvar fromIconBaseY = 30; //27 == even\nvar toIconBaseY = 60; //63 == even\n\nmsg.icon = env.get(msg.iconNumber.toString() + \". icon\");\nif (msg.icon == \"HeatPump\") {\n msg.yIcon = heatPumpIconBaseY + (spacing * (msg.iconNumber - 1));\n}\nelse if (msg.icon == \"Solar\") {\n msg.yIcon = solarIconBaseY + (spacing * (msg.iconNumber - 1));\n}\nelse{\n msg.yIcon = defaultIconBaseY + (spacing * (msg.iconNumber - 1));\n msg.yFromIcon = fromIconBaseY + (spacing * (msg.iconNumber - 1));\n msg.yToIcon = toIconBaseY + (spacing * (msg.iconNumber - 1));\n}\n\nmsg.yLabel = labelBaseY + (spacing * (msg.iconNumber - 1));\nmsg.yLabelText = labelTextBaseY + (spacing * (msg.iconNumber - 1));\n\nmsg.yHeadline = headlineBaseY + (spacing * (msg.iconNumber - 1));\n\nmsg.yCircle = circleBaseY + (spacing * (msg.iconNumber - 1));\nmsg.yMiniIcon = miniIconBaseY + (spacing * (msg.iconNumber - 1));\n\nreturn msg;", "outputs": 1, @@ -6444,18 +6476,23 @@ "y": 740, "wires": [ [ - "13dd14da2b66fbf2" + "75e8bafaa7de2fbe" ] ] }, { - "id": "5b88893408be01a0", + "id": "a5b491df2c6a5ca1", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "icon", "property": "icon", "propertyType": "msg", "rules": [ + { + "t": "eq", + "v": "Custom", + "vt": "str" + }, { "t": "eq", "v": "NoEntry", @@ -6482,31 +6519,34 @@ ], "checkall": "true", "repair": false, - "outputs": 5, + "outputs": 6, "x": 670, "y": 740, "wires": [ [ - "4dcbef64d7b186e4" + "1b24c04ed19dfbb5" + ], + [ + "fa8b1c22e17e7dbb" ], [ - "56d3ba254d1a348b" + "9a45648fafaf341a" ], [ - "c37bbc330cb48c88" + "a0b2482b242b863f" ], [ - "51da4c98ab0297ff" + "abf9be1dd80c020f" ], [ - "68e4502dc78632de" + "ec97e9b1b4bd47d4" ] ] }, { - "id": "56d3ba254d1a348b", + "id": "9a45648fafaf341a", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Label", "func": "if (msg.label?.length >= 3) {\n return [null, null, null , msg];\n}\nelse if (msg.label?.length >= 2){\n return [null, null, msg, null];\n}\nelse if (msg.label?.length == 1){\n return [null, msg, null, null];\n}\nelse{\n return [msg, null, null, null];\n}", "outputs": 4, @@ -6518,16 +6558,16 @@ "y": 740, "wires": [ [ - "ec887324bfc26401" + "b97a05365e326ea7" ], [ - "6e557edda0472fb1" + "eb7e3a08b0cd399d" ], [ - "2b1d48043b18bcaa" + "e3fcd50d7f0c6cd7" ], [ - "1c9bce8d294e9d60" + "3420f8bf3199bac7" ] ], "outputLabels": [ @@ -6538,9 +6578,9 @@ ] }, { - "id": "6e557edda0472fb1", + "id": "eb7e3a08b0cd399d", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Label == 1", "data": "payload", "dataType": "msg", @@ -6620,14 +6660,14 @@ "y": 740, "wires": [ [ - "8a71bbb8b5bf4bcc" + "53f9d66daea77b68" ] ] }, { - "id": "8a71bbb8b5bf4bcc", + "id": "53f9d66daea77b68", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "label", "data": "payload", "dataType": "msg", @@ -6714,14 +6754,14 @@ "y": 740, "wires": [ [ - "ec887324bfc26401" + "b97a05365e326ea7" ] ] }, { - "id": "cbd95765adf86614", + "id": "b5945d0cc0914d23", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "label", "data": "payload", "dataType": "msg", @@ -6808,14 +6848,14 @@ "y": 780, "wires": [ [ - "ec887324bfc26401" + "b97a05365e326ea7" ] ] }, { - "id": "2b1d48043b18bcaa", + "id": "e3fcd50d7f0c6cd7", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Label >=2", "data": "payload", "dataType": "msg", @@ -6895,14 +6935,14 @@ "y": 780, "wires": [ [ - "cbd95765adf86614" + "b5945d0cc0914d23" ] ] }, { - "id": "5c4a8fdf2a27f1eb", + "id": "b4e6ccd8872694bc", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit size", "property": "Unit size", "propertyType": "env", @@ -6925,17 +6965,17 @@ "y": 720, "wires": [ [ - "021613b4f789af31" + "2d891aa2ddf3a6f8" ], [ - "e115cf5ba031508f" + "8fd73004356eeac9" ] ] }, { - "id": "021613b4f789af31", + "id": "2d891aa2ddf3a6f8", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit", "property": "unitTemp", "propertyType": "msg", @@ -6961,20 +7001,20 @@ "y": 720, "wires": [ [ - "727d603262328055" + "f9d91ce014694be2" ], [ - "3ba15c2852bf4b91" + "cb28bdbf0234819e" ], [ - "2e81bd54d86a423c" + "8f2773ed4e47f0f1" ] ] }, { - "id": "2e81bd54d86a423c", + "id": "8f2773ed4e47f0f1", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Add unit", "func": "msg.valueTemp = msg.valueTemp + msg.unitTemp;\nreturn msg;", "outputs": 1, @@ -6986,7 +7026,7 @@ "y": 760, "wires": [ [ - "abdf55e49348949a" + "8e8ab7768094f233" ] ], "outputLabels": [ @@ -6994,9 +7034,9 @@ ] }, { - "id": "727d603262328055", + "id": "f9d91ce014694be2", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -7083,14 +7123,14 @@ "y": 680, "wires": [ [ - "a539fd382552b596" + "4d3a789dc3bb0b90" ] ] }, { - "id": "a539fd382552b596", + "id": "4d3a789dc3bb0b90", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Big€", "data": "payload", "dataType": "msg", @@ -7170,14 +7210,14 @@ "y": 680, "wires": [ [ - "ffed084d7942ed0a" + "cb1c74976b153318" ] ] }, { - "id": "abdf55e49348949a", + "id": "8e8ab7768094f233", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -7264,14 +7304,14 @@ "y": 760, "wires": [ [ - "ffed084d7942ed0a" + "cb1c74976b153318" ] ] }, { - "id": "3ba15c2852bf4b91", + "id": "cb28bdbf0234819e", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "T(€)", "func": "msg.valueTemp = msg.valueTemp + \"T\";\nreturn msg;", "outputs": 1, @@ -7283,7 +7323,7 @@ "y": 720, "wires": [ [ - "727d603262328055" + "f9d91ce014694be2" ] ], "outputLabels": [ @@ -7291,9 +7331,9 @@ ] }, { - "id": "853ce89ef74b189a", + "id": "db0fa85fa59d78f0", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "3IconsLabel", "data": "iVBORw0KGgoAAAANSUhEUgAAAB0AAAAMBAMAAABsN6sCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAADUExURf///6fEG8gAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAANSURBVBjTYxjSgIEBAADAAAEQwZUkAAAAAElFTkSuQmCC", "dataType": "str", @@ -7328,14 +7368,14 @@ "y": 20, "wires": [ [ - "84e7bd0eb5e4ee56" + "cdd0095703011dea" ] ] }, { - "id": "1c9bce8d294e9d60", + "id": "3420f8bf3199bac7", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Label >=3", "data": "payload", "dataType": "msg", @@ -7415,14 +7455,14 @@ "y": 820, "wires": [ [ - "3ba8119c995ea792" + "41fa8b86ced0b7f5" ] ] }, { - "id": "3ba8119c995ea792", + "id": "41fa8b86ced0b7f5", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "label", "data": "payload", "dataType": "msg", @@ -7509,14 +7549,14 @@ "y": 820, "wires": [ [ - "ec887324bfc26401" + "b97a05365e326ea7" ] ] }, { - "id": "c37bbc330cb48c88", + "id": "a0b2482b242b863f", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "3IconsFromBattery", "data": "payload", "dataType": "msg", @@ -7592,18 +7632,18 @@ } ] }, - "x": 850, - "y": 700, + "x": 870, + "y": 720, "wires": [ [ - "211d19bfc41606a0" + "63d5a30ce25be884" ] ] }, { - "id": "211d19bfc41606a0", + "id": "63d5a30ce25be884", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "3IconsToBattery", "data": "payload", "dataType": "msg", @@ -7679,18 +7719,18 @@ } ] }, - "x": 1040, - "y": 700, + "x": 1060, + "y": 720, "wires": [ [ - "68e4502dc78632de" + "ec97e9b1b4bd47d4" ] ] }, { - "id": "51da4c98ab0297ff", + "id": "abf9be1dd80c020f", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "3IconsFromGrid", "data": "payload", "dataType": "msg", @@ -7766,18 +7806,18 @@ } ] }, - "x": 840, - "y": 740, + "x": 860, + "y": 760, "wires": [ [ - "666f03b88ac5acaa" + "c34ef4b625a28e0a" ] ] }, { - "id": "666f03b88ac5acaa", + "id": "c34ef4b625a28e0a", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "3IconsToGrid", "data": "payload", "dataType": "msg", @@ -7853,18 +7893,18 @@ } ] }, - "x": 1010, - "y": 740, + "x": 1030, + "y": 760, "wires": [ [ - "68e4502dc78632de" + "ec97e9b1b4bd47d4" ] ] }, { - "id": "fee83ea36dde3c43", + "id": "50b8183c7ce2191b", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "number to string", "func": "var fractionSymbol = env.get(\"Fraction symbol\")\nif (fractionSymbol == \"Auto\") {\n var numLocale = \"lookup\";\n}\nelse if (fractionSymbol == \"Comma\") {\n var numLocale = \"de\";\n}\nelse {\n var numLocale = \"en\";\n}\n\nvar defaultRoundMode = env.get(\"Default round mode\");\nvar defaultDecimals = env.get(\"Default decimals\");\n\nfor (let i = 1; i <= 4; i++) {\n for (let i2 = 1; i2 <= 3; i2++) {\n if (eval(\"msg.roundMode\" + i + i2) === undefined) { \n eval('msg.roundMode' + i + i2 +' = env.get(\"Round mode \" + i + i2);');\n }\n\n if (eval('msg.roundMode' + i + i2) == \"Default\") {\n eval('msg.roundMode' + i + i2 + ' = defaultRoundMode;');\n }\n\n if (eval(\"msg.decimals\" + i + i2) === undefined) { \n eval('msg.decimals' + i + i2 + ' = env.get(\"Decimals \" + i + i2);');\n }\n\n if (eval(\"msg.decimals\" + i + i2) < 0){\n eval(\"msg.decimals\" + i + i2 + \" = defaultDecimals;\");\n }\n\n let roundMode = eval(\"msg.roundMode\" + i + i2)\n\n if (Number.isFinite(eval(\"msg.value\" + i + i2))) {\n if (roundMode == \"Round\") {\n eval(\"msg.value\" + i + i2 + \" = msg.value\" + i + i2 + \".toLocaleString(numLocale, { useGrouping: false, maximumFractionDigits: msg.decimals\" + i + i2 + \" });\");\n }\n else if (roundMode == \"To fixed\") {\n eval(\"msg.value\" + i + i2 + \" = msg.value\" + i + i2 + \".toLocaleString(numLocale, { useGrouping: false, minimumFractionDigits: msg.decimals\" + i + i2 + \", maximumFractionDigits: msg.decimals\"+ i + i2 + \" });\");\n }\n else {\n eval(\"msg.value\" + i + i2 + \" = msg.value\" + i + i2 + \".toLocaleString(numLocale, { useGrouping: false });\");\n }\n }\n\n }\n}\nreturn msg;", "outputs": 1, @@ -7872,18 +7912,18 @@ "initialize": "", "finalize": "", "libs": [], - "x": 1060, + "x": 1300, "y": 1280, "wires": [ [ - "d374a59e8a6c2f75" + "4e2c26ead115b1e1" ] ] }, { - "id": "c76ae7901c418b73", + "id": "25fc8e8d2304f060", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "unit convert", "func": "for (let i = 1; i <= 4; i++) {\n for (let i2 = 1; i2 <= 3; i2++) {\n if (Number.isFinite(eval(\"msg.value\" + i + i2))) {\n let valueBefore = eval(\"msg.value\" + i + i2);\n let unit = eval(\"msg.unit\" + i + i2);\n let outUnit = eval(\"msg.outUnit\" + i + i2);\n\n let converted = unitConvert(valueBefore, unit, outUnit);\n\n if (converted != valueBefore && converted !== undefined) {\n eval(\"msg.value\" + i + i2 + \" = converted\");\n eval(\"msg.unit\" + i + i2 + \" = outUnit\");\n }\n }\n }\n}\nreturn msg;\n\nfunction unitConvert(num, inputUnit, outputUnit) {\n if (inputUnit == outputUnit) { return num; }\n \n else if (inputUnit == \"0-1%\") {\n if (outputUnit == \"%\") { return num * 100; }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n\n else if (inputUnit == \"W\") {\n if (outputUnit == \"kW\") { return powerOfTen(num, -3); }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n else if (inputUnit == \"kW\") {\n if (outputUnit == \"W\") { return powerOfTen(num, 3); }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n\n else if (inputUnit == \"Wmin\") {\n num /= 60;\n if (outputUnit == \"Wh\") { num; }\n else if (outputUnit == \"kWh\") { return powerOfTen(num, -3); }\n else if (outputUnit == \"MWh\") { return powerOfTen(num, -6); }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n else if (inputUnit == \"Wh\") {\n if (outputUnit == \"kWh\") { return powerOfTen(num, -3); }\n else if (outputUnit == \"MWh\") { return powerOfTen(num, -6); }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n else if (inputUnit == \"kWh\") {\n if (outputUnit == \"Wh\") { return powerOfTen(num, 3); }\n else if (outputUnit == \"MWh\") { return powerOfTen(num, -3); }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n else if (inputUnit == \"MWh\") {\n if (outputUnit == \"Wh\") { return powerOfTen(num, 6); }\n else if (outputUnit == \"kWh\") { return powerOfTen(num, 3); }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n\n else if (inputUnit == \"€\") {\n if (outputUnit == \"T€\") { return powerOfTen(num, -3); }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n else if (inputUnit == \"T€\") {\n if (outputUnit == \"€\") { return powerOfTen(num, 3); }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n\n else if (inputUnit == \"°C\") {\n if (outputUnit == \"°F\") { return num * 1.8 + 32 }\n else if (outputUnit == \"K\") { return num + 273.15 }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n else if (inputUnit == \"°F\") {\n if (outputUnit == \"°C\") { return (num - 32) * 5/9 }\n else if (outputUnit == \"K\") { return (num - 32) * 5/9 + 273.15}\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n else if (inputUnit == \"K\") {\n if (outputUnit == \"°C\") { return num - 273.15 }\n else if (outputUnit == \"°F\") { return (num - 32) * 5/9 }\n else { node.error(\"can't convert \" + inputUnit + \" to \" + outputUnit); }\n }\n}\n\nfunction powerOfTen(num, po10) {\n return +(num + \"e\" + po10);\n}", "outputs": 1, @@ -7891,18 +7931,18 @@ "initialize": "", "finalize": "", "libs": [], - "x": 890, + "x": 1130, "y": 1280, "wires": [ [ - "fee83ea36dde3c43" + "50b8183c7ce2191b" ] ] }, { - "id": "69bb69d7f3b21d53", + "id": "78c04f856a4c66c8", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "inUnit", "func": "if (msg.unit1 !== undefined && msg.unit11 === undefined) { msg.unit11 = msg.unit1; }\nif (msg.unit2 !== undefined && msg.unit21 === undefined) { msg.unit21 = msg.unit2; }\nif (msg.unit3 !== undefined && msg.unit31 === undefined) { msg.unit31 = msg.unit3; }\nif (msg.unit4 !== undefined && msg.unit41 === undefined) { msg.unit41 = msg.unit4; }\n\nif (env.get(\"InUnit11\") !== \"Default\" && msg.unit11 === undefined) { msg.unit11 = env.get(\"InUnit11\"); }\nif (env.get(\"InUnit12\") !== \"Default\" && msg.unit12 === undefined) { msg.unit12 = env.get(\"InUnit12\"); }\nif (env.get(\"InUnit13\") !== \"Default\" && msg.unit13 === undefined) { msg.unit13 = env.get(\"InUnit13\"); }\n\nif (env.get(\"InUnit21\") !== \"Default\" && msg.unit21 === undefined) { msg.unit21 = env.get(\"InUnit21\"); }\nif (env.get(\"InUnit22\") !== \"Default\" && msg.unit22 === undefined) { msg.unit22 = env.get(\"InUnit22\"); }\nif (env.get(\"InUnit23\") !== \"Default\" && msg.unit23 === undefined) { msg.unit23 = env.get(\"InUnit23\"); }\n\nif (env.get(\"InUnit31\") !== \"Default\" && msg.unit31 === undefined) { msg.unit31 = env.get(\"InUnit31\"); }\nif (env.get(\"InUnit32\") !== \"Default\" && msg.unit32 === undefined) { msg.unit32 = env.get(\"InUnit32\"); }\nif (env.get(\"InUnit33\") !== \"Default\" && msg.unit33 === undefined) { msg.unit33 = env.get(\"InUnit33\"); }\n\nif (env.get(\"InUnit41\") !== \"Default\" && msg.unit41 === undefined) { msg.unit41 = env.get(\"InUnit41\"); }\nif (env.get(\"InUnit42\") !== \"Default\" && msg.unit42 === undefined) { msg.unit42 = env.get(\"InUnit42\"); }\nif (env.get(\"InUnit43\") !== \"Default\" && msg.unit43 === undefined) { msg.unit43 = env.get(\"InUnit43\"); }\n\nvar defaultUnit = env.get(\"Default in unit\");\nif (msg.unit11 === undefined) { msg.unit11 = defaultUnit; }\nif (msg.unit12 === undefined) { msg.unit12 = defaultUnit; }\nif (msg.unit13 === undefined) { msg.unit13 = defaultUnit; }\n\nif (msg.unit21 === undefined) { msg.unit21 = defaultUnit; }\nif (msg.unit22 === undefined) { msg.unit22 = defaultUnit; }\nif (msg.unit23 === undefined) { msg.unit23 = defaultUnit; }\n\nif (msg.unit31 === undefined) { msg.unit31 = defaultUnit; }\nif (msg.unit32 === undefined) { msg.unit32 = defaultUnit; }\nif (msg.unit33 === undefined) { msg.unit33 = defaultUnit; }\n\nif (msg.unit41 === undefined) { msg.unit41 = defaultUnit; }\nif (msg.unit42 === undefined) { msg.unit42 = defaultUnit; }\nif (msg.unit43 === undefined) { msg.unit43 = defaultUnit; }\n\n\nif (msg.unit11.length <= 0) { msg.unit11 = msg.outUnit11; }\nif (msg.unit12.length <= 0) { msg.unit12 = msg.outUnit12; }\nif (msg.unit13.length <= 0) { msg.unit13 = msg.outUnit13; }\n\nif (msg.unit21.length <= 0) { msg.unit21 = msg.outUnit21; }\nif (msg.unit22.length <= 0) { msg.unit22 = msg.outUnit22; }\nif (msg.unit23.length <= 0) { msg.unit23 = msg.outUnit23; }\n\nif (msg.unit31.length <= 0) { msg.unit31 = msg.outUnit31; }\nif (msg.unit32.length <= 0) { msg.unit32 = msg.outUnit32; }\nif (msg.unit33.length <= 0) { msg.unit33 = msg.outUnit33; }\n\nif (msg.unit41.length <= 0) { msg.unit41 = msg.outUnit41; }\nif (msg.unit42.length <= 0) { msg.unit42 = msg.outUnit42; }\nif (msg.unit43.length <= 0) { msg.unit43 = msg.outUnit43; }\n\nreturn msg;", "outputs": 1, @@ -7910,18 +7950,18 @@ "initialize": "", "finalize": "", "libs": [], - "x": 750, + "x": 990, "y": 1280, "wires": [ [ - "c76ae7901c418b73" + "25fc8e8d2304f060" ] ] }, { - "id": "13dd14da2b66fbf2", + "id": "75e8bafaa7de2fbe", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "labelText", "func": "msg.label = env.get(msg.iconNumber.toString() + \". icon label\");\n\nif (msg.iconNumber == 1 && typeof msg.label1 == 'string'){\n msg.label = msg.label1;\n}\nelse if (msg.iconNumber == 2 && typeof msg.label2 == 'string'){\n msg.label = msg.label2;\n}\nelse if (msg.iconNumber == 3 && typeof msg.label3 == 'string') {\n msg.label = msg.label3;\n}\nelse if (msg.iconNumber == 4 && typeof msg.label4 == 'string') {\n msg.label = msg.label4;\n}\n\nreturn msg;", "outputs": 1, @@ -7933,14 +7973,14 @@ "y": 740, "wires": [ [ - "f39471e6d049a831" + "46e46438f73383a8" ] ] }, { - "id": "572a8ee6afcc489a", + "id": "a24f416150c8a5fc", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "labelText", "func": "msg.label = env.get(msg.iconNumber.toString() + \". icon label\");\n\nif (msg.iconNumber == 1 && typeof msg.label1 == 'string'){\n msg.label = msg.label1;\n}\nelse if (msg.iconNumber == 2 && typeof msg.label2 == 'string'){\n msg.label = msg.label2;\n}\nelse if (msg.iconNumber == 3 && typeof msg.label3 == 'string') {\n msg.label = msg.label3;\n}\nelse if (msg.iconNumber == 4 && typeof msg.label4 == 'string') {\n msg.label = msg.label4;\n}\n\nreturn msg;", "outputs": 1, @@ -7952,14 +7992,14 @@ "y": 2200, "wires": [ [ - "74d6129f38b338b8" + "63d82f3ce882a65b" ] ] }, { - "id": "a2ebdbb32bcdfde4", + "id": "d49f59a2844b238e", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "headline", "data": "payload", "dataType": "msg", @@ -8046,14 +8086,14 @@ "y": 720, "wires": [ [ - "298039377051edac" + "2285149ee53af6fb" ] ] }, { - "id": "f39471e6d049a831", + "id": "46e46438f73383a8", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "headlineText", "func": "msg.headline = env.get(msg.iconNumber.toString() + \". headline\");\n\nif (msg.iconNumber == 1 && typeof msg.headline1 == 'string') {\n msg.headline = msg.headline1;\n}\nelse if (msg.iconNumber == 2 && typeof msg.headline2 == 'string') {\n msg.headline = msg.headline2;\n}\nelse if (msg.iconNumber == 3 && typeof msg.headline3 == 'string') {\n msg.headline = msg.headline3;\n}\nelse if (msg.iconNumber == 4 && typeof msg.headline4 == 'string') {\n msg.headline = msg.headline4;\n}\n\nreturn msg;", "outputs": 1, @@ -8065,14 +8105,14 @@ "y": 740, "wires": [ [ - "5b88893408be01a0" + "a5b491df2c6a5ca1" ] ] }, { - "id": "84e4f4dabc1131e4", + "id": "21defbfca3ab6948", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "headline", "data": "payload", "dataType": "msg", @@ -8159,14 +8199,14 @@ "y": 2180, "wires": [ [ - "4be09e59bb01dcb7" + "d8762ebb755d34b9" ] ] }, { - "id": "74d6129f38b338b8", + "id": "63d82f3ce882a65b", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "headlineText", "func": "msg.headline = env.get(msg.iconNumber.toString() + \". headline\");\n\nif (msg.iconNumber == 1 && typeof msg.headline1 == 'string') {\n msg.headline = msg.headline1;\n}\nelse if (msg.iconNumber == 2 && typeof msg.headline2 == 'string') {\n msg.headline = msg.headline2;\n}\nelse if (msg.iconNumber == 3 && typeof msg.headline3 == 'string') {\n msg.headline = msg.headline3;\n}\nelse if (msg.iconNumber == 4 && typeof msg.headline4 == 'string') {\n msg.headline = msg.headline4;\n}\n\nreturn msg;", "outputs": 1, @@ -8178,14 +8218,14 @@ "y": 2200, "wires": [ [ - "a082d8631cba47d7" + "94452c539dd78f4c" ] ] }, { - "id": "ad98a78ca2f62e40", + "id": "b1d54841bd2e6130", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "", "property": "Headline", "propertyType": "env", @@ -8208,17 +8248,17 @@ "y": 2180, "wires": [ [ - "84e4f4dabc1131e4" + "21defbfca3ab6948" ], [ - "7e89154e030d811d" + "eff04cabaf70367d" ] ] }, { - "id": "7e89154e030d811d", + "id": "eff04cabaf70367d", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "headline", "data": "payload", "dataType": "msg", @@ -8305,14 +8345,14 @@ "y": 2220, "wires": [ [ - "4be09e59bb01dcb7" + "d8762ebb755d34b9" ] ] }, { - "id": "ec887324bfc26401", + "id": "b97a05365e326ea7", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "", "property": "Headline", "propertyType": "env", @@ -8335,17 +8375,17 @@ "y": 720, "wires": [ [ - "a2ebdbb32bcdfde4" + "d49f59a2844b238e" ], [ - "410b36c8f0431368" + "bfc341600bfffa0e" ] ] }, { - "id": "410b36c8f0431368", + "id": "bfc341600bfffa0e", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "headline", "data": "payload", "dataType": "msg", @@ -8432,14 +8472,14 @@ "y": 760, "wires": [ [ - "298039377051edac" + "2285149ee53af6fb" ] ] }, { - "id": "80eec1ba521fc179", + "id": "371f87e41acb941a", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "y 2.", "func": "var spacing = 70;\nvar subSpacing2 = 15; //18 == even\n\nvar valueBaseY = 37;\nvar smallUnitBaseY = 52;\nvar smallEurBaseY = 54;\nvar bigEurBaseY = 42;\n\nvar yValue0 = valueBaseY + (spacing * (msg.iconNumber - 1));\n\nvar ySmallUnit0 = smallUnitBaseY + (spacing * (msg.iconNumber - 1));\nvar ySmallEur0 = smallEurBaseY + (spacing * (msg.iconNumber - 1));\nvar yBigEur0 = bigEurBaseY + (spacing * (msg.iconNumber - 1));\n\nvar yValue1 = yValue0 - subSpacing2;\nvar ySmallUnit1 = ySmallUnit0 - subSpacing2;\nvar ySmallEur1 = ySmallEur0 - subSpacing2;\nvar yBigEur1 = yBigEur0 - subSpacing2;\n\nvar yValue2 = yValue0 + subSpacing2;\nvar ySmallUnit2 = ySmallUnit0 + subSpacing2;\nvar ySmallEur2 = ySmallEur0 + subSpacing2;\nvar yBigEur2 = yBigEur0 + subSpacing2;\n\nif (msg.subCount <= 1){\n msg.yValue = yValue0;\n msg.ySmallUnit = ySmallUnit0;\n msg.ySmallEur = ySmallEur0;\n msg.yBigEur = yBigEur0;\n}\nelse if (msg.subNumber == 1){\n msg.yValue = yValue1;\n msg.ySmallUnit = ySmallUnit1;\n msg.ySmallEur = ySmallEur1;\n msg.yBigEur = yBigEur1;\n}\nelse if (msg.subNumber >= 2) {\n msg.yValue = yValue2;\n msg.ySmallUnit = ySmallUnit2;\n msg.ySmallEur = ySmallEur2;\n msg.yBigEur = yBigEur2;\n}\n\nreturn msg;", "outputs": 1, @@ -8451,14 +8491,14 @@ "y": 720, "wires": [ [ - "f54b5bedd55e7c3e" + "cf51e0438ed02b42" ] ] }, { - "id": "ffed084d7942ed0a", + "id": "cb1c74976b153318", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "subIconNumber", "func": "if (msg.subNumber == 0) {\n return [null, msg];\n}\n\nif (msg.subNumber >= msg.subCount) {\n return [null, msg];\n}\n\nmsg.subNumber += 1;\nreturn [msg, null];", "outputs": 2, @@ -8470,10 +8510,10 @@ "y": 780, "wires": [ [ - "23b16d0948c9de96" + "8b4dbe01a0cce232" ], [ - "f6d05eeeeef5372b" + "0dac8cf1b83f73fe" ] ], "outputLabels": [ @@ -8482,9 +8522,9 @@ ] }, { - "id": "f6d05eeeeef5372b", + "id": "0dac8cf1b83f73fe", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "iconNumber += 1", "func": "if (msg.iconNumber >= 3) {\n return [msg, null];\n}\nmsg.iconNumber += 1;\n\nreturn [null, msg];", "outputs": 2, @@ -8496,10 +8536,10 @@ "y": 780, "wires": [ [ - "ca5c0aebf27f2968" + "a76527108c59d086" ], [ - "f7010be8cd5175fd" + "9ec1db2c777d4520" ] ], "outputLabels": [ @@ -8508,9 +8548,9 @@ ] }, { - "id": "ca5c0aebf27f2968", + "id": "a76527108c59d086", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "info", "data": "payload", "dataType": "msg", @@ -8597,15 +8637,15 @@ "y": 760, "wires": [ [ - "9aa8590b742cc2b1" + "adf7dc5e26b95a98" ] ], "info": "Best image size = 210x230" }, { - "id": "9aa8590b742cc2b1", + "id": "adf7dc5e26b95a98", "type": "http response", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "", "statusCode": "", "headers": { @@ -8616,9 +8656,9 @@ "wires": [] }, { - "id": "9fab398c2b76b716", + "id": "f717470a00c2baa2", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "y 2.", "func": "var spacing = 52;\nvar subSpacing2 = 12; //13 for equal spacing\n\nvar valueBaseY = 30;\nvar smallUnitBaseY = 44;\nvar smallEurBaseY = 47;\nvar bigEurBaseY = 35;\n\nvar yValue0 = valueBaseY + (spacing * (msg.iconNumber - 1));\n\nvar ySmallUnit0 = smallUnitBaseY + (spacing * (msg.iconNumber - 1));\nvar ySmallEur0 = smallEurBaseY + (spacing * (msg.iconNumber - 1));\nvar yBigEur0 = bigEurBaseY + (spacing * (msg.iconNumber - 1));\n\nvar yValue1 = yValue0 - subSpacing2;\nvar ySmallUnit1 = ySmallUnit0 - subSpacing2;\nvar ySmallEur1 = ySmallEur0 - subSpacing2;\nvar yBigEur1 = yBigEur0 - subSpacing2;\n\nvar yValue2 = yValue0 + subSpacing2;\nvar ySmallUnit2 = ySmallUnit0 + subSpacing2;\nvar ySmallEur2 = ySmallEur0 + subSpacing2;\nvar yBigEur2 = yBigEur0 + subSpacing2;\n\nif (msg.subCount <= 1) {\n msg.yValue = yValue0;\n msg.ySmallUnit = ySmallUnit0;\n msg.ySmallEur = ySmallEur0;\n msg.yBigEur = yBigEur0;\n}\nelse if (msg.subNumber == 1) {\n msg.yValue = yValue1;\n msg.ySmallUnit = ySmallUnit1;\n msg.ySmallEur = ySmallEur1;\n msg.yBigEur = yBigEur1;\n}\nelse if (msg.subNumber >= 2) {\n msg.yValue = yValue2;\n msg.ySmallUnit = ySmallUnit2;\n msg.ySmallEur = ySmallEur2;\n msg.yBigEur = yBigEur2;\n}\n\nreturn msg;", "outputs": 1, @@ -8630,14 +8670,14 @@ "y": 2180, "wires": [ [ - "8b059ee1f1cfe94c" + "9db60d3bb789d01e" ] ] }, { - "id": "d9388c428e44fa2d", + "id": "5267fb4c1edcf24e", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "subIconNumber", "func": "if (msg.subNumber == 0) {\n return [null, msg];\n}\n\nif (msg.subNumber >= msg.subCount) {\n return [null, msg];\n}\n\nmsg.subNumber += 1;\nreturn [msg, null];", "outputs": 2, @@ -8649,10 +8689,10 @@ "y": 2320, "wires": [ [ - "9fab398c2b76b716" + "f717470a00c2baa2" ], [ - "97104b378191e09e" + "82981759665efb73" ] ], "outputLabels": [ @@ -8661,9 +8701,9 @@ ] }, { - "id": "97104b378191e09e", + "id": "82981759665efb73", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "iconNumber += 1", "func": "if (msg.iconNumber >= 4) {\n return [msg, null];\n}\nmsg.iconNumber += 1;\n\nreturn [null, msg];", "outputs": 2, @@ -8675,10 +8715,10 @@ "y": 2340, "wires": [ [ - "732b2afc84bb9577" + "7bfe0699266675ea" ], [ - "805993d5fcc49183" + "d9f8d10818911376" ] ], "outputLabels": [ @@ -8687,9 +8727,9 @@ ] }, { - "id": "732b2afc84bb9577", + "id": "7bfe0699266675ea", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "info", "data": "payload", "dataType": "msg", @@ -8776,15 +8816,15 @@ "y": 2320, "wires": [ [ - "1a4855daf05f4eff" + "ef7d804357975f5b" ] ], "info": "Best image size = 210x230" }, { - "id": "1a4855daf05f4eff", + "id": "ef7d804357975f5b", "type": "http response", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "", "statusCode": "", "headers": { @@ -8795,9 +8835,9 @@ "wires": [] }, { - "id": "f54b5bedd55e7c3e", + "id": "cf51e0438ed02b42", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Value", "func": "msg.valueTemp = eval('msg.value' + msg.iconNumber + msg.subNumber);\nreturn msg;", "outputs": 1, @@ -8809,14 +8849,14 @@ "y": 720, "wires": [ [ - "7e33c825161146ad" + "59b66cdd5c1f97d0" ] ] }, { - "id": "7e33c825161146ad", + "id": "59b66cdd5c1f97d0", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit", "func": "msg.unitTemp = eval('msg.outUnit' + msg.iconNumber + msg.subNumber);\nreturn msg;", "outputs": 1, @@ -8828,14 +8868,14 @@ "y": 720, "wires": [ [ - "5c4a8fdf2a27f1eb" + "b4e6ccd8872694bc" ] ] }, { - "id": "8b059ee1f1cfe94c", + "id": "9db60d3bb789d01e", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Value", "func": "msg.valueTemp = eval('msg.value' + msg.iconNumber + msg.subNumber);\nreturn msg;", "outputs": 1, @@ -8847,14 +8887,14 @@ "y": 2180, "wires": [ [ - "9ee3ebfad089b04f" + "01c3e822627dfd72" ] ] }, { - "id": "9ee3ebfad089b04f", + "id": "01c3e822627dfd72", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit", "func": "msg.unitTemp = eval('msg.outUnit' + msg.iconNumber + msg.subNumber);\nreturn msg;", "outputs": 1, @@ -8866,14 +8906,14 @@ "y": 2180, "wires": [ [ - "c33c175c4dda818b" + "8796acaf8472c664" ] ] }, { - "id": "2353ac6241f06900", + "id": "50c1ed639227c456", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "y 2.", "func": "var spacing = 70;\nvar subSpacing2 = 12;\nvar subSpacing3 = 15;\n\nvar valueBaseY = 46;\nvar bigUnitBaseY = 32;\nvar smallEurBaseY = 49;\nvar bigEurBaseY = 36;\n\nvar yValue0 = valueBaseY + (spacing * (msg.iconNumber - 1));\n\nvar yBigUnit0 = bigUnitBaseY + (spacing * (msg.iconNumber - 1));\nvar ySmallEur0 = smallEurBaseY + (spacing * (msg.iconNumber - 1));\nvar yBigEur0 = bigEurBaseY + (spacing * (msg.iconNumber - 1));\n\nif (msg.subCount <= 1){\n msg.yValue = yValue0;\n msg.yBigUnit = yBigUnit0;\n msg.ySmallEur = ySmallEur0;\n msg.yBigEur = yBigEur0;\n}\n\nif (msg.subCount == 2){\n if (msg.subNumber == 1) {\n msg.yValue = yValue0 - subSpacing2;\n msg.yBigUnit = yBigUnit0 - subSpacing2;\n msg.ySmallEur = ySmallEur0 - subSpacing2;\n msg.yBigEur = yBigEur0 - subSpacing2;\n }\n else if (msg.subNumber >= 2) {\n msg.yValue = yValue0 + subSpacing2;\n msg.yBigUnit = yBigUnit0 + subSpacing2;\n msg.ySmallEur = ySmallEur0 + subSpacing2;\n msg.yBigEur = yBigEur0 + subSpacing2;\n }\n}\nelse if (msg.subCount >= 3) {\n if (msg.subNumber == 1) {\n msg.yValue = yValue0 - subSpacing3;\n msg.yBigUnit = yBigUnit0 - subSpacing3;\n msg.ySmallEur = ySmallEur0 - subSpacing3;\n msg.yBigEur = yBigEur0 - subSpacing3;\n }\n else if (msg.subNumber == 2) {\n msg.yValue = yValue0;\n msg.yBigUnit = yBigUnit0;\n msg.ySmallEur = ySmallEur0;\n msg.yBigEur = yBigEur0;\n }\n else if (msg.subNumber >= 3) {\n msg.yValue = yValue0 + subSpacing3;\n msg.yBigUnit = yBigUnit0 + subSpacing3;\n msg.ySmallEur = ySmallEur0 + subSpacing3;\n msg.yBigEur = yBigEur0 + subSpacing3;\n }\n}\n\nreturn msg;", "outputs": 1, @@ -8885,14 +8925,14 @@ "y": 1320, "wires": [ [ - "fcef17a87bf94d09" + "1975a7740cce004b" ] ] }, { - "id": "fcef17a87bf94d09", + "id": "1975a7740cce004b", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Value", "func": "msg.valueTemp = eval('msg.value' + msg.iconNumber + msg.subNumber);\nreturn msg;", "outputs": 1, @@ -8904,14 +8944,14 @@ "y": 1320, "wires": [ [ - "80aed16f8a0d6e5c" + "76a26101aeb7a628" ] ] }, { - "id": "80aed16f8a0d6e5c", + "id": "76a26101aeb7a628", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit", "func": "msg.unitTemp = eval('msg.outUnit' + msg.iconNumber + msg.subNumber);\nreturn msg;", "outputs": 1, @@ -8923,14 +8963,14 @@ "y": 1320, "wires": [ [ - "974a7b90a804ea47" + "237eeecc0d825ab1" ] ] }, { - "id": "55489a3693082948", + "id": "66b71c927c414706", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit", "property": "unitTemp", "propertyType": "msg", @@ -8956,20 +8996,20 @@ "y": 1320, "wires": [ [ - "916f99cefe30c0fc" + "cafddc1fe629d888" ], [ - "0e553a60ebca4e1b" + "29de6532e75baabc" ], [ - "5ca0ed00239e3b4b" + "3f9d39558772cfee" ] ] }, { - "id": "0e553a60ebca4e1b", + "id": "29de6532e75baabc", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "T(€)", "func": "msg.valueTemp = msg.valueTemp + \"T\";\nreturn msg;", "outputs": 1, @@ -8981,7 +9021,7 @@ "y": 1320, "wires": [ [ - "916f99cefe30c0fc" + "cafddc1fe629d888" ] ], "outputLabels": [ @@ -8989,9 +9029,9 @@ ] }, { - "id": "916f99cefe30c0fc", + "id": "cafddc1fe629d888", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -9078,14 +9118,14 @@ "y": 1280, "wires": [ [ - "549426739277735a" + "ce9aef4786bff222" ] ] }, { - "id": "549426739277735a", + "id": "ce9aef4786bff222", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Small€", "data": "payload", "dataType": "msg", @@ -9165,14 +9205,14 @@ "y": 1280, "wires": [ [ - "64bb3d6ac4cf2f52" + "76d6669959ec3ce1" ] ] }, { - "id": "5833f7f8341ea4dd", + "id": "52e1fb95b1b8979b", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Value size", "property": "Value size", "propertyType": "env", @@ -9195,17 +9235,17 @@ "y": 720, "wires": [ [ - "80eec1ba521fc179" + "371f87e41acb941a" ], [ - "2353ac6241f06900" + "50c1ed639227c456" ] ] }, { - "id": "4cc1523e5e964c9d", + "id": "9d807576e6996b5d", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -9292,14 +9332,14 @@ "y": 1360, "wires": [ [ - "64bb3d6ac4cf2f52" + "76d6669959ec3ce1" ] ] }, { - "id": "5ca0ed00239e3b4b", + "id": "3f9d39558772cfee", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Add unit", "func": "msg.valueTemp = msg.valueTemp + msg.unitTemp;\nreturn msg;", "outputs": 1, @@ -9311,7 +9351,7 @@ "y": 1360, "wires": [ [ - "4cc1523e5e964c9d" + "9d807576e6996b5d" ] ], "outputLabels": [ @@ -9319,9 +9359,9 @@ ] }, { - "id": "64bb3d6ac4cf2f52", + "id": "76d6669959ec3ce1", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "subIconNumber", "func": "if (msg.subNumber == 0){\n return [null, msg];\n}\n\nif (msg.subNumber >= msg.subCount){\n return [null, msg];\n}\n\nmsg.subNumber += 1;\nreturn [msg, null];", "outputs": 2, @@ -9333,10 +9373,10 @@ "y": 1320, "wires": [ [ - "5e3c96613217f4f0" + "d3a7a44670ceccbc" ], [ - "f6d05eeeeef5372b" + "0dac8cf1b83f73fe" ] ], "outputLabels": [ @@ -9345,9 +9385,9 @@ ] }, { - "id": "974a7b90a804ea47", + "id": "237eeecc0d825ab1", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit size", "property": "Unit size", "propertyType": "env", @@ -9370,17 +9410,17 @@ "y": 1320, "wires": [ [ - "55489a3693082948" + "66b71c927c414706" ], [ - "afcf5b35340e1f14" + "75188ad880f2dfa6" ] ] }, { - "id": "d8cbfee5aec3fee0", + "id": "6a55b142381dbb93", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit", "property": "unitTemp", "propertyType": "msg", @@ -9406,20 +9446,20 @@ "y": 2800, "wires": [ [ - "39f1636b2ae4cc4a" + "aded41444ec0323b" ], [ - "50365a7c3d7e49b5" + "a48dc021b991f03e" ], [ - "da7d2ea343cb833f" + "8990c3f528b03df5" ] ] }, { - "id": "50365a7c3d7e49b5", + "id": "a48dc021b991f03e", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "T(€)", "func": "msg.valueTemp = msg.valueTemp + \"T\";\nreturn msg;", "outputs": 1, @@ -9431,7 +9471,7 @@ "y": 2800, "wires": [ [ - "39f1636b2ae4cc4a" + "aded41444ec0323b" ] ], "outputLabels": [ @@ -9439,9 +9479,9 @@ ] }, { - "id": "39f1636b2ae4cc4a", + "id": "aded41444ec0323b", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -9528,14 +9568,14 @@ "y": 2760, "wires": [ [ - "ef582f0cbdaa3a88" + "0925721d819c33f7" ] ] }, { - "id": "ef582f0cbdaa3a88", + "id": "0925721d819c33f7", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Small€", "data": "payload", "dataType": "msg", @@ -9615,14 +9655,14 @@ "y": 2760, "wires": [ [ - "2e5538b8f26a51b9" + "07b08490e893536c" ] ] }, { - "id": "46f44fd5ad91a9e3", + "id": "ccd45e39a4dc8453", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -9709,14 +9749,14 @@ "y": 2840, "wires": [ [ - "2e5538b8f26a51b9" + "07b08490e893536c" ] ] }, { - "id": "da7d2ea343cb833f", + "id": "8990c3f528b03df5", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Add unit", "func": "msg.valueTemp = msg.valueTemp + msg.unitTemp;\nreturn msg;", "outputs": 1, @@ -9728,7 +9768,7 @@ "y": 2840, "wires": [ [ - "46f44fd5ad91a9e3" + "ccd45e39a4dc8453" ] ], "outputLabels": [ @@ -9736,9 +9776,9 @@ ] }, { - "id": "2e5538b8f26a51b9", + "id": "07b08490e893536c", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "subIconNumber", "func": "if (msg.subNumber == 0) {\n return [null, msg];\n}\n\nif (msg.subNumber >= msg.subCount) {\n return [null, msg];\n}\n\nmsg.subNumber += 1;\nreturn [msg, null];", "outputs": 2, @@ -9750,10 +9790,10 @@ "y": 2800, "wires": [ [ - "cb1f21d13ebd334b" + "4e2596dda2b1634c" ], [ - "97104b378191e09e" + "82981759665efb73" ] ], "outputLabels": [ @@ -9762,9 +9802,9 @@ ] }, { - "id": "b4e98bbc6be4d80c", + "id": "93be4fa2fdc7217d", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit size", "property": "Unit size", "propertyType": "env", @@ -9787,17 +9827,17 @@ "y": 2800, "wires": [ [ - "d8cbfee5aec3fee0" + "6a55b142381dbb93" ], [ - "b3b6182f82cf6ad5" + "4a6b32d01a62d047" ] ] }, { - "id": "8cf9a97aeb579219", + "id": "812963c64915b4be", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Value size", "property": "Value size", "propertyType": "env", @@ -9820,17 +9860,17 @@ "y": 2180, "wires": [ [ - "9fab398c2b76b716" + "f717470a00c2baa2" ], [ - "3144406fbfcbfc3e" + "63582bfbc53316bb" ] ] }, { - "id": "3144406fbfcbfc3e", + "id": "63582bfbc53316bb", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "y 2.", "func": "var spacing = 52;\nvar subSpacing3 = 14;\n\n\nif (env.get(\"Unit size\") == \"Big\") {\n\n var subSpacing2 = 12;\n\n var valueBaseY = 46;\n var bigUnitBaseY = 32;\n var smallEurBaseY = 49;\n var bigEurBaseY = 36;\n}\nelse {\n var subSpacing2 = 9;\n\n var valueBaseY = 39;\n var bigUnitBaseY = 25;\n var smallEurBaseY = 42;\n var bigEurBaseY = 29;\n}\n\nvar yValue0 = valueBaseY + (spacing * (msg.iconNumber - 1));\n\nvar yBigUnit0 = bigUnitBaseY + (spacing * (msg.iconNumber - 1));\nvar ySmallEur0 = smallEurBaseY + (spacing * (msg.iconNumber - 1));\nvar yBigEur0 = bigEurBaseY + (spacing * (msg.iconNumber - 1));\n\nif (msg.subCount <= 1){\n msg.yValue = yValue0;\n msg.yBigUnit = yBigUnit0;\n msg.ySmallEur = ySmallEur0;\n msg.yBigEur = yBigEur0;\n}\n\nif (msg.subCount == 2) {\n if (msg.subNumber == 1) {\n msg.yValue = yValue0 - subSpacing2;\n msg.yBigUnit = yBigUnit0 - subSpacing2;\n msg.ySmallEur = ySmallEur0 - subSpacing2;\n msg.yBigEur = yBigEur0 - subSpacing2;\n }\n else if (msg.subNumber >= 2) {\n msg.yValue = yValue0 + subSpacing2;\n msg.yBigUnit = yBigUnit0 + subSpacing2;\n msg.ySmallEur = ySmallEur0 + subSpacing2;\n msg.yBigEur = yBigEur0 + subSpacing2;\n }\n}\nelse if (msg.subCount >= 3) {\n if (msg.subNumber == 1) {\n msg.yValue = yValue0 - subSpacing3;\n msg.yBigUnit = yBigUnit0 - subSpacing3;\n msg.ySmallEur = ySmallEur0 - subSpacing3;\n msg.yBigEur = yBigEur0 - subSpacing3;\n }\n else if (msg.subNumber == 2) {\n msg.yValue = yValue0;\n msg.yBigUnit = yBigUnit0;\n msg.ySmallEur = ySmallEur0;\n msg.yBigEur = yBigEur0;\n }\n else if (msg.subNumber >= 3) {\n msg.yValue = yValue0 + subSpacing3;\n msg.yBigUnit = yBigUnit0 + subSpacing3;\n msg.ySmallEur = ySmallEur0 + subSpacing3;\n msg.yBigEur = yBigEur0 + subSpacing3;\n }\n}\nreturn msg;", "outputs": 1, @@ -9842,14 +9882,14 @@ "y": 2800, "wires": [ [ - "12aec9ec37cc1523" + "c13fb38bda1d7702" ] ] }, { - "id": "12aec9ec37cc1523", + "id": "c13fb38bda1d7702", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Value", "func": "msg.valueTemp = eval('msg.value' + msg.iconNumber + msg.subNumber);\nreturn msg;", "outputs": 1, @@ -9861,14 +9901,14 @@ "y": 2800, "wires": [ [ - "c12ef30897396cc8" + "c4a49ae22b0b35af" ] ] }, { - "id": "c12ef30897396cc8", + "id": "c4a49ae22b0b35af", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Unit", "func": "msg.unitTemp = eval('msg.outUnit' + msg.iconNumber + msg.subNumber);\nreturn msg;", "outputs": 1, @@ -9880,14 +9920,14 @@ "y": 2800, "wires": [ [ - "b4e98bbc6be4d80c" + "93be4fa2fdc7217d" ] ] }, { - "id": "8a80e1a6e47395da", + "id": "356253d5d2299fb5", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "invert", "func": "for (let i = 1; i <= 4; i++) {\n for (let i2 = 1; i2 <= 3; i2++) {\n if (env.get(\"Invert input \" + i + i2) && Number.isFinite(eval(\"msg.value\" + i + i2))) {\n eval(\"msg.value\" + i + i2 + \" *= -1\");\n }\n }\n}\nreturn msg;", "outputs": 1, @@ -9895,18 +9935,18 @@ "initialize": "", "finalize": "", "libs": [], - "x": 490, + "x": 730, "y": 1280, "wires": [ [ - "0dbd01a1e3e46319" + "6708c69c2edea033" ] ] }, { - "id": "fa6af9d4bb619e80", + "id": "04bf56929f36e8b5", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "draw circle", "data": "payload", "dataType": "msg", @@ -9986,14 +10026,14 @@ "y": 700, "wires": [ [ - "b0935d4e2255a18d" + "2b7e51b6e5b4d183" ] ] }, { - "id": "298039377051edac", + "id": "2285149ee53af6fb", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "circle", "func": "msg.circle = eval('msg.circle' + msg.iconNumber);\n\nif (typeof msg.circle != 'string') {\n return [null, msg]\n}\n\nif (msg.circle == \"blue\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACtSURBVChTlVJRCoJAFByjHyFvInqCoMj7dDr7i7yCh8j/xOojwWZ8qSnLggOz+Hbmvd331gBzbMkDmfYRUJIF2fbRAntgdwfiGjh/jPrWnrQ5ZG6AvAO6BbUnbUriNVTFZR4oLarMC2R2tMv4z4QeZBsubPAUKtOPozypElZBCRzd9W2hD7cXF41ZjaghX9MXcmpa4MiipwlOMzXnW6iKpjE8XPL4VR7NK38N4AtEi2vqIvOgGwAAAABJRU5ErkJggg==\";\n}\nelse if (msg.circle == \"green\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADSSURBVChTlVK9DsFQGD2kA8FMDKQvoBZjk64mo2fxBLyRtYnRot7A4Cc2Qkl0cM7VJlSrcZJz893vO6f33u9rCZ+wSI90zA4ISJ+MzC4FFxVs0cUZIzwMFSunWozkBInnmKCGQZxJsCSnuOKOIaOFDBbFG4rbX+IEMs2wxw2dMkMPTTRyxYJqLdS5ejI46KOq/E/0jMaR4S/IEGDF2xVhjZBrIIOPIy7mYXlQ7cBOUStDxO+P2YUw0/TqUGg0qQG6fNYO9tvgbJxMLmNwCQp+DeAJr+g2WKtfpewAAAAASUVORK5CYII=\";\n}\nelse if (msg.circle == \"grey\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAD4SURBVChTlZK/a4NAHMUvrRFKE1BcJENBB1f/goBrtw5C8iem6J5VyNbNUQVtpowK+QUSQ94zHiQBU/qBr967e0/uvudA3KOgPJTbKiFiVIQ6tQrcBqaqqi40TRvbtv3GiTzPj1VVbeu6nkOuOCcDNC993393HKebupKmqQjDcI/QJ+SKAQXmNcyTR7OkC20Q+niB9riNPjPhmq7rIww9Bly552dYlkWPy8C/YCBmN66yn6IoDnjFDERo3Y4H6yPLMlGW5R7D6BWPc9M0P0mSzEzTHBqG0ZokNAdBcECHviB/Hy/um93oDthug1+GeQZ5d3GSP34NIS5cVmLp4tlXVAAAAABJRU5ErkJggg==\";\n}\nelse if (msg.circle == \"orange\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADqSURBVChTlVKxDgFBFBwiEeEqKoXQ0EjuCyQnKn7g9H6Lnh+gEpf4gksoaFBpqHAiucLMuUuc5IhJXnbn7czmvbebQhwZhsUwAwa4DIfhB4x4N7QKWYyrRRidBnJKzDe478+4XB/oky6ViwwSzyYD5HvNMBNiugLsEW40dUmXMmQoPlBc/hRHkKk/wvHyQCVNbqmMJLGgs1oJBW4tGcyo5m9o1wONKcNfkMHVNF40GYstPC6uDM7hjKsaS8JsDexOuHHryOCze5tT8HTwCeXsITxpSP3YwxlZTDSNsMGgDN0cimMPF+HH1wCeY4BMhbKUdzEAAAAASUVORK5CYII=\";\n}\nelse if (msg.circle == \"red\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACwSURBVChTlZJRCoJQEEVv4U9QO4neCoSi9tPq6i9qCy4i/4usjwSb42SaqOCFq29mzjydpxP9KzKvzaGMpMR8Medl1FI8l65L6b6X3pg1OWqO1AJ+HKSiaJkcNRhH7TXYpQuuTG0hpbA07Hh0F9j0yhjYqV3CVprROaSNM4GGUaIhOUkvD/t1lp5245gVMdDQ0Edzc2gUWyKj0ANnMI7WoinlNKoPZ+vbd+cfPPLXkD6Sa2vqe2EEzgAAAABJRU5ErkJggg==\";\n}\nelse if (msg.circle == \"white\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADKSURBVChTlZJBCsIwEEWjdCMkd2j2pT1BwVDvoEfUA7S7UsETeIJmY/c2iW4EnV9TsEWL/TCF+f8NzJAu2FAB1Zoq6TrGzlRHqkfXkT4HUs75PgxDkWXZCkZZlnettbHW7qg9wesF2OZ5/hwLHjIwb5TWIOPyDe6FTAjRgMXAJoqi1mc/FcdxC3ZJn6TfeUpKKTAJBmbr35WuYDEQ4KCpo4uiGBwNpWQ4BGN52IEBOHg4Cg5SSu4PZFVV3eq6dsaYLbXdw838NRh7AZ0l2v2LJmYlAAAAAElFTkSuQmCC\";\n}\nelse if (msg.circle == \"yellow\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADDSURBVChTlZJBCoJgEIVf4SbQO+he9ARCYneoI9YBdCcGnaAT6Cb36W9tApv3l+APJvngCfPmG5jhdwVTlngrDnUFXMVn8UtXovFAZNs4ui6cJMGGQZ7jWVVolcJByguzQYRVmqLve9PM2CPzQWUNCW5T8GD2HAc1WQ7sfB/NFDh2EKAhu5ZPOOw8pzjWTMiBxfp3pTtZDlg8aO7oLDOPpiIJOjZ+wB0ZgsbDSePkebC/B6Io8ChLdG2LvZT64Rb+GsAba9Sp2bTzydoAAAAASUVORK5CYII=\";\n}\nelse {\n node.warn(\"msg.circle\" + msg.iconNumber + \"not supported color: \" + msg.circle);\n return [null, msg]\n}\n\nreturn [msg, null]", "outputs": 2, @@ -10005,10 +10045,10 @@ "y": 720, "wires": [ [ - "9473aaeff8c81197" + "3dc2f1160ade1c9e" ], [ - "b0935d4e2255a18d" + "2b7e51b6e5b4d183" ] ], "outputLabels": [ @@ -10017,9 +10057,9 @@ ] }, { - "id": "4be09e59bb01dcb7", + "id": "d8762ebb755d34b9", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "circle", "func": "msg.circle = eval('msg.circle' + msg.iconNumber);\n\nif (typeof msg.circle != 'string') {\n return [null, msg]\n}\n\nif (msg.circle == \"blue\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACtSURBVChTlVJRCoJAFByjHyFvInqCoMj7dDr7i7yCh8j/xOojwWZ8qSnLggOz+Hbmvd331gBzbMkDmfYRUJIF2fbRAntgdwfiGjh/jPrWnrQ5ZG6AvAO6BbUnbUriNVTFZR4oLarMC2R2tMv4z4QeZBsubPAUKtOPozypElZBCRzd9W2hD7cXF41ZjaghX9MXcmpa4MiipwlOMzXnW6iKpjE8XPL4VR7NK38N4AtEi2vqIvOgGwAAAABJRU5ErkJggg==\";\n}\nelse if (msg.circle == \"green\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADSSURBVChTlVK9DsFQGD2kA8FMDKQvoBZjk64mo2fxBLyRtYnRot7A4Cc2Qkl0cM7VJlSrcZJz893vO6f33u9rCZ+wSI90zA4ISJ+MzC4FFxVs0cUZIzwMFSunWozkBInnmKCGQZxJsCSnuOKOIaOFDBbFG4rbX+IEMs2wxw2dMkMPTTRyxYJqLdS5ejI46KOq/E/0jMaR4S/IEGDF2xVhjZBrIIOPIy7mYXlQ7cBOUStDxO+P2YUw0/TqUGg0qQG6fNYO9tvgbJxMLmNwCQp+DeAJr+g2WKtfpewAAAAASUVORK5CYII=\";\n}\nelse if (msg.circle == \"grey\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAD4SURBVChTlZK/a4NAHMUvrRFKE1BcJENBB1f/goBrtw5C8iem6J5VyNbNUQVtpowK+QUSQ94zHiQBU/qBr967e0/uvudA3KOgPJTbKiFiVIQ6tQrcBqaqqi40TRvbtv3GiTzPj1VVbeu6nkOuOCcDNC993393HKebupKmqQjDcI/QJ+SKAQXmNcyTR7OkC20Q+niB9riNPjPhmq7rIww9Bly552dYlkWPy8C/YCBmN66yn6IoDnjFDERo3Y4H6yPLMlGW5R7D6BWPc9M0P0mSzEzTHBqG0ZokNAdBcECHviB/Hy/um93oDthug1+GeQZ5d3GSP34NIS5cVmLp4tlXVAAAAABJRU5ErkJggg==\";\n}\nelse if (msg.circle == \"orange\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADqSURBVChTlVKxDgFBFBwiEeEqKoXQ0EjuCyQnKn7g9H6Lnh+gEpf4gksoaFBpqHAiucLMuUuc5IhJXnbn7czmvbebQhwZhsUwAwa4DIfhB4x4N7QKWYyrRRidBnJKzDe478+4XB/oky6ViwwSzyYD5HvNMBNiugLsEW40dUmXMmQoPlBc/hRHkKk/wvHyQCVNbqmMJLGgs1oJBW4tGcyo5m9o1wONKcNfkMHVNF40GYstPC6uDM7hjKsaS8JsDexOuHHryOCze5tT8HTwCeXsITxpSP3YwxlZTDSNsMGgDN0cimMPF+HH1wCeY4BMhbKUdzEAAAAASUVORK5CYII=\";\n}\nelse if (msg.circle == \"red\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACwSURBVChTlZJRCoJQEEVv4U9QO4neCoSi9tPq6i9qCy4i/4usjwSb42SaqOCFq29mzjydpxP9KzKvzaGMpMR8Medl1FI8l65L6b6X3pg1OWqO1AJ+HKSiaJkcNRhH7TXYpQuuTG0hpbA07Hh0F9j0yhjYqV3CVprROaSNM4GGUaIhOUkvD/t1lp5245gVMdDQ0Edzc2gUWyKj0ANnMI7WoinlNKoPZ+vbd+cfPPLXkD6Sa2vqe2EEzgAAAABJRU5ErkJggg==\";\n}\nelse if (msg.circle == \"white\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADKSURBVChTlZJBCsIwEEWjdCMkd2j2pT1BwVDvoEfUA7S7UsETeIJmY/c2iW4EnV9TsEWL/TCF+f8NzJAu2FAB1Zoq6TrGzlRHqkfXkT4HUs75PgxDkWXZCkZZlnettbHW7qg9wesF2OZ5/hwLHjIwb5TWIOPyDe6FTAjRgMXAJoqi1mc/FcdxC3ZJn6TfeUpKKTAJBmbr35WuYDEQ4KCpo4uiGBwNpWQ4BGN52IEBOHg4Cg5SSu4PZFVV3eq6dsaYLbXdw838NRh7AZ0l2v2LJmYlAAAAAElFTkSuQmCC\";\n}\nelse if (msg.circle == \"yellow\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADDSURBVChTlZJBCoJgEIVf4SbQO+he9ARCYneoI9YBdCcGnaAT6Cb36W9tApv3l+APJvngCfPmG5jhdwVTlngrDnUFXMVn8UtXovFAZNs4ui6cJMGGQZ7jWVVolcJByguzQYRVmqLve9PM2CPzQWUNCW5T8GD2HAc1WQ7sfB/NFDh2EKAhu5ZPOOw8pzjWTMiBxfp3pTtZDlg8aO7oLDOPpiIJOjZ+wB0ZgsbDSePkebC/B6Io8ChLdG2LvZT64Rb+GsAba9Sp2bTzydoAAAAASUVORK5CYII=\";\n}\nelse {\n node.warn(\"msg.circle\" + msg.iconNumber + \"not supported color: \" + msg.circle);\n return [null, msg]\n}\n\nreturn [msg, null]", "outputs": 2, @@ -10031,10 +10071,10 @@ "y": 2180, "wires": [ [ - "5f50dbe26e7ae552" + "51c76f99d2bd9d7d" ], [ - "d5e3bc1e2a5cf3ae" + "33b7067c0a42691e" ] ], "outputLabels": [ @@ -10043,9 +10083,9 @@ ] }, { - "id": "f4ecd810ed73063a", + "id": "c5c504899d146639", "type": "change", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "delete", "rules": [ { @@ -10068,14 +10108,14 @@ "y": 1280, "wires": [ [ - "39ef3745791f7551" + "5a4892c570ae8531" ] ] }, { - "id": "02fd996e4398c91e", + "id": "c81ff60f0ab69bae", "type": "inject", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "", "props": [], "repeat": "", @@ -10087,14 +10127,14 @@ "y": 100, "wires": [ [ - "b2fe8e75630c2291" + "a1ca4110f844679a" ] ] }, { - "id": "b2fe8e75630c2291", + "id": "a1ca4110f844679a", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "2020Background", "data": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAADUExURf///6fEG8gAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAANSURBVBjTYxi2gIEBAADcAAEEch+YAAAAAElFTkSuQmCC", "dataType": "str", @@ -10129,14 +10169,14 @@ "y": 100, "wires": [ [ - "08be37c35f758e83" + "165f8bc6278f60fb" ] ] }, { - "id": "ee9cd46804526032", + "id": "8eaf900afe19060a", "type": "change", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Images to flow", "rules": [ { @@ -10166,9 +10206,9 @@ ] }, { - "id": "b0935d4e2255a18d", + "id": "2b7e51b6e5b4d183", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "mini icon", "func": "const signalNoConnectionBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAG6SURBVDhPrZS/S1tRGIZPpKFaHAopiBgoVOJSqA5F8A9QJwcdUupQk0lwMRSKOEsmodSlLg5CoYiouIq0s1JaoRRBIggi/hgCthVcNPq859wD96a5jagPPHzfOZ778t1zMea+SQS1Fg1YcW08pVLpBWUCt/C9HhIv8Ruu41McxJ/4CZvxf3zEYZzGfj/hCipEHGAKm+zKmFe46NooTNdI+YXtdsOYvJ/we1BFGn3YOe66NpbwtVR8YBG/uDbCJP5wrZ0ohUOoa6mJDxzAHtdGyGOLGkIeUJZwGb8qnHqBEXzgKD5ybYRO7HWtacVu15pn2IGXdhXCB64G9S++xhm7MmYfN1xr+SegGh84h89REy1gAbuy2aymi/soV0GN4APFNu6p4X6S+LZYLG5Sp7QHNQOqCQeG0aRv8DEWCH1Crfu6Ii7wYVCFJku6tj5xgTd6vVo08DoJHMd51Ie5E5qwDz/gCM6iuP2E2OZaS1oTU8M/azrj98JX5PvInhZHrrccZjIZTVdG/1V/45/AU22A/lYOzh7bHceJAtfwHX7GMTQc3KHkUP+7OdZnMrSXD84IPaNnlaGs+8SYa9gNeDxkCBMGAAAAAElFTkSuQmCC\";\nconst signal0BS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAFASURBVDhPrZQ/S8NQFMVfi0VHQUFFQRDiIujm4u7g6AfQunbRRfwA7uLmqouTfgAXJ3dnyeDmn6Gg4qjV33nvBpI2sU3MgR/n3tuXw30pratbDfPKiuN4FTuCezipI/AO2wid22paUUmETWCzofOa+VegqWcu9UoFstEUbMOijQY0ciAhY9gVXMOtwvEvyKjMhnOwHk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C8tLigVz9EE/gAAAABJRU5ErkJggg==\";\nconst happyBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADdYAAA3WAZBveZwAAAGASURBVDhPtZWxLkRBFECXRhREoqPwFWqJCrVStQWlij8QhQ+g3qiUCr2P0BKF2IIEEWzFObNzZd7b9wThJMfOu/fOfTvz5q1OC1PYxTO8xkHWsTFz1owwlj9LNvAAJ9HJ52gjWcAlXMNX3MFjbOUQ33EfZw20YM4aa53TiIk3XE5X38Na54w0dZne7SfNAuc41x4JN/cWXULg3q7iYrqqYsxcuf/OtUd6UD6xByz3zAne9RHnDGQcGzNnTeBce3TH+bOOPs17DO7wCa/wxUDGsTFz1gTOtYe90pHYclDDbzMzHFYwVn7rwB7peHlgVxxkprHx0NawxtrAHgOXXGcPj4bDL7HG2go27KNvQHCJHoWJdNWMOWusDezRt+EF+joFJ+hyttNVM+assTawh70aj80mejR2sfymjo2Zsyb4PDZeeKf6wRYnPOMNnmYdGyubSeVgS9urN48ur5d1bKxk5NUL/vTHITDh3VxCuad1zFljbaXZv//ABm7uL/4FdDof5QxnmyApMDYAAAAASUVORK5CYII=\";\nconst scepticBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADdYAAA3WAZBveZwAAAFWSURBVDhPtZWxSgNBEEBPOwtBsBPBwlJba8FKrS2t0tgLfoOFYOsPiJ+QPh8iIghaKKiImkL0vXVH9pI7MPF88Mzezs5cdm9yVi3MYw/7eI3DrGPnjLlmjJn8WbKPJziHJg/QQrKCm7iLb3iE59jKGX7iMS460YIx17jWnEYMvONWuvodrjVnrKjb9G6TFAvMMdcaCQ/3Ft1C4Nnu4Ea6quOcsfL8zbVGelA+sUcsz8wE7/qES05kHDtnzDWBudbozfJnD32aDxjc4zNe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aZiuECxVqtAAAAABJRU5ErkJggg==\";\n\nconst batteryRedBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAqSURBVDhPY6A2YAQRb92D/oN5FADhnevAZjGBeVQEowZSDga/gVQGDAwAAiIEEDQW/6IAAAAASUVORK5CYII=\";\nconst batteryOrangeBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAqSURBVDhPY6A2YAQR36fI/gfzKACcOY/BZjGBeVQEowZSDga/gVQGDAwACyoEEDeI91QAAAAASUVORK5CYII=\";\nconst batteryYellowBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAqSURBVDhPY6A2YAQRL57L/gfzKAASko/BZjGBeVQEowZSDga/gVQGDAwAHToEEE7rotQAAAAASUVORK5CYII=\";\nconst batteryGreenYellowBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAqSURBVDhPY6A2YAQR6y+Z/gfzKACBeqfBZjGBeVQEowZSDga/gVQGDAwADuIEEH4+VKsAAAAASUVORK5CYII=\";\nconst batteryGreenBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAqSURBVDhPY6A2YAQRXts4/oN5FIBtXj/AZjGBeVQEowZSDga/gVQGDAwA4JsEEHQfg0UAAAAASUVORK5CYII=\";\n\ndelete msg.miniIconImage;\nmsg.miniIcon = eval('msg.miniIcon' + msg.iconNumber);\n\nif (typeof msg.miniIcon != 'string' || msg.miniIcon.length <= 0) {\n return [null, msg];\n}\n\nif (msg.miniIcon == \"battery\"\n || msg.miniIcon == \"batteryX\"\n || msg.miniIcon == \"batteryFlash\") {\n msg.miniIconBackground = flow.get(\"Solardisplay.2010Background\");\n\n msg.miniIconPercent = eval('msg.miniIcon' + msg.iconNumber + 'Percent');\n if (!Number.isFinite(msg.miniIconPercent)) {\n msg.miniIconPercent = 100;\n }\n msg.batteryWidth = 17 * (msg.miniIconPercent / 100) + 1;\n\n msg.batteryColor = eval('msg.miniIcon' + msg.iconNumber + \"Color\");\n\n if (msg.batteryColor == \"red\") {\n msg.batteryColorBS64 = batteryRedBS64;\n }\n else if (msg.batteryColor == \"orange\") {\n msg.batteryColorBS64 = batteryOrangeBS64;\n }\n else if (msg.batteryColor == \"yellow\") {\n msg.batteryColorBS64 = batteryYellowBS64;\n }\n else if (msg.batteryColor == \"greenYellow\") {\n msg.batteryColorBS64 = batteryGreenYellowBS64;\n }\n else {\n msg.batteryColorBS64 = batteryGreenBS64;\n }\n\n}\nelse {\n msg.miniIconBackground = flow.get(\"Solardisplay.2020Background\");\n}\n\nif (msg.miniIcon == \"signalNoConnection\") {\n msg.miniIconBS64 = signalNoConnectionBS64;\n}\nelse if (msg.miniIcon == \"signal0\") {\n msg.miniIconBS64 = signal0BS64;\n}\nelse if (msg.miniIcon == \"signal1\") {\n msg.miniIconBS64 = signal1BS64;\n}\nelse if (msg.miniIcon == \"signal2\") {\n msg.miniIconBS64 = signal2BS64;\n}\nelse if (msg.miniIcon == \"signal3\") {\n msg.miniIconBS64 = signal3BS64;\n}\nelse if (msg.miniIcon == \"signal4\") {\n msg.miniIconBS64 = signal4BS64;\n}\nelse if (msg.miniIcon == \"signal\") {\n msg.miniIconDBm = eval('msg.miniIcon' + msg.iconNumber + 'DBm');\n if (Number.isFinite(msg.miniIconDBm)) {\n\n if (msg.miniIconDBm <= -100) {\n msg.miniIconBS64 = signalNoConnectionBS64;\n }\n else if (msg.miniIconDBm < -80) {\n msg.miniIconBS64 = signal0BS64;\n }\n else if (msg.miniIconDBm < -70) {\n msg.miniIconBS64 = signal1BS64;\n }\n else if (msg.miniIconDBm < -67) {\n msg.miniIconBS64 = signal2BS64;\n }\n else if (msg.miniIconDBm < -30) {\n msg.miniIconBS64 = signal3BS64;\n }\n else {\n msg.miniIconBS64 = signal4BS64;\n }\n }\n else {\n msg.miniIconPercent = eval('msg.miniIcon' + msg.iconNumber + 'Percent');\n if (msg.miniIconPercent <= 0) {\n msg.miniIconBS64 = signalNoConnectionBS64;\n }\n else if (msg.miniIconPercent < 20) {\n msg.miniIconBS64 = signal0BS64;\n }\n else if (msg.miniIconPercent < 40) {\n msg.miniIconBS64 = signal1BS64;\n }\n else if (msg.miniIconPercent < 60) {\n msg.miniIconBS64 = signal2BS64;\n }\n else if (msg.miniIconPercent < 80) {\n msg.miniIconBS64 = signal3BS64;\n }\n else {\n msg.miniIconBS64 = signal4BS64;\n }\n }\n}\nelse if (msg.miniIcon == \"warn\") {\n msg.miniIconBS64 = warnBS64;\n}\nelse if (msg.miniIcon == \"happy\") {\n msg.miniIconBS64 = happyBS64;\n}\nelse if (msg.miniIcon == \"sceptic\") {\n msg.miniIconBS64 = scepticBS64;\n}\nelse if (msg.miniIcon == \"sad\") {\n msg.miniIconBS64 = sadBS64;\n}\nelse if (msg.miniIcon == \"battery\") {\n msg.miniIconBS64 = batteryBS64;\n}\nelse if (msg.miniIcon == \"batteryX\") {\n msg.miniIconBS64 = batteryXBS64;\n}\nelse if (msg.miniIcon == \"batteryFlash\") {\n msg.miniIconBS64 = batteryFlashBS64;\n}\nelse {\n node.warn(\"msg.miniIcon\" + msg.iconNumber + \" not supported icon: \" + msg.miniIcon);\n return [null, msg];\n}\n\nreturn [msg, null];", "outputs": 2, @@ -10180,10 +10220,10 @@ "y": 720, "wires": [ [ - "b952bb7485bfdc49" + "cdc67734de9492d2" ], [ - "5833f7f8341ea4dd" + "52e1fb95b1b8979b" ] ], "outputLabels": [ @@ -10192,9 +10232,9 @@ ] }, { - "id": "b952bb7485bfdc49", + "id": "cdc67734de9492d2", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "mini icon background", "data": "payload", "dataType": "msg", @@ -10274,14 +10314,14 @@ "y": 700, "wires": [ [ - "2e80180cdc41241e" + "77d19468fb8bd068" ] ] }, { - "id": "91cde4a245ccc0ef", + "id": "c4fa96a6cb46a0f2", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "mini icon", "data": "payload", "dataType": "msg", @@ -10361,14 +10401,14 @@ "y": 740, "wires": [ [ - "5833f7f8341ea4dd" + "52e1fb95b1b8979b" ] ] }, { - "id": "d5e3bc1e2a5cf3ae", + "id": "33b7067c0a42691e", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "mini icon", "func": "const signalNoConnectionBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAG6SURBVDhPrZS/S1tRGIZPpKFaHAopiBgoVOJSqA5F8A9QJwcdUupQk0lwMRSKOEsmodSlLg5CoYiouIq0s1JaoRRBIggi/hgCthVcNPq859wD96a5jagPPHzfOZ778t1zMea+SQS1Fg1YcW08pVLpBWUCt/C9HhIv8Ruu41McxJ/4CZvxf3zEYZzGfj/hCipEHGAKm+zKmFe46NooTNdI+YXtdsOYvJ/we1BFGn3YOe66NpbwtVR8YBG/uDbCJP5wrZ0ohUOoa6mJDxzAHtdGyGOLGkIeUJZwGb8qnHqBEXzgKD5ybYRO7HWtacVu15pn2IGXdhXCB64G9S++xhm7MmYfN1xr+SegGh84h89REy1gAbuy2aymi/soV0GN4APFNu6p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f4WGeszd9H+O4zHMUTwmU4e7Nvp3RjjFTguJhBdb8SdJrmuthlczm/0BJsgl3yJBw40AAAAASUVORK5CYII=\";\nconst batteryFlashBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAD4SURBVDhPhdIxq0FhHMfx44bhKqNBDKKYpJTVZpDZO7jxBiwyWgxYKMUog7JRNpN4BWK8d73v4CZ8f+d0bqfTOc6vPqfnOUd/z/PvHzIMY4wE/qC9Ow/ovdc35Yk4VtjoxVqPN/Er5EwWEy0+oJPZqaCIiLmzMkXHWvpGNTKoq6AzaRywRR9NJKETDBGFV3QLtabjLqgeNKCP3/jEBW0cMYf+wJ0wrri5CyontFDFL7oYIIYzFijDM14FlR98oYYZclCfUtC199BN7NxRQF6bpR5v0sPIWppRwRKcp1Tvd6hrEzQ2StDo/I+Nfhg02Bpc8WuPY7CNzQtaZiuECxVqtAAAAABJRU5ErkJggg==\";\n\nconst batteryRedBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAqSURBVDhPY6A2YAQRb92D/oN5FADhnevAZjGBeVQEowZSDga/gVQGDAwAAiIEEDQW/6IAAAAASUVORK5CYII=\";\nconst batteryOrangeBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAqSURBVDhPY6A2YAQR36fI/gfzKACcOY/BZjGBeVQEowZSDga/gVQGDAwACyoEEDeI91QAAAAASUVORK5CYII=\";\nconst batteryYellowBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAqSURBVDhPY6A2YAQRL57L/gfzKAASko/BZjGBeVQEowZSDga/gVQGDAwAHToEEE7rotQAAAAASUVORK5CYII=\";\nconst batteryGreenYellowBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAqSURBVDhPY6A2YAQR6y+Z/gfzKACBeqfBZjGBeVQEowZSDga/gVQGDAwADuIEEH4+VKsAAAAASUVORK5CYII=\";\nconst batteryGreenBS64 = \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAqSURBVDhPY6A2YAQRXts4/oN5FIBtXj/AZjGBeVQEowZSDga/gVQGDAwA4JsEEHQfg0UAAAAASUVORK5CYII=\";\n\ndelete msg.miniIconImage;\nmsg.miniIcon = eval('msg.miniIcon' + msg.iconNumber);\n\nif (typeof msg.miniIcon != 'string' || msg.miniIcon.length <= 0) {\n return [null, msg];\n}\n\nif (msg.miniIcon == \"battery\"\n || msg.miniIcon == \"batteryX\"\n || msg.miniIcon == \"batteryFlash\") {\n msg.miniIconBackground = flow.get(\"Solardisplay.2010Background\");\n\n msg.miniIconPercent = eval('msg.miniIcon' + msg.iconNumber + 'Percent');\n if (!Number.isFinite(msg.miniIconPercent)) {\n msg.miniIconPercent = 100;\n }\n msg.batteryWidth = 17 * (msg.miniIconPercent / 100) + 1;\n\n msg.batteryColor = eval('msg.miniIcon' + msg.iconNumber + \"Color\");\n\n if (msg.batteryColor == \"red\") {\n msg.batteryColorBS64 = batteryRedBS64;\n }\n else if (msg.batteryColor == \"orange\") {\n msg.batteryColorBS64 = batteryOrangeBS64;\n }\n else if (msg.batteryColor == \"yellow\") {\n msg.batteryColorBS64 = batteryYellowBS64;\n }\n else if (msg.batteryColor == \"greenYellow\") {\n msg.batteryColorBS64 = batteryGreenYellowBS64;\n }\n else {\n msg.batteryColorBS64 = batteryGreenBS64;\n }\n\n}\nelse {\n msg.miniIconBackground = flow.get(\"Solardisplay.2020Background\");\n}\n\nif (msg.miniIcon == \"signalNoConnection\") {\n msg.miniIconBS64 = signalNoConnectionBS64;\n}\nelse if (msg.miniIcon == \"signal0\") {\n msg.miniIconBS64 = signal0BS64;\n}\nelse if (msg.miniIcon == \"signal1\") {\n msg.miniIconBS64 = signal1BS64;\n}\nelse if (msg.miniIcon == \"signal2\") {\n msg.miniIconBS64 = signal2BS64;\n}\nelse if (msg.miniIcon == \"signal3\") {\n msg.miniIconBS64 = signal3BS64;\n}\nelse if (msg.miniIcon == \"signal4\") {\n msg.miniIconBS64 = signal4BS64;\n}\nelse if (msg.miniIcon == \"signal\") {\n msg.miniIconDBm = eval('msg.miniIcon' + msg.iconNumber + 'DBm');\n if (Number.isFinite(msg.miniIconDBm)) {\n\n if (msg.miniIconDBm <= -100) {\n msg.miniIconBS64 = signalNoConnectionBS64;\n }\n else if (msg.miniIconDBm < -80) {\n msg.miniIconBS64 = signal0BS64;\n }\n else if (msg.miniIconDBm < -70) {\n msg.miniIconBS64 = signal1BS64;\n }\n else if (msg.miniIconDBm < -67) {\n msg.miniIconBS64 = signal2BS64;\n }\n else if (msg.miniIconDBm < -30) {\n msg.miniIconBS64 = signal3BS64;\n }\n else {\n msg.miniIconBS64 = signal4BS64;\n }\n }\n else {\n msg.miniIconPercent = eval('msg.miniIcon' + msg.iconNumber + 'Percent');\n if (msg.miniIconPercent <= 0) {\n msg.miniIconBS64 = signalNoConnectionBS64;\n }\n else if (msg.miniIconPercent < 20) {\n msg.miniIconBS64 = signal0BS64;\n }\n else if (msg.miniIconPercent < 40) {\n msg.miniIconBS64 = signal1BS64;\n }\n else if (msg.miniIconPercent < 60) {\n msg.miniIconBS64 = signal2BS64;\n }\n else if (msg.miniIconPercent < 80) {\n msg.miniIconBS64 = signal3BS64;\n }\n else {\n msg.miniIconBS64 = signal4BS64;\n }\n }\n}\nelse if (msg.miniIcon == \"warn\") {\n msg.miniIconBS64 = warnBS64;\n}\nelse if (msg.miniIcon == \"happy\") {\n msg.miniIconBS64 = happyBS64;\n}\nelse if (msg.miniIcon == \"sceptic\") {\n msg.miniIconBS64 = scepticBS64;\n}\nelse if (msg.miniIcon == \"sad\") {\n msg.miniIconBS64 = sadBS64;\n}\nelse if (msg.miniIcon == \"battery\") {\n msg.miniIconBS64 = batteryBS64;\n}\nelse if (msg.miniIcon == \"batteryX\") {\n msg.miniIconBS64 = batteryXBS64;\n}\nelse if (msg.miniIcon == \"batteryFlash\") {\n msg.miniIconBS64 = batteryFlashBS64;\n}\nelse {\n node.warn(\"msg.miniIcon\" + msg.iconNumber + \" not supported icon: \" + msg.miniIcon);\n return [null, msg];\n}\n\nreturn [msg, null];", "outputs": 2, @@ -10380,10 +10420,10 @@ "y": 2180, "wires": [ [ - "3ddc2abaaffa4d3b" + "972cbc69a9aec6f2" ], [ - "8cf9a97aeb579219" + "812963c64915b4be" ] ], "outputLabels": [ @@ -10392,9 +10432,9 @@ ] }, { - "id": "3ddc2abaaffa4d3b", + "id": "972cbc69a9aec6f2", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "mini icon background", "data": "payload", "dataType": "msg", @@ -10474,14 +10514,14 @@ "y": 2160, "wires": [ [ - "d887236875dd5716" + "d27810fc6244274a" ] ] }, { - "id": "08be37c35f758e83", + "id": "165f8bc6278f60fb", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "2010Background", "data": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAcSURBVChTY/z//z8DuYAJSpMFRjWTCIakZgYGADN/AxESPgPTAAAAAElFTkSuQmCC", "dataType": "str", @@ -10516,14 +10556,14 @@ "y": 100, "wires": [ [ - "ee9cd46804526032" + "8eaf900afe19060a" ] ] }, { - "id": "d887236875dd5716", + "id": "d27810fc6244274a", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "battery", "property": "miniIcon", "propertyType": "msg", @@ -10544,17 +10584,17 @@ "y": 2160, "wires": [ [ - "7fbc30d42c489fad" + "c455ef19e22acb73" ], [ - "efd652e6e3229e56" + "035ee20ffa194a53" ] ] }, { - "id": "2e80180cdc41241e", + "id": "77d19468fb8bd068", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "battery", "property": "miniIcon", "propertyType": "msg", @@ -10575,17 +10615,17 @@ "y": 700, "wires": [ [ - "1b0d122b6a220391" + "eb6ece6fed931405" ], [ - "340656a70057b25c" + "97752e3ff82159ed" ] ] }, { - "id": "f92e89933aefb7f2", + "id": "829e954159cec9a1", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "battery color", "data": "payload", "dataType": "msg", @@ -10665,14 +10705,14 @@ "y": 660, "wires": [ [ - "340656a70057b25c" + "97752e3ff82159ed" ] ] }, { - "id": "e115cf5ba031508f", + "id": "8fd73004356eeac9", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "xValue", "func": "if (msg.unitTemp == \"W\"){\n msg.xValue = -15;\n}\nelse if (msg.unitTemp == \"kW\") {\n msg.xValue = -23;\n}\nelse if (msg.unitTemp == \"kWh\") {\n msg.xValue = -31;\n}\nelse if (msg.unitTemp == \"MWh\") {\n msg.xValue = -36;\n}\nelse if (msg.unitTemp == \"€\") {\n msg.xValue = -10;\n}\nelse if (msg.unitTemp == \"T€\") {\n msg.xValue = -19;\n}\nelse if (msg.unitTemp == \"%\") {\n msg.xValue = -13;\n}\nelse if (msg.unitTemp == \"°C\") {\n msg.xValue = -17;\n}\nelse if (msg.unitTemp == \"°F\") {\n msg.xValue = -15;\n}\nelse if (msg.unitTemp == \"K\") {\n msg.xValue = -10;\n}\nelse if (msg.unitTemp == \"hPa\") {\n msg.xValue = -29;\n}\nelse{\n msg.xValue = 0;\n}\n\nreturn msg;", "outputs": 1, @@ -10684,14 +10724,14 @@ "y": 860, "wires": [ [ - "58c369cf7d7b8945" + "95d93d87bbe2e186" ] ] }, { - "id": "fbf299c583ef8402", + "id": "a003ca966c335d35", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "unit", "data": "payload", "dataType": "msg", @@ -10778,14 +10818,14 @@ "y": 880, "wires": [ [ - "7ff8257372d7058f" + "0a26d26580341215" ] ] }, { - "id": "58c369cf7d7b8945", + "id": "95d93d87bbe2e186", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "unit", "property": "unitTemp", "propertyType": "msg", @@ -10814,23 +10854,23 @@ "y": 860, "wires": [ [ - "ef4867dd1126f8b8" + "cf6347b2287d98fb" ], [ - "069e455a61cc66d4" + "8241a5814fe734b8" ], [ - "7ff8257372d7058f" + "0a26d26580341215" ], [ - "fbf299c583ef8402" + "a003ca966c335d35" ] ] }, { - "id": "ef4867dd1126f8b8", + "id": "cf6347b2287d98fb", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Small€", "data": "payload", "dataType": "msg", @@ -10910,14 +10950,14 @@ "y": 800, "wires": [ [ - "7ff8257372d7058f" + "0a26d26580341215" ] ] }, { - "id": "7ff8257372d7058f", + "id": "0a26d26580341215", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -11004,14 +11044,14 @@ "y": 860, "wires": [ [ - "ffed084d7942ed0a" + "cb1c74976b153318" ] ] }, { - "id": "069e455a61cc66d4", + "id": "8241a5814fe734b8", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "T(€)", "data": "payload", "dataType": "msg", @@ -11098,14 +11138,14 @@ "y": 840, "wires": [ [ - "ef4867dd1126f8b8" + "cf6347b2287d98fb" ] ] }, { - "id": "afcf5b35340e1f14", + "id": "75188ad880f2dfa6", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "xValue", "func": "if (msg.unitTemp == \"W\"){\n msg.xValue = -31;\n}\nelse if (msg.unitTemp == \"kW\") {\n msg.xValue = -45;\n}\nelse if (msg.unitTemp == \"kWh\") {\n msg.xValue = -63;\n}\nelse if (msg.unitTemp == \"MWh\") {\n msg.xValue = -74;\n}\nelse if (msg.unitTemp == \"€\") {\n msg.xValue = -19;\n}\nelse if (msg.unitTemp == \"T€\") {\n msg.xValue = -39;\n}\nelse if (msg.unitTemp == \"%\") {\n msg.xValue = -27;\n}\nelse if (msg.unitTemp == \"°C\") {\n msg.xValue = -35;\n}\nelse if (msg.unitTemp == \"°F\") {\n msg.xValue = -32;\n}\nelse if (msg.unitTemp == \"K\") {\n msg.xValue = -20;\n}\nelse if (msg.unitTemp == \"hPa\") {\n msg.xValue = -56;\n}\nelse{\n msg.xValue = 0;\n}\n\nreturn msg;", "outputs": 1, @@ -11117,14 +11157,14 @@ "y": 1480, "wires": [ [ - "a29a7c0510b55958" + "c2b2126c85893f72" ] ] }, { - "id": "a29a7c0510b55958", + "id": "c2b2126c85893f72", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "unit", "property": "unitTemp", "propertyType": "msg", @@ -11153,23 +11193,23 @@ "y": 1480, "wires": [ [ - "0bf1466720076fad" + "924e7838b0e96a6b" ], [ - "79fe9a29a5d5f9b5" + "be3ccfb858f8c787" ], [ - "f11bc27090008122" + "bd14c074ec5b35f3" ], [ - "ff0034fb8aab3834" + "69b02e285545a37f" ] ] }, { - "id": "79fe9a29a5d5f9b5", + "id": "be3ccfb858f8c787", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "T(€)", "data": "payload", "dataType": "msg", @@ -11256,14 +11296,14 @@ "y": 1460, "wires": [ [ - "0bf1466720076fad" + "924e7838b0e96a6b" ] ] }, { - "id": "0bf1466720076fad", + "id": "924e7838b0e96a6b", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Big€", "data": "payload", "dataType": "msg", @@ -11343,14 +11383,14 @@ "y": 1420, "wires": [ [ - "f11bc27090008122" + "bd14c074ec5b35f3" ] ] }, { - "id": "f11bc27090008122", + "id": "bd14c074ec5b35f3", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -11437,14 +11477,14 @@ "y": 1480, "wires": [ [ - "64bb3d6ac4cf2f52" + "76d6669959ec3ce1" ] ] }, { - "id": "ff0034fb8aab3834", + "id": "69b02e285545a37f", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "unit", "data": "payload", "dataType": "msg", @@ -11531,14 +11571,14 @@ "y": 1500, "wires": [ [ - "f11bc27090008122" + "bd14c074ec5b35f3" ] ] }, { - "id": "63c6692e178de328", + "id": "df8d99649fafdd52", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "xValue", "func": "if (msg.unitTemp == \"W\"){\n msg.xValue = -15;\n}\nelse if (msg.unitTemp == \"kW\") {\n msg.xValue = -23;\n}\nelse if (msg.unitTemp == \"kWh\") {\n msg.xValue = -31;\n}\nelse if (msg.unitTemp == \"MWh\") {\n msg.xValue = -36;\n}\nelse if (msg.unitTemp == \"€\") {\n msg.xValue = -10;\n}\nelse if (msg.unitTemp == \"T€\") {\n msg.xValue = -19;\n}\nelse if (msg.unitTemp == \"%\") {\n msg.xValue = -13;\n}\nelse if (msg.unitTemp == \"°C\") {\n msg.xValue = -17;\n}\nelse if (msg.unitTemp == \"°F\") {\n msg.xValue = -15;\n}\nelse if (msg.unitTemp == \"K\") {\n msg.xValue = -10;\n}\nelse if (msg.unitTemp == \"hPa\") {\n msg.xValue = -29;\n}\nelse{\n msg.xValue = 0;\n}\n\nreturn msg;", "outputs": 1, @@ -11550,14 +11590,14 @@ "y": 2420, "wires": [ [ - "69ba6fcb1ee3c7ab" + "c99518522012c673" ] ] }, { - "id": "69ba6fcb1ee3c7ab", + "id": "c99518522012c673", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "unit", "property": "unitTemp", "propertyType": "msg", @@ -11586,23 +11626,23 @@ "y": 2420, "wires": [ [ - "4a4c70b730b04dbb" + "e4e034e449a22112" ], [ - "5fc7180eeb45fe2c" + "760db471ab9df027" ], [ - "ac78c13b8cb7a4eb" + "fda19918f1ec0c37" ], [ - "21350ff10eed6a59" + "adc9667425271bbd" ] ] }, { - "id": "ac78c13b8cb7a4eb", + "id": "fda19918f1ec0c37", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -11689,14 +11729,14 @@ "y": 2420, "wires": [ [ - "d9388c428e44fa2d" + "5267fb4c1edcf24e" ] ] }, { - "id": "5fc7180eeb45fe2c", + "id": "760db471ab9df027", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "T(€)", "data": "payload", "dataType": "msg", @@ -11783,14 +11823,14 @@ "y": 2380, "wires": [ [ - "4a4c70b730b04dbb" + "e4e034e449a22112" ] ] }, { - "id": "4a4c70b730b04dbb", + "id": "e4e034e449a22112", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Small€", "data": "payload", "dataType": "msg", @@ -11870,14 +11910,14 @@ "y": 2340, "wires": [ [ - "ac78c13b8cb7a4eb" + "fda19918f1ec0c37" ] ] }, { - "id": "21350ff10eed6a59", + "id": "adc9667425271bbd", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "unit", "data": "payload", "dataType": "msg", @@ -11964,14 +12004,14 @@ "y": 2440, "wires": [ [ - "ac78c13b8cb7a4eb" + "fda19918f1ec0c37" ] ] }, { - "id": "b3b6182f82cf6ad5", + "id": "4a6b32d01a62d047", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "xValue", "func": "if (msg.unitTemp == \"W\"){\n msg.xValue = -31;\n}\nelse if (msg.unitTemp == \"kW\") {\n msg.xValue = -45;\n}\nelse if (msg.unitTemp == \"kWh\") {\n msg.xValue = -63;\n}\nelse if (msg.unitTemp == \"MWh\") {\n msg.xValue = -74;\n}\nelse if (msg.unitTemp == \"€\") {\n msg.xValue = -19;\n}\nelse if (msg.unitTemp == \"T€\") {\n msg.xValue = -39;\n}\nelse if (msg.unitTemp == \"%\") {\n msg.xValue = -27;\n}\nelse if (msg.unitTemp == \"°C\") {\n msg.xValue = -35;\n}\nelse if (msg.unitTemp == \"°F\") {\n msg.xValue = -32;\n}\nelse if (msg.unitTemp == \"K\") {\n msg.xValue = -20;\n}\nelse if (msg.unitTemp == \"hPa\") {\n msg.xValue = -56;\n}\nelse{\n msg.xValue = 0;\n}\n\nreturn msg;", "outputs": 1, @@ -11983,14 +12023,14 @@ "y": 2980, "wires": [ [ - "d1b7479b16439ec0" + "7f310e6c2bd97648" ] ] }, { - "id": "d1b7479b16439ec0", + "id": "7f310e6c2bd97648", "type": "switch", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "unit", "property": "unitTemp", "propertyType": "msg", @@ -12019,23 +12059,23 @@ "y": 2980, "wires": [ [ - "16dc0136c1f8d40b" + "fce95ab632b10f96" ], [ - "429c22e8f7fa90a3" + "bcc7fafb9d6a2eef" ], [ - "249ed111a90f3123" + "bc7ecf5ad9325315" ], [ - "36e954a7455e497e" + "3532dd8e9baa8d9b" ] ] }, { - "id": "16dc0136c1f8d40b", + "id": "fce95ab632b10f96", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "Big€", "data": "payload", "dataType": "msg", @@ -12115,14 +12155,14 @@ "y": 2900, "wires": [ [ - "249ed111a90f3123" + "bc7ecf5ad9325315" ] ] }, { - "id": "429c22e8f7fa90a3", + "id": "bcc7fafb9d6a2eef", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "T(€)", "data": "payload", "dataType": "msg", @@ -12209,14 +12249,14 @@ "y": 2940, "wires": [ [ - "16dc0136c1f8d40b" + "fce95ab632b10f96" ] ] }, { - "id": "249ed111a90f3123", + "id": "bc7ecf5ad9325315", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "value", "data": "payload", "dataType": "msg", @@ -12303,14 +12343,14 @@ "y": 2980, "wires": [ [ - "2e5538b8f26a51b9" + "07b08490e893536c" ] ] }, { - "id": "36e954a7455e497e", + "id": "3532dd8e9baa8d9b", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "unit", "data": "payload", "dataType": "msg", @@ -12397,14 +12437,14 @@ "y": 3000, "wires": [ [ - "249ed111a90f3123" + "bc7ecf5ad9325315" ] ] }, { - "id": "64c023173b0c181f", + "id": "ec97e9b1b4bd47d4", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "3iconString", "func": "if (msg.icon == \"Lightbulb\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAADcAAAA6CAYAAAAURcGYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAVKSURBVGhDzZpp6C1jHID/1mt37dzssiuyE8IHXNxLJOUb+UKID/YtS+GDpaQkS4SSZLt1iUj2JZJ930nZk317nnfm3HvOOHPOvHPed/7/p57mvHPmvO9vzsy860x1yBr4RLnthCXLbRcsi3PKbSd0eXLyd7nthLYnt21pF7Quq+3J7Yh34tIhlQ/ztxzLi6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CfoqL0UIy8LLkASr7hrWn7hgjhIzkmAttaeC00Ech3F4hZyPpCpjlxuWL45WpRVcjqSoWFlZBdULo1ZpFRfVINLqWgQhapXqXlj0Yn1Mg2LNS/pvOGqVGqvj8UPjtRgJBqpETXmWl4VGDARD1fAeVg35P6pz62ormrVykxEyUlp059PHV52fyGll8lCptNXTLAZlFa+YPCtelYdpofra664sEQJWtSEQvVHF7euQA1Bdz2+KVWNDB4Jq3sYC/+/HB9XYTZvFqrGhYwuSKntrSBfVbd7tYtXQV8N0Ud2xVXtbEoKqoV3j1ZCur+rdKVaNosA3DG+52rRdVDu7dr39js7uae8mdSPD+ve4pNuypkk0lGqLWPLxF0SrB6tGuvoSXynvnBNTxNLZuydrrwH7Gt7v22/yJqmdBSyWA97Aw0ZUB0t5srJMTeDkQ1WHrcUh3/D9jGOL8tp0pN3tduW4HqhqPzpenpFUJx3zPlCVPuB6JOoMvSTu70P/PcR/NR0vP9FfeyD4SlecXFJhPfURNkQT3Aj+amEmdzS388enxS7AeYYH+ldncvMnGHzKCL5qN5vPKsvgZ7hSfBznuFP5VaYO5STiQSouqGo734+H0P38uQzSF3xBhrMmeQlpq171eWOYG+SWbL0XkVRfur9Coq/5oFjL/dVtAw3fjKz7Ng1botFL3zWOQM333I0xDfLwZWV0+Qd/9QinezzpjHejOKwOfLhnH8b0YzFjhAHZLkwfG+u7chVbop9ah3aNQd8x/hljquk6dU2dDalXosb13htIjpujSKpbm6qRqJ6zkfQG/f9S/MK/IgkXf8uT4falOzKE2MHXxdlp4d/F3sf2x58x6jryl8f/qYNV8sq/W6pKuMiBAeS1cUJs3dp/vLo3ozdztJUHcnVPhoJz+G4PF9z7F1si+g+Wjxfa1omiDwAAAABJRU5ErkJggg==\";\n}\nelse if (msg.icon == \"HeatPump\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAADoAAAAuCAMAAABOIvqXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKyUExURf////z8/LS0tGJ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qgYYSoiBgjZHZhXapD3ehFfx5WTwaZM50Ujhvj6VtKrUzIo2Er0ybuft9z/3ANGHUxMiGoHhuppu5Eyfo9k4/JPZNVJy7vpVtX0RSA84YsVnb+Ldaf+SWuEjWbdHxnw4DP3suwA4VvikVHo0GbsD5qSqavpL9JyrSa+LPr7/KdUJtDK+xprT1l1bFryf5G1Lz+SgeAG7p8G/J+cZjFQG35bz3wC3Zqz6J0gM1w5e1Rgew7KbjyrTL2tcd9XVI5IPGt2Tjbu1iRpZuXv37H4Xa6p7djXJHMk18Ue3T+84bFv8ZBTSpeQG/4p2/7s70irt/3+H0AqXkS7lc6uI9eb20kMnacfue3ewV9nu3t3iuYY21rXDEf1LYZtXpHu4/aInLLbBpq0dsBblxLQ/ua0txWj7B0flFupDFNydwWluKlosul/mh509HT4Q/NLtcF6WzE9E/VwR1a7dC74gAAAAASUVORK5CYII=\";\n}\nelse if (msg.icon == \"Battery\" || msg.icon == \"FromToBattery\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAAB0AAAA6CAMAAAB75KKzAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHFUExURf///9vb2xkZGQAAALe3twoKCiAgIB8fH729vVNTU/n5+fX19djY2NPT09TU1JqamkdHR5+fnyIiIqioqC8vLzg4ODc3NzQ0NC4uLjAwMJ2dnf7+/pycnBsbG/T09PPz887Ozo2NjeHh4RwcHMTExPb29jo6OhMTE+bm5l5eXkNDQ4WFhYSEhKysrAcHBwwMDA0NDX5+fhoaGvHx8enp6SUlJXx8fLW1tVJSUvv7+0ZGRk1NTW1tbZWVlWtraywsLO/v79HR0ZKSkhEREdbW1gEBAScnJ7i4uLOzs2NjYxQUFI6OjllZWaWlpfDw8GZmZkFBQfr6+snJyS0tLeTk5OXl5Xh4eOvr64qKihAQEA4ODiMjI+Dg4AMDA6SkpOPj49nZ2d/f3+fn593d3QYGBgICAgQEBJ6enqGhoQUFBcDAwOrq6kpKSjExMf39/fj4+CoqKujo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70oooFG2E1mK58alPMXpPtnVZ0XVC7ChoI25iEbM6XYIS1LepziRJxGf4PMGvWvVV+DFS0MsfyAAAAAElFTkSuQmCC\";\n}\nreturn msg;", "outputs": 1, @@ -12412,18 +12452,18 @@ "initialize": "", "finalize": "", "libs": [], - "x": 950, - "y": 780, + "x": 850, + "y": 800, "wires": [ [ - "66a5147ba950496f" + "57bfd8ed151fae7d" ] ] }, { - "id": "58e712bff7c0afd8", + "id": "0299729122da0045", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "3Icons", "data": "payload", "dataType": "msg", @@ -12499,18 +12539,18 @@ } ] }, - "x": 1230, - "y": 780, + "x": 1350, + "y": 800, "wires": [ [ - "56d3ba254d1a348b" + "9a45648fafaf341a" ] ] }, { - "id": "66a5147ba950496f", + "id": "57bfd8ed151fae7d", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "iconString", "data": "iconString", "dataType": "msg", @@ -12541,18 +12581,18 @@ "description": "Just loads the image.", "parameters": [] }, - "x": 1100, - "y": 780, + "x": 1000, + "y": 800, "wires": [ [ - "58e712bff7c0afd8" + "305cef6e61b4aff6" ] ] }, { - "id": "68e4502dc78632de", + "id": "305cef6e61b4aff6", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "xIcon", "func": "if (msg.icon == \"Lightbulb\") {\n msg.xIcon = 1;\n}\nelse if (msg.icon == \"Battery\") {\n msg.xIcon = 14;\n}\nelse if (msg.icon == \"House\") {\n msg.xIcon = 2;\n}\nelse if (msg.icon == \"Grid\") {\n msg.xIcon = 5;\n}\nelse if (msg.icon == \"FromToBattery\") {\n msg.xIcon = 7;\n}\nelse{\n msg.xIcon = 0;\n}\nreturn msg;", "outputs": 1, @@ -12560,18 +12600,18 @@ "initialize": "", "finalize": "", "libs": [], - "x": 810, - "y": 780, + "x": 1130, + "y": 800, "wires": [ [ - "64c023173b0c181f" + "0299729122da0045" ] ] }, { - "id": "972cd036e2bcf9ea", + "id": "46adc8c7d08377a0", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "4iconString", "func": "if (msg.icon == \"Lightbulb\") {\n msg.iconString = \"iVBORw0KGgoAAAANSUhEUgAAACYAAAAoCAYAAACSN4jeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAN0SURBVFhHvZhZ6E1BHMevfSdrlkT2opTlDWVLyRIR/7KVFw9C8qikvBCiFCJLlshWlAfJkgfv3ogiREn682AN38/MnNtx/2fOmbO4n/r8/zPnnvnN3LlzZjm1CmlxVkJ7978KejgrIbRhC2Rfm/Tyx5kGMYiVSWjDRsqtNlmKLZJYmYQ27IScKCeYXDLtnD4oO0kSq1Jmy5M2mcgQpw/KEiOIPIP/vvwqZ5pcW945k6DMN0mM/0Jv2c8m29DBmQRlKBtM2pjIorPkp6E3+Ak7Sfgp6blHkh76IXMTb9h8OVkekXR7GqvlCvlc3pXPZKuEPnK8nCvHyCvyskyjq9wsn8g7XIjTU26XN+RSLiTQXR6TB+VgLmTAPQfkcUnZJKiLOqmbNngZLg/LU7I/FxwE5puvNbl8UIay8cYRmzqoizqDmSLjA/2oXGeTdeiRnZJhkAVliRFBbOooxUp5yCbrLJG35HrJuAqBGMSqBJ62q3KoyVkWSQa1b+rwMUwSK3qCS8HTtd8mDQPlTRkff3kg1hyb9BMy88+Q92zSsEbSsI8mlx/mNt/qUSekYXT/U5s0TJdt5pocEIuYqTDBbpQM3t9cEDT2unxpcrXaWblDfpB8xs/wQP6SRWAo8HPy0ADboOUyXn8rf1g+3jjfuv+NM3+0QlCYmb5oo4BY8Q0ldcXrRt9m4B+Y6VliqoJYxEwlZIy9kmwSq4LNYjRMvIQ0jPGU+XjngB3JQ5v0E9Kwx5I5a5zJlYMYxCJmJcyTLLhlIQaxMknrscUy2trwJL6X20yuGJQlBrGA2NQRDBPoBblP9uKCgy/B1mWq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4KDClJsmfQaxnmoy8PivTLwUopMaqH6z5Mdi8ZOjW2LDG5+asgg9U4/fGzIMvuCQp4CYFeyfZDw1lBBts9F0koHUO4aHlHBVXjvHB6sFrGXDPH3JNDR7WBxCPbBEvKu4r3BkH58VJf2LusdGKQGIcF2X9FKBK7Xuy6jvNEUJZ46ZvwcTPmmjnmSsCOagN5zcPFg5sU4kUCj/IcI10zp62LUJvxDwbhIN4uDkJHr78g2IQ4NuaaOea6p6MSgx6sHvKQzuGrfcU+4akgXnhVcWakUChdhObUScSWGmrs+SDelLTiEBVCOEkaHcyz7WTMbS0VPCcmrglq4HNBmzuiGfN/oU1t2y26O/C+F98cXg3HBYYzSu2UlMQJll5XURFGPVjL11pincUmYaPg63UOtbGfeNxKXBjEWCkzPlL5OjfIWt1HNZClMtb/knsDj/kLarmtiP8xrR4cb3mh9zzaORuRzYL9ozBQa8Vd0Q5BRbF7avXgeMvy9rZEZUZ5sXOSyTxeZG7ZtIwpMxMlm5PrAu8ubKCfJstARuk2d4a20jSqyTJQbZWM5LivJstAW7erg9K0jIF+miwDdSj7RpuTUgNbNRFZXEv3kBjbBbVWC7VJ9p/EPz3lpUsTUQdrXRSWC7ZY5d2SxKaEwYr5XI2jhob+AeHMMdHe1m41AAAAAElFTkSuQmCC\";\n}\nreturn msg;", "outputs": 1, @@ -12583,14 +12623,14 @@ "y": 2260, "wires": [ [ - "171d0813adc0fe0c" + "f75b947ef3b19a7f" ] ] }, { - "id": "2f760141dab35847", + "id": "6a96c020c5230092", "type": "function", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "xIcon", "func": "if (msg.icon == \"Lightbulb\") {\n msg.xIcon = 1;\n}\nelse if (msg.icon == \"Battery\") {\n msg.xIcon = 9;\n}\nelse if (msg.icon == \"House\") {\n msg.xIcon = 1;\n}\nelse if (msg.icon == \"Grid\") {\n msg.xIcon = 3;\n}\nelse if (msg.icon == \"FromToBattery\") {\n msg.xIcon = 3;\n}\nelse{\n msg.xIcon = 0;\n}\nreturn msg;", "outputs": 1, @@ -12602,14 +12642,14 @@ "y": 2260, "wires": [ [ - "972cd036e2bcf9ea" + "46adc8c7d08377a0" ] ] }, { - "id": "0707f33119a0e7b7", + "id": "4321573e356f17bd", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "4Icons", "data": "payload", "dataType": "msg", @@ -12685,18 +12725,18 @@ } ] }, - "x": 1250, + "x": 1270, "y": 2260, "wires": [ [ - "4af66b2c2ea967f6" + "bfa45aa97fab023a" ] ] }, { - "id": "171d0813adc0fe0c", + "id": "f75b947ef3b19a7f", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "iconString", "data": "iconString", "dataType": "msg", @@ -12731,14 +12771,14 @@ "y": 2260, "wires": [ [ - "0707f33119a0e7b7" + "4321573e356f17bd" ] ] }, { - "id": "9473aaeff8c81197", + "id": "3dc2f1160ade1c9e", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "circleIconString", "data": "iconString", "dataType": "msg", @@ -12773,14 +12813,14 @@ "y": 660, "wires": [ [ - "fa6af9d4bb619e80" + "04bf56929f36e8b5" ] ] }, { - "id": "5f50dbe26e7ae552", + "id": "51c76f99d2bd9d7d", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "circleIconString", "data": "iconString", "dataType": "msg", @@ -12815,14 +12855,14 @@ "y": 2120, "wires": [ [ - "d7a5ebfc2ec530cd" + "e86156154ec93dd5" ] ] }, { - "id": "d7a5ebfc2ec530cd", + "id": "e86156154ec93dd5", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "draw circle", "data": "payload", "dataType": "msg", @@ -12902,14 +12942,14 @@ "y": 2160, "wires": [ [ - "d5e3bc1e2a5cf3ae" + "33b7067c0a42691e" ] ] }, { - "id": "340656a70057b25c", + "id": "97752e3ff82159ed", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "miniIconString", "data": "miniIconBS64", "dataType": "msg", @@ -12944,14 +12984,14 @@ "y": 700, "wires": [ [ - "91cde4a245ccc0ef" + "c4fa96a6cb46a0f2" ] ] }, { - "id": "efd652e6e3229e56", + "id": "035ee20ffa194a53", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "miniIconBS64", "data": "miniIconBS64", "dataType": "msg", @@ -12986,14 +13026,14 @@ "y": 2140, "wires": [ [ - "751e48ad129f904e" + "5a6f5716cfbd0e7e" ] ] }, { - "id": "751e48ad129f904e", + "id": "5a6f5716cfbd0e7e", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "mini icon", "data": "payload", "dataType": "msg", @@ -13073,14 +13113,14 @@ "y": 2180, "wires": [ [ - "8cf9a97aeb579219" + "812963c64915b4be" ] ] }, { - "id": "1b0d122b6a220391", + "id": "eb6ece6fed931405", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "battColorBS64", "data": "batteryColorBS64", "dataType": "msg", @@ -13115,14 +13155,14 @@ "y": 620, "wires": [ [ - "f92e89933aefb7f2" + "829e954159cec9a1" ] ] }, { - "id": "7fbc30d42c489fad", + "id": "c455ef19e22acb73", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "battColorBS64", "data": "batteryColorBS64", "dataType": "msg", @@ -13157,14 +13197,14 @@ "y": 2060, "wires": [ [ - "adaef0766f03dd0f" + "f6b78413e108f7a0" ] ] }, { - "id": "adaef0766f03dd0f", + "id": "f6b78413e108f7a0", "type": "jimp-image", - "z": "9c8ed30fb778bd08", + "z": "32842d881f7f6e29", "name": "battery color", "data": "payload", "dataType": "msg", @@ -13244,7 +13284,308 @@ "y": 2100, "wires": [ [ - "efd652e6e3229e56" + "035ee20ffa194a53" + ] + ] + }, + { + "id": "0e086a59a345beec", + "type": "jimp-image", + "z": "32842d881f7f6e29", + "name": "", + "data": "tempCustomIcon", + "dataType": "msg", + "ret": "img", + "parameter1": "", + "parameter1Type": "msg", + "parameter2": "", + "parameter2Type": "msg", + "parameter3": "", + "parameter3Type": "msg", + "parameter4": "", + "parameter4Type": "msg", + "parameter5": "", + "parameter5Type": "msg", + "parameter6": "", + "parameter6Type": "msg", + "parameter7": "", + "parameter7Type": "msg", + "parameter8": "", + "parameter8Type": "msg", + "sendProperty": "image", + "sendPropertyType": "msg", + "parameterCount": 0, + "jimpFunction": "none", + "selectedJimpFunction": { + "name": "none", + "fn": "none", + "description": "Just loads the image.", + "parameters": [] + }, + "x": 970, + "y": 680, + "wires": [ + [ + "d0098d744447509f" + ] + ] + }, + { + "id": "d0098d744447509f", + "type": "jimp-image", + "z": "32842d881f7f6e29", + "name": "", + "data": "image", + "dataType": "msg", + "ret": "img", + "parameter1": "58", + "parameter1Type": "num", + "parameter2": "58", + "parameter2Type": "num", + "parameter3": "RESIZE_BEZIER", + "parameter3Type": "resizeMode", + "parameter4": "", + "parameter4Type": "msg", + "parameter5": "", + "parameter5Type": "msg", + "parameter6": "", + "parameter6Type": "msg", + "parameter7": "", + "parameter7Type": "msg", + "parameter8": "", + "parameter8Type": "msg", + "sendProperty": "image", + "sendPropertyType": "msg", + "parameterCount": 3, + "jimpFunction": "scaleToFit", + "selectedJimpFunction": { + "name": "scaleToFit", + "fn": "scaleToFit", + "description": "scale the image to the largest size that fits inside the given width and height. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).", + "parameters": [ + { + "name": "w", + "type": "num|auto", + "required": true, + "hint": "the width to resize the image to (or \"Jimp.AUTO\" or -1)" + }, + { + "name": "h", + "type": "num|auto", + "required": true, + "hint": "the height to resize the image to (or \"Jimp.AUTO\" or -1)" + }, + { + "name": "mode", + "type": "resizeMode", + "required": false, + "hint": "a scaling method (e.g. Jimp.RESIZE_BEZIER)" + } + ] + }, + "x": 1110, + "y": 680, + "wires": [ + [ + "8fbd791bacd74a34" + ] + ] + }, + { + "id": "1b24c04ed19dfbb5", + "type": "function", + "z": "32842d881f7f6e29", + "name": "iconString", + "func": "let i = msg.iconNumber;\nif (eval(\"msg.customIcon\" + i)?.length > 0) {\n msg.tempCustomIcon = eval(\"msg.customIcon\" + i);\n}\nelse if (msg.customIcon?.length > 0) {\n msg.tempCustomIcon = msg.customIcon\n}\nelse {\n //No file icon 58\n msg.tempCustomIcon = \"iVBORw0KGgoAAAANSUhEUgAAAC4AAAA6CAYAAADP/mu6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAARcSURBVGhD7ZpJSyRJFMeflgvMwEwfFFcU/QYeBA9iH5oeF7wMCvoJZECEuc0XGHDBFRcEFby4b7iByAgeVcTLHAWhew6WODrTtLhXZb9/EFlmplVlRlVWVjbUD56VGZHLz8jIF5GVlUZEv3H8wZHBEeRwEx/Hvxy/c+yjQAXsqCUj0tLS9OWvHB84bIMW/8LxEx+ECgsLKSMjgzQNx0ocONft7S1dXl7KEsENx68cf4m1N4D4/xw/l5SU0O7uLuXm5lIgEBCViQKNc3R0RHV1dbIkhJI8xLXy8nLt6uqKG9sdWFx0E5/Pp3cXjf8hfEL+I0dU0uWnIBh0797Uz4Wr29HRQS0tLfT8/Iyr8SMXr3FElTeJJ4vKykoaGBig2tpaq/wvYoMweEL84eGBCgoKaHJyMpx8rdjIgifEdYqLi4U8blop/wMXr3K8kveUOID8xMQE1dfXW+VNKchz4kCXb2hoMMqvcITkPSGenv5ao6ioiKampqi1tVXIM3rL12MlNABxHqfDw0PKyclBecLBuaqqqsQyUmFNTc2rdJydnU0nJyc0Pj4uSwR3HBikXgYgHoLl8JB4Dg4OjINO1OArYi37O2ldBf24rKxM7wZRMV4JzHOYd0nrKuD8/Jz8fr8uExHcAzwdoebmZrq+vkbRZ/xJSldRBfMonr3qXeWTJ9NhONCl2F+ueTSP2yEl7jbK4jc3N7S9vU3Hx8eyJHaQxXZ2dsRjXCwoZZXp6Wn9zta2trZkqTorKyuh4ywuLsrSyFxcXGg89dX3Uc8qGIZ1GhsbieXlmn1WV1epqalJrhFlZWXJJTWUWvzu7k7r7OwMtRZic3NT1r7N8vKyad++vj6NHyRkbWSsLc6hPgDd39+/kt/Y2JC1kQkn/fj4KGuj44g4UJVfWloybdvf329bGjgmDiDf1dVlElpfX5e1L1il+cFYSRo4Kg7QP6PJI2MY62KRBo6LA8h3d3ebBNFtjCkPMTg4qD09Pcm91EiIOIB8T0+PSdQY8UiDhIkDdAEIyoOHYmxsTOPZndwqNqzijs5VMjMzKS8vT669kJ+fTz4fvgp3FsdafH5+3tTSxlhbW5NbxUbCuopVemRkRGQQYxkP9XJrdRIiPjc3ZxIcHh7WAoGAuBl7e3tNdbHKOy5ulUZLG7MHblgM7cZtkCZVcVR8dnbWJATpcNnDCXnHxO1K60Ae8xPjPph02SVu8WAwqM3MzJgERkdHbeXpeOTjFudHLdOJVQcXyFuzzf7+vqyNjFVceQA6PT2VS0QsTW1tbUqDCwap9vZ28epE5+zsTC6podTifr9fXG6ktXjmHmj5hYUFbWhoyNZ5Hc0qbhJ3V/EKKXG3SYm7TUrcbVLibmMSD/eG1ytY3UKvC0tLS2lvb0/8tMnNH9zYAZM4HvKpurpafDKfIS5+TIb/qKKiQnxXzVMDVHoGvAflSZl4PS7d/oH4fxzvsPYd8QkTafxQ8j3H93KjPhHRn98ALCddMtp7k9sAAAAASUVORK5CYII=\";\n}\n\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 840, + "y": 680, + "wires": [ + [ + "0e086a59a345beec" + ] + ] + }, + { + "id": "8fbd791bacd74a34", + "type": "function", + "z": "32842d881f7f6e29", + "name": "y/x", + "func": "const iconSize = 58;\n\nmsg.yIcon = msg.yIcon + ((iconSize / 2) - (msg.imageInfo.height / 2));\nmsg.xIcon = (iconSize / 2) - (msg.imageInfo.width / 2);\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 1250, + "y": 680, + "wires": [ + [ + "0299729122da0045" + ] + ] + }, + { + "id": "b05731eaa4a5edab", + "type": "jimp-image", + "z": "32842d881f7f6e29", + "name": "", + "data": "tempCustomIcon", + "dataType": "msg", + "ret": "img", + "parameter1": "", + "parameter1Type": "msg", + "parameter2": "", + "parameter2Type": "msg", + "parameter3": "", + "parameter3Type": "msg", + "parameter4": "", + "parameter4Type": "msg", + "parameter5": "", + "parameter5Type": "msg", + "parameter6": "", + "parameter6Type": "msg", + "parameter7": "", + "parameter7Type": "msg", + "parameter8": "", + "parameter8Type": "msg", + "sendProperty": "image", + "sendPropertyType": "msg", + "parameterCount": 0, + "jimpFunction": "none", + "selectedJimpFunction": { + "name": "none", + "fn": "none", + "description": "Just loads the image.", + "parameters": [] + }, + "x": 970, + "y": 2120, + "wires": [ + [ + "c93154e33fee6bab" + ] + ] + }, + { + "id": "c93154e33fee6bab", + "type": "jimp-image", + "z": "32842d881f7f6e29", + "name": "", + "data": "image", + "dataType": "msg", + "ret": "img", + "parameter1": "40", + "parameter1Type": "num", + "parameter2": "40", + "parameter2Type": "num", + "parameter3": "RESIZE_BEZIER", + "parameter3Type": "resizeMode", + "parameter4": "", + "parameter4Type": "msg", + "parameter5": "", + "parameter5Type": "msg", + "parameter6": "", + "parameter6Type": "msg", + "parameter7": "", + "parameter7Type": "msg", + "parameter8": "", + "parameter8Type": "msg", + "sendProperty": "image", + "sendPropertyType": "msg", + "parameterCount": 3, + "jimpFunction": "scaleToFit", + "selectedJimpFunction": { + "name": "scaleToFit", + "fn": "scaleToFit", + "description": "scale the image to the largest size that fits inside the given width and height. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).", + "parameters": [ + { + "name": "w", + "type": "num|auto", + "required": true, + "hint": "the width to resize the image to (or \"Jimp.AUTO\" or -1)" + }, + { + "name": "h", + "type": "num|auto", + "required": true, + "hint": "the height to resize the image to (or \"Jimp.AUTO\" or -1)" + }, + { + "name": "mode", + "type": "resizeMode", + "required": false, + "hint": "a scaling method (e.g. Jimp.RESIZE_BEZIER)" + } + ] + }, + "x": 1110, + "y": 2120, + "wires": [ + [ + "d9a255dfbe7e19f3" + ] + ] + }, + { + "id": "2c0fc0e0f3190611", + "type": "function", + "z": "32842d881f7f6e29", + "name": "iconString", + "func": "let i = msg.iconNumber;\nif (eval(\"msg.customIcon\" + i)?.length > 0) {\n msg.tempCustomIcon = eval(\"msg.customIcon\" + i);\n}\nelse if (msg.customIcon?.length > 0) {\n msg.tempCustomIcon = msg.customIcon \n}\nelse{\n //No file icon 40\n msg.tempCustomIcon = \"iVBORw0KGgoAAAANSUhEUgAAACAAAAAoCAYAAACfKfiZAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAO3SURBVFhH7Zg7SFtRGMe/PGor1E0HXRQcdVMQFAVBBCu+Yy2W4uLgZEUUxQcqKiIODrqIi7SkpVNp6SC4KToJIoKLb6smkSyaaGJ8nH7f54kkJrk39yYpHfqD757Xd+75n+c9iQEAPqG9QbtFixdGg8HgFkJ8xPivx6zwkAAv2suUlBQwm82AlbhAL9gwuN1uuL3l/vjQ3qL9oEQ4SIDLaDS+3tjYgIyMDLi/v38s0Qm+C+bm5mBwcFDmgA9FvcOOfZfpEEiAcDgc6BMfZmZmaBhFeXk5h2gkwkKNPccow5h7HsjDwwOH/f39sLCwQNEXqOsriqDpCOJJQCJITk6GlpYWnhLEjCK+0HRwoSShAvyj2traCvPz8xQ1oQgrinjPBUhCBdCuImhhkgir1cpJFPEZww+coEe8wQY4XFlZgaWlJVhcXOSQtnpxcTEV+c8fFsG74OzsDOvFh9nZWf/qVzScit9P58DJyQmkp6djMnawM7C6usojgY3I3EdoOpxOJ7S1tVHSQY+4j4AadOZgu2S2hC7CSNzd3clYgndBNKgKoFPNZrP5Py5RQb52u/3pRFRCVcDm5iZ/pHBlg89HHzdlbm5uYHp6mhf09va2zFVGcREeHx+LnJwcXjRTU1MCG5AloXi9XjE+Ps6++fn54vT0VJYEQ/nkg2ZDU98FOzs7Ii8vjytNTk5yQ8/xeDxidHSUfYqKisT+/r4sCUWzAGJ3d1cUFBRwxYmJiSAR19fXYmRkhMtKSkrEwcGBLAmPLgHE3t6eKCws5Mo01DQd1POhoSHOKy0tFYeHh9I7MroFEDS0eJ7zC8bGxsTw8DDHy8rKxNHRkfRSJiYBBDVUW1vrf4lobGwUeJTLUnUCBeg6iNLS0iAzM1OmALKysiA1NVWmtKNpBFwul+jp6eEe0ChUVVVxfGBgQFxdXUkvZXRPweXlpejq6uLKNTU1Ak9IfllFRQXn9fX1CbySS+/I6BJAjXd2dnLF+vr6IH+a/8rKSi7r7e3lUVJCs4CLiwvR0dHBlSwWC/f8OfTS6upq9unu7lYUoUkANd7e3s4VmpqaBH5kZEko9I66ujr2pamKJEKTgLW1NXZubm6O6scLjU5DQwPXWV9fl7nBaBJAK3t5eVngNUrmqHN+fs516IgOh+Y1EG8CBfz7N6JE81/AvyMAd4KMJR6TySRjAX/RbG1t8U02mqt0LFBHcctDbm4uJe0kwIP2Kjs7G5KSkmL+k0oN+q1I13u83lHSSY+faP6D4S8bfPsDh3KC7w5uqtIAAAAASUVORK5CYII=\";\n}\n\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 840, + "y": 2120, + "wires": [ + [ + "b05731eaa4a5edab" + ] + ] + }, + { + "id": "d9a255dfbe7e19f3", + "type": "function", + "z": "32842d881f7f6e29", + "name": "y/x", + "func": "const iconSize = 40;\n\nmsg.yIcon = msg.yIcon + ((iconSize / 2) - (msg.imageInfo.height / 2));\nmsg.xIcon = (iconSize / 2) - (msg.imageInfo.width / 2);\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 1250, + "y": 2120, + "wires": [ + [ + "4321573e356f17bd" + ] + ] + }, + { + "id": "3f72d43feb0e54c8", + "type": "function", + "z": "32842d881f7f6e29", + "name": "negative value", + "func": "for (let i = 1; i <= 4; i++) {\n for (let i2 = 1; i2 <= 3; i2++) {\n if (Number.isFinite(eval(\"msg.negativeValue\" + i + i2))){\n let abs = Math.abs(eval(\"msg.negativeValue\" + i + i2))\n let value = eval(\"msg.value\" + i + i2);\n\n if (value == undefined) { value = 0; }\n \n if (Number.isFinite(value)){\n let result = value - abs;\n eval(\"msg.value\" + i + i2 + \" = result\");\n }\n }\n }\n}\n\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 580, + "y": 1280, + "wires": [ + [ + "356253d5d2299fb5" ] ] }