date calendar #350
Federico83-hassio
started this conversation in
Node-RED Flows
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
[ { "id": "e292f15c7db8adf0", "type": "inject", "z": "a51db03e178d6624", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "60", "crontab": "", "once": true, "onceDelay": "", "topic": "", "payload": "", "payloadType": "date", "x": 170, "y": 1300, "wires": [ [ "beabf3bbdc7fd948" ] ] }, { "id": "beabf3bbdc7fd948", "type": "Switch Animation", "z": "a51db03e178d6624", "name": "Switch Animation", "aktiv": "true", "animation": "random", "indata": "", "inwidth": "8", "incolorHex": "", "incolorR": "255", "incolorG": "255", "incolorB": "255", "x": 350, "y": 1300, "wires": [ [ "8f7cae0c163f1abd", "b3e1ca1de0016cf7", "aa9fe30fc14b3738" ] ] }, { "id": "592db6e5a1997646", "type": "function", "z": "a51db03e178d6624", "name": "timeConvert", "func": "if ( !msg.timestamp ) msg.timestamp = Math.round(+new Date());\n\nvar dt = new Date(msg.timestamp);\nvar msg = {\n\t'month':\tdt.getMonth() +1,\n\t'day':\t\tdt.getDate(),\n\t'year':\t\tdt.getFullYear(),\n\t'hours':\tdt.getHours(),\n\t'mins':\t\tdt.getMinutes(),\n\t'msecs':\tdt.getMilliseconds()\n}\nif (msg.day == "1")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,0,65535,0,65535,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,0,65535,0,0,65535,0,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == "2")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == "3")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == "4")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,0,65535,0,65535,0,65535,0,0,65535,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0]'}\nif (msg.day == "5")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == "6")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == "7")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,0,0,65535,0,0,65535,0,0,0,0,65535,0]'}\nif (msg.day == "8")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == "9")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == "10")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,0,65535,0,65535,65535,65535,0,0,65535,0,0]'}\nmsg.payload = `${msg.day}-${msg.month}`;\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 750, "y": 1260, "wires": [ [ "a3ab25bfe3b1a315" ] ] }, { "id": "c204873786f94646", "type": "Text", "z": "a51db03e178d6624", "name": "Text", "intextString": "{{payload}}", "inbigFont": "false", "inscrollText": "auto", "inscrollTextDelay": "50", "incenterText": "true", "inposX": "8", "inposY": "1", "incolorHex": "", "incolorR": "255", "incolorG": "255", "incolorB": "255", "x": 1170, "y": 1260, "wires": [ [ "6e198cdeb406daaa" ] ] }, { "id": "a3ab25bfe3b1a315", "type": "Bitmap", "z": "a51db03e178d6624", "name": "Bitmap", "indata": "{{bpm}}", "inposX": "0", "inposY": "0", "inwidth": "8", "inheight": "8", "x": 1000, "y": 1260, "wires": [ [ "c204873786f94646" ] ] }, { "id": "fbbda747a83cb614", "type": "function", "z": "a51db03e178d6624", "name": "function 15", "func": "if ( !msg.timestamp ) msg.timestamp = Math.round(+new Date());\n\nvar dt = new Date(msg.timestamp);\nvar msg = {\n\t'month':\tdt.getMonth() +1,\n\t'day':\t\tdt.getDate(),\n\t'year':\t\tdt.getFullYear(),\n\t'hours':\tdt.getHours(),\n\t'mins':\t\tdt.getMinutes(),\n\t'msecs':\tdt.getMilliseconds()\n}\nif (msg.day == "11")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,65535,0,0,65535,65535,0,0,0,65535,0,0,0,65535,0,0,0,65535,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "12")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "13")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "14")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,0,0,0,65535,65535,0,0,65535,0,0,0,0,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0]' }\nif (msg.day == "15")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,65535,0,0,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "16")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,65535,0,0,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "17")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,0,0,65535,0,0,65535,0,0,0,0,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,65535,0,0,0,65535,0]' }\nif (msg.day == "18")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "19")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "20")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]'}\nmsg.payload = `${msg.day}-${msg.month}`;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 750, "y": 1320, "wires": [ [ "41da91aa93002efc" ] ] }, { "id": "50db8d479b5c2d48", "type": "function", "z": "a51db03e178d6624", "name": "function 16", "func": "if ( !msg.timestamp ) msg.timestamp = Math.round(+new Date());\n\nvar dt = new Date(msg.timestamp);\nvar msg = {\n\t'month':\tdt.getMonth() +1,\n\t'day':\t\tdt.getDate(),\n\t'year':\t\tdt.getFullYear(),\n\t'hours':\tdt.getHours(),\n\t'mins':\t\tdt.getMinutes(),\n\t'msecs':\tdt.getMilliseconds()\n}\nif (msg.day == "21") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,0,0,65535,65535,65535,0,0,65535,0,0,65535,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "22") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "23") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "24") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,0,0,0,0,0,65535,0,65535,0,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0]' }\nif (msg.day == "25") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "26") { msg.bmp = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "27") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,0,0,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,0,0,0,0,65535,0,65535,65535,65535,0,0,0,65535,0]' }\nif (msg.day == "28") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "29") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == "30") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,0,65535,0,0]' }\nif (msg.day == "31") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nmsg.payload = `${msg.day}-${msg.month}`;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 750, "y": 1380, "wires": [ [ "bb7ccf9f6b638647" ] ] }, { "id": "41da91aa93002efc", "type": "Bitmap", "z": "a51db03e178d6624", "name": "Bitmap", "indata": "{{bpm}}", "inposX": "0", "inposY": "0", "inwidth": "8", "inheight": "8", "x": 1000, "y": 1320, "wires": [ [ "f90ee4a01f2ec0ab" ] ] }, { "id": "bb7ccf9f6b638647", "type": "Bitmap", "z": "a51db03e178d6624", "name": "Bitmap", "indata": "{{bpm}}", "inposX": "0", "inposY": "0", "inwidth": "8", "inheight": "8", "x": 1000, "y": 1380, "wires": [ [ "41e2f3b0909aa4b4" ] ] }, { "id": "f90ee4a01f2ec0ab", "type": "Text", "z": "a51db03e178d6624", "name": "Text", "intextString": "{{payload}}", "inbigFont": "false", "inscrollText": "false", "inscrollTextDelay": "0", "incenterText": "true", "inposX": "7", "inposY": "1", "incolorHex": "", "incolorR": "255", "incolorG": "255", "incolorB": "255", "x": 1170, "y": 1320, "wires": [ [ "6e198cdeb406daaa" ] ] }, { "id": "41e2f3b0909aa4b4", "type": "Text", "z": "a51db03e178d6624", "name": "Text", "intextString": "{{payload}}", "inbigFont": "false", "inscrollText": "false", "inscrollTextDelay": "0", "incenterText": "true", "inposX": "7", "inposY": "1", "incolorHex": "", "incolorR": "255", "incolorG": "255", "incolorB": "255", "x": 1170, "y": 1380, "wires": [ [ "6e198cdeb406daaa" ] ] }, { "id": "8f7cae0c163f1abd", "type": "Screen Init", "z": "a51db03e178d6624", "name": "Screen Init", "inscreenName": "clock_1", "induration": "10", "x": 570, "y": 1260, "wires": [ [ "592db6e5a1997646" ] ] }, { "id": "b3e1ca1de0016cf7", "type": "Screen Init", "z": "a51db03e178d6624", "name": "Screen Init", "inscreenName": "clock_2", "induration": "10", "x": 570, "y": 1320, "wires": [ [ "fbbda747a83cb614" ] ] }, { "id": "aa9fe30fc14b3738", "type": "Screen Init", "z": "a51db03e178d6624", "name": "Screen Init", "inscreenName": "clock_3", "induration": "10", "x": 570, "y": 1380, "wires": [ [ "50db8d479b5c2d48" ] ] } ] Hi, can you post a file with a working flow? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello everyone, I am trying to make a calendar with day icon, this flow of mine however has a little problem, it doesn't work well if put in playlist, while if put in screen alert it works properly, is there any way to fix it? thanks to those who will help me
the flow is this
Code
```json [ { "id": "e292f15c7db8adf0", "type": "inject", "z": "a51db03e178d6624", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "60", "crontab": "", "once": true, "onceDelay": "", "topic": "", "payload": "", "payloadType": "date", "x": 170, "y": 1300, "wires": [ [ "beabf3bbdc7fd948" ] ] }, { "id": "beabf3bbdc7fd948", "type": "Switch Animation", "z": "a51db03e178d6624", "name": "Switch Animation", "aktiv": "true", "animation": "random", "indata": "", "inwidth": "8", "incolorHex": "", "incolorR": "255", "incolorG": "255", "incolorB": "255", "x": 350, "y": 1300, "wires": [ [ "8f7cae0c163f1abd", "b3e1ca1de0016cf7", "aa9fe30fc14b3738" ] ] }, { "id": "592db6e5a1997646", "type": "function", "z": "a51db03e178d6624", "name": "timeConvert", "func": "if ( !msg.timestamp ) msg.timestamp = Math.round(+new Date());\n\nvar dt = new Date(msg.timestamp);\nvar msg = {\n\t'month':\tdt.getMonth() +1,\n\t'day':\t\tdt.getDate(),\n\t'year':\t\tdt.getFullYear(),\n\t'hours':\tdt.getHours(),\n\t'mins':\t\tdt.getMinutes(),\n\t'msecs':\tdt.getMilliseconds()\n}\nif (msg.day == \"1\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,0,65535,0,65535,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,0,65535,0,0,65535,0,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == \"2\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == \"3\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == \"4\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,0,65535,0,65535,0,65535,0,0,65535,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0]'}\nif (msg.day == \"5\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == \"6\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == \"7\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,0,0,65535,0,0,65535,0,0,0,0,65535,0]'}\nif (msg.day == \"8\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == \"9\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0]'}\nif (msg.day == \"10\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,0,65535,0,65535,65535,65535,0,0,65535,0,0]'}\nmsg.payload = `${msg.day}-${msg.month}`;\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 750, "y": 1260, "wires": [ [ "a3ab25bfe3b1a315" ] ] }, { "id": "c204873786f94646", "type": "Text", "z": "a51db03e178d6624", "name": "Text", "intextString": "{{payload}}", "inbigFont": "false", "inscrollText": "auto", "inscrollTextDelay": "50", "incenterText": "true", "inposX": "8", "inposY": "1", "incolorHex": "", "incolorR": "255", "incolorG": "255", "incolorB": "255", "x": 1170, "y": 1260, "wires": [ [ "6e198cdeb406daaa" ] ] }, { "id": "a3ab25bfe3b1a315", "type": "Bitmap", "z": "a51db03e178d6624", "name": "Bitmap", "indata": "{{bpm}}", "inposX": "0", "inposY": "0", "inwidth": "8", "inheight": "8", "x": 1000, "y": 1260, "wires": [ [ "c204873786f94646" ] ] }, { "id": "fbbda747a83cb614", "type": "function", "z": "a51db03e178d6624", "name": "function 15", "func": "if ( !msg.timestamp ) msg.timestamp = Math.round(+new Date());\n\nvar dt = new Date(msg.timestamp);\nvar msg = {\n\t'month':\tdt.getMonth() +1,\n\t'day':\t\tdt.getDate(),\n\t'year':\t\tdt.getFullYear(),\n\t'hours':\tdt.getHours(),\n\t'mins':\t\tdt.getMinutes(),\n\t'msecs':\tdt.getMilliseconds()\n}\nif (msg.day == \"11\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,65535,0,0,65535,65535,0,0,0,65535,0,0,0,65535,0,0,0,65535,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"12\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"13\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"14\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,0,0,0,65535,65535,0,0,65535,0,0,0,0,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0]' }\nif (msg.day == \"15\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,65535,0,0,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"16\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,65535,0,0,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"17\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,0,0,65535,0,0,65535,0,0,0,0,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,65535,0,0,0,65535,0]' }\nif (msg.day == \"18\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"19\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,0,0,65535,0,65535,0,0,65535,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"20\")\n{msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]'}\nmsg.payload = `${msg.day}-${msg.month}`;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 750, "y": 1320, "wires": [ [ "41da91aa93002efc" ] ] }, { "id": "50db8d479b5c2d48", "type": "function", "z": "a51db03e178d6624", "name": "function 16", "func": "if ( !msg.timestamp ) msg.timestamp = Math.round(+new Date());\n\nvar dt = new Date(msg.timestamp);\nvar msg = {\n\t'month':\tdt.getMonth() +1,\n\t'day':\t\tdt.getDate(),\n\t'year':\t\tdt.getFullYear(),\n\t'hours':\tdt.getHours(),\n\t'mins':\t\tdt.getMinutes(),\n\t'msecs':\tdt.getMilliseconds()\n}\nif (msg.day == \"21\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,0,0,65535,65535,65535,0,0,65535,0,0,65535,0,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"22\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"23\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"24\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,0,0,0,0,0,65535,0,65535,0,0,0,65535,65535,65535,0,65535,0,65535,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0]' }\nif (msg.day == \"25\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"26\") { msg.bmp = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,0,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"27\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,0,0,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,0,0,0,0,65535,0,65535,65535,65535,0,0,0,65535,0]' }\nif (msg.day == \"28\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"29\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,65535,65535,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,0,0,0,0,0,65535,0,65535,65535,65535,0,65535,65535,65535,0]' }\nif (msg.day == \"30\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,0,65535,0,0,0,65535,0,65535,0,65535,0,65535,65535,65535,0,0,65535,0,0]' }\nif (msg.day == \"31\") { msg.bpm = '[63616,0,63616,0,63616,0,63616,0,63616,63616,63616,63616,63616,63616,63616,0,0,0,0,0,0,0,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,65535,65535,0,0,65535,65535,65535,0,0,65535,0,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0]' }\nmsg.payload = `${msg.day}-${msg.month}`;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 750, "y": 1380, "wires": [ [ "bb7ccf9f6b638647" ] ] }, { "id": "41da91aa93002efc", "type": "Bitmap", "z": "a51db03e178d6624", "name": "Bitmap", "indata": "{{bpm}}", "inposX": "0", "inposY": "0", "inwidth": "8", "inheight": "8", "x": 1000, "y": 1320, "wires": [ [ "f90ee4a01f2ec0ab" ] ] }, { "id": "bb7ccf9f6b638647", "type": "Bitmap", "z": "a51db03e178d6624", "name": "Bitmap", "indata": "{{bpm}}", "inposX": "0", "inposY": "0", "inwidth": "8", "inheight": "8", "x": 1000, "y": 1380, "wires": [ [ "41e2f3b0909aa4b4" ] ] }, { "id": "f90ee4a01f2ec0ab", "type": "Text", "z": "a51db03e178d6624", "name": "Text", "intextString": "{{payload}}", "inbigFont": "false", "inscrollText": "false", "inscrollTextDelay": "0", "incenterText": "true", "inposX": "7", "inposY": "1", "incolorHex": "", "incolorR": "255", "incolorG": "255", "incolorB": "255", "x": 1170, "y": 1320, "wires": [ [ "6e198cdeb406daaa" ] ] }, { "id": "41e2f3b0909aa4b4", "type": "Text", "z": "a51db03e178d6624", "name": "Text", "intextString": "{{payload}}", "inbigFont": "false", "inscrollText": "false", "inscrollTextDelay": "0", "incenterText": "true", "inposX": "7", "inposY": "1", "incolorHex": "", "incolorR": "255", "incolorG": "255", "incolorB": "255", "x": 1170, "y": 1380, "wires": [ [ "6e198cdeb406daaa" ] ] }, { "id": "8f7cae0c163f1abd", "type": "Screen Init", "z": "a51db03e178d6624", "name": "Screen Init", "inscreenName": "clock_1", "induration": "10", "x": 570, "y": 1260, "wires": [ [ "592db6e5a1997646" ] ] }, { "id": "b3e1ca1de0016cf7", "type": "Screen Init", "z": "a51db03e178d6624", "name": "Screen Init", "inscreenName": "clock_2", "induration": "10", "x": 570, "y": 1320, "wires": [ [ "fbbda747a83cb614" ] ] }, { "id": "aa9fe30fc14b3738", "type": "Screen Init", "z": "a51db03e178d6624", "name": "Screen Init", "inscreenName": "clock_3", "induration": "10", "x": 570, "y": 1380, "wires": [ [ "50db8d479b5c2d48" ] ] } ] ```Beta Was this translation helpful? Give feedback.
All reactions