Flow

This is the JSON source file for the DJ flow.
[
{
"id": "769fa68b.a92358",
"type": "function",
"z": "c06afb71.ffdce8",
"name": "",
"func": "//Defining the Item object\nfunction Item (name, hour, min) {\n this.name = name;\n this.hour = hour;\n this.min = min;\n}\n\nvar list = []; \n\nfor (var count = 0 ; msg.Options.Insert.Youtube_Search[count]!=null ; count++) {\n // console.log(doc.Options.Insert.Youtube_Search[count].Name);\n // console.log(doc.Options.Insert.Youtube_Search[count].Time);\n var item = new Item (msg.Options.Insert.Youtube_Search[count].Name,msg.Options.Insert.Youtube_Search[count].Hour,msg.Options.Insert.Youtube_Search[count].Min);\n // console.log(item);\n // list[(doc.Options.Insert.Youtube_Search[count].Time)] = doc.Options.Insert.Youtube_Search[count].Name;\n list.push(item);\n}\n\nfunction compare(a,b) {\n hour_a = a.hour;\n hour_b = b.hour;\n min_a = a.min;\n min_b = b.min;\n\n let comparison = 0;\n if (hour_a>hour_b) {\n comparison = 1; \n } \n else if (hour_a == hour_b) {\n if (min_a>min_b) {\n comparison = 1;\n } else if (min_b>min_a) {\n comparison = -1;\n } else {\n console.log(\"There is an error.\");\n }\n } else {\n comparison = -1;\n }\n return comparison;\n}\n\nlist.sort(compare);\n\nvar today = new Date();\nvar hour = today.getHours();\nvar min = today.getMinutes();\nvar temp = context.get('temp') || \"\"\n\n\nfor (var count = 0; list[count]!=null; count++) {\n if (list[count].hour == hour) {\n if (list[count].min == min) {\n \n content = list[count].name;\n if (temp != content) { \n temp = content;\n context.set('temp',temp);\n msg.payload = {\n \"cmd\":\"youtube\",\n \"search\": content\n }\n return msg;\n } else {\n return null;\n }\n }\n }\n}\nreturn null;",
"outputs": 1,
"noerr": 0,
"x": 890,
"y": 960,
"wires": [
[
"eb3d4e62.8f677",
"e0d2bd02.81d1f"
]
]
},
{
"id": "eb3d4e62.8f677",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 1030,
"y": 1000,
"wires": [
[],
[]
]
},
{
"id": "d7823c94.69b2e",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "",
"topic": "",
"payload": "{\"cmd\":\"youtube\",\"search\":\"mayday\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 1110,
"y": 220,
"wires": [
[
"4d2184e3.f0af6c"
]
]
},
{
"id": "4d2184e3.f0af6c",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 1300,
"y": 220,
"wires": [
[],
[]
]
},
{
"id": "8340ba34.435d48",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Drop",
"topic": "",
"payload": "{\"cmd\":\"drop\",\"type\":\"url\",\"src\":[\"http://cdn.ypcall.com/miki/yp/djdemo/ sugar.mp4\"],\"duration\":\"0\",\"frame\":\"t2\",\"animate\":\"fade\",\"aniduration\":\" 2\",\"bgcolor\":\"white\",\"pmode\":\"loop\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 430,
"y": 160,
"wires": [
[
"2142d9df.25bd56"
]
]
},
{
"id": "2142d9df.25bd56",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 610,
"y": 160,
"wires": [
[],
[]
]
},
{
"id": "58ed1ff6.856d",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Notify",
"topic": "",
"payload": "{\"cmd\":\"notify\",\"msg\":\"Jay Chou@12:00\\nMay Day@15:00\\n Sugar@18:00\",\"duration\":\"30\",\"color\":\"black\",\"size\":\"20\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 430,
"y": 220,
"wires": [
[
"3fdbce8d.a88cf2"
]
]
},
{
"id": "3fdbce8d.a88cf2",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 610,
"y": 220,
"wires": [
[],
[]
]
},
{
"id": "f4c6f927.eb7098",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Toast",
"topic": "",
"payload": "{\"cmd\":\"toast\",\"msg\":\"Hello World!\",\"size\":\"20\",\"heading\":\"Welcome\",\"icon\":\"info\",\"transition\":\"plain\",\"duration\": \"5\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 1450,
"y": 160,
"wires": [
[
"9145e4b5.202768"
]
]
},
{
"id": "9145e4b5.202768",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 1630,
"y": 160,
"wires": [
[],
[]
]
},
{
"id": "f448e323.a34fc",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Marquee",
"topic": "",
"payload": "{\"cmd\":\"marquee\",\"msg\":\"Hello World!\",\"duration\":\"30\",\"color\":\"lime\",\"size\":\"4\",\"bgcolor\":\"white\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 1460,
"y": 220,
"wires": [
[
"2838d89b.43a288"
]
]
},
{
"id": "2838d89b.43a288",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 1630,
"y": 220,
"wires": [
[],
[]
]
},
{
"id": "1ace4d8e.6161b2",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Text",
"topic": "",
"payload": "{\"cmd\":\"text\",\"msg\":\"Jay Chou@12:00\\nMay Day@15:00\\n Sugar@18:00\",\"duration\":\"15\",\"color\":\"black\",\"size\":\"5\",\"bgcolor\":\"white\",\"align\":\"left\",\" frame\":\"main\",\"animate\":\"slide\",\"aniduration\":\"2\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 770,
"y": 160,
"wires": [
[
"5b296ad4.64a404"
]
]
},
{
"id": "5b296ad4.64a404",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 950,
"y": 160,
"wires": [
[],
[]
]
},
{
"id": "1faa3abd.7acfc5",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "App",
"topic": "",
"payload": "{\"cmd\":\"app\",\"duration\":\"0\",\"frame\":\"t2\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 770,
"y": 220,
"wires": [
[
"a12a49e.199abb8"
]
]
},
{
"id": "a12a49e.199abb8",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 950,
"y": 220,
"wires": [
[],
[]
]
},
{
"id": "1493d403.41ee1c",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "YouTube",
"topic": "",
"payload": "{\"cmd\":\"youtube\",\"search\":\"sugar\",\"duration\":\"0\",\"frame\":\"t2\",\"pmode\":\"l oop\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 1800,
"y": 220,
"wires": [
[
"caafa5a8.930538"
]
]
},
{
"id": "caafa5a8.930538",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 1970,
"y": 220,
"wires": [
[],
[]
]
},
{
"id": "55d4d118.7bca5",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Touch",
"topic": "",
"payload": "{\"cmd\":\"touch\",\"option\":\"playnext\",\"value\":\"\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 1790,
"y": 160,
"wires": [
[
"18c03110.5d53ff"
]
]
},
{
"id": "18c03110.5d53ff",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 1970,
"y": 160,
"wires": [
[],
[]
]
},
{
"id": "4db62001.f817",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Status",
"topic": "",
"payload": "{\"cmd\":\"status\",\"option\":\"frame\",\"value\":\"main\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 1110,
"y": 160,
"wires": [
[
"8e23abc.1f1ff58"
]
]
},
{
"id": "8e23abc.1f1ff58",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 1290,
"y": 160,
"wires": [
[],
[]
]
},
{
"id": "6a865c60.3a4234",
"type": "function",
"z": "c06afb71.ffdce8",
"name": "",
"func": "//Defining the Item object\nfunction Item (name, hour, min) {\n this.name = name;\n this.hour = hour;\n this.min = min;\n}\n\nvar list = []; \n\nfor (var count = 0 ; msg.payload.Options.Insert.Youtube_Search[count]!=null ; count++) {\n // console.log(doc.Options.Insert.Youtube_Search[count].Name);\n // console.log(doc.Options.Insert.Youtube_Search[count].Time);\n var item = new Item (msg.payload.Options.Insert.Youtube_Search[count].Name,msg.payload.Options.Insert.Youtube_Search[count].Hour,msg.payload.Options.Insert.Youtube_Search[count].Min);\n // console.log(item);\n // list[(doc.Options.Insert.Youtube_Search[count].Time)] = doc.Options.Insert.Youtube_Search[count].Name;\n list.push(item);\n}\n\nfunction compare(a,b) {\n hour_a = a.hour;\n hour_b = b.hour;\n min_a = a.min;\n min_b = b.min;\n\n let comparison = 0;\n if (hour_a>hour_b) {\n comparison = 1; \n } \n else if (hour_a == hour_b) {\n if (min_a>min_b) {\n comparison = 1;\n } else if (min_b>min_a) {\n comparison = -1;\n } else {\n console.log(\"There is an error.\");\n }\n } else {\n comparison = -1;\n }\n return comparison;\n}\n\nlist.sort(compare);\n\nvar today = new Date();\nvar hour = today.getHours();\nvar min = today.getMinutes();\nvar temp = context.get('temp') || \"\"\n\n\nfor (var count = 0; list[count]!=null; count++) {\n if (list[count].hour == hour) {\n if (list[count].min == min) {\n \n content = list[count].name;\n if (temp != content) { \n temp = content;\n context.set('temp',temp);\n msg.payload = {\n \"cmd\":\"youtube\",\n \"search\": content\n }\n return msg;\n } else {\n return null;\n }\n }\n }\n}\nreturn null;",
"outputs": 1,
"noerr": 0,
"x": 430,
"y": 420,
"wires": [
[
"69090a17.71b2a4",
"31ceaa65.522d36"
]
]
},
{
"id": "69090a17.71b2a4",
"type": "debug",
"z": "c06afb71.ffdce8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"x": 590,
"y": 380,
"wires": []
},
{
"id": "31ceaa65.522d36",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 590,
"y": 460,
"wires": [
[],
[]
]
},
{
"id": "58817e01.3562b",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Promoter",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 740,
"y": 560,
"wires": [
[
"aed7f58f.8152b8"
]
]
},
{
"id": "aed7f58f.8152b8",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>cman",
"topic": "dj://promoter",
"name": "send",
"x": 910,
"y": 560,
"wires": [
[],
[]
]
},
{
"id": "a4d4caa5.5f9f88",
"type": "function",
"z": "c06afb71.ffdce8",
"name": "",
"func": "var str = msg.inctl.To.Topic;\n\nif ( str == \"dj://promoter\" ) { \n \n var count = context.get('count') || 0;\n \n if (count ==0) {\n msg.payload = {\n \"cmd\":\"notify\",\n \"msg\":\"This is the notify function! I will appear on the top of the page!\",\n \"duration\":\"10\",\n \"color\":\"red\",\n \"size\":\"10\",\n }\n count++;\n context.set('count',count);\n msg.delay = 10000;\n \n }\n \n else if (count ==1) {\n msg.payload = {\n \"cmd\":\"notify\",\n \"msg\":\"My colours and size and duration can all be customized\",\n \"duration\":\"10\",\n \"color\":\"blue\",\n \"size\":\"15\",\n }\n count++;\n context.set('count',count);\n msg.delay = 10000;\n \n }\n \n else if (count ==2) {\n msg.payload = {\n \"cmd\":\"toast\",\n \"msg\":\"This is the toast function, I appear on the bottom right of the page and serves as a notification icon\",\n \"heading\":\"Hi there!\",\n \"icon\":\"info\",\n \"transition\":\"slide\",\n \"duration\":\"10\",\n }\n count++;\n context.set('count',count);\n msg.delay = 10000;\n \n }\n \n else if (count ==3) {\n msg.payload = {\n \"cmd\":\"marquee\",\n \"msg\":\"This is the marquee function, basically like scrolling text. Cool!\",\n \"duration\":\"25\",\n \"size\":\"10\",\n \"color\":\"black\",\n \"bgcolor\":\"white\"\n }\n count++;\n context.set('count',count);\n msg.delay = 25000;\n \n }\n \n else if (count ==4) {\n \n msg.payload = {\n \"cmd\":\"text\",\n \"msg\":\"This is the text function! Just simple text~\",\n \"duration\":\"10\",\n \"size\":\"10\",\n \"bgcolor\":\"black\",\n \"color\":\"white\",\n \"animate\":\"fade\"\n }\n count++;\n context.set('count',count);\n msg.delay = 10000;\n \n }\n \n else if (count ==5) {\n msg.payload = {\n \"cmd\":\"text\",\n \"msg\":\"SmartScreen can play Youtube Videos within Youtube Videos!\",\n \"duration\":\"5\",\n \"size\":\"10\",\n \"bgcolor\":\"black\",\n \"color\":\"white\",\n \"animate\":\"fade\"\n }\n count++;\n context.set('count',count);\n msg.delay = 5000;\n }\n \n else if (count ==6) {\n msg.payload = {\n \"cmd\":\"youtube\",\n \"search\":\"sugar\",\n \"frame\":\"main\",\n \"duration\":\"0\",\n }\n count++;\n context.set('count',count);\n }\n \n else if (count ==7) {\n msg.payload = {\n \"cmd\":\"youtube\",\n \"search\":\"mayday\",\n \"frame\":\"t1\",\n \"duration\":\"0\",\n }\n count++;\n context.set('count',count);\n }\n}\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1370,
"y": 860,
"wires": [
[
"4addcc82.730f34",
"bd2d08a6.8bc618"
]
]
},
{
"id": "4addcc82.730f34",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 1290,
"y": 1000,
"wires": [
[
"123fedcc.8c6482"
],
[
"123fedcc.8c6482"
]
]
},
{
"id": "bd2d08a6.8bc618",
"type": "debug",
"z": "c06afb71.ffdce8",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"x": 1530,
"y": 860,
"wires": []
},
{
"id": "123fedcc.8c6482",
"type": "delay",
"z": "c06afb71.ffdce8",
"name": "",
"pauseType": "delayv",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1440,
"y": 1000,
"wires": [
[
"a4d4caa5.5f9f88"
]
]
},
{
"id": "d4705cf6.f16bc",
"type": "comment",
"z": "c06afb71.ffdce8",
"name": "Scheduled Play",
"info": "",
"x": 820,
"y": 880,
"wires": []
},
{
"id": "fde6ae77.5512",
"type": "comment",
"z": "c06afb71.ffdce8",
"name": "Promoter",
"info": "",
"x": 1380,
"y": 800,
"wires": []
},
{
"id": "f1d39de2.c87f5",
"type": "retEvent",
"z": "c06afb71.ffdce8",
"name": "retEvent",
"errorCode": 0,
"errorMsg": "OK",
"x": 1300,
"y": 500,
"wires": []
},
{
"id": "5f4c78d9.8a1c18",
"type": "onEvent",
"z": "c06afb71.ffdce8",
"event": "message",
"name": "onEvent",
"x": 1300,
"y": 580,
"wires": [
[
"f1d39de2.c87f5",
"a4d4caa5.5f9f88",
"c0cd38dc.e44838",
"83427be7.c494c8",
"c12a73c5.c0d2f"
]
]
},
{
"id": "c0cd38dc.e44838",
"type": "function",
"z": "c06afb71.ffdce8",
"name": "",
"func": "var str = msg.inctl.To.Topic;\n\nif ( str == \"dj://add\" ) { \n msg.payload = msg.data;\n return msg;\n}\n\nreturn null;\n",
"outputs": 1,
"noerr": 0,
"x": 1470,
"y": 440,
"wires": [
[
"67f20c8b.57fc54"
]
]
},
{
"id": "e47ab24.7f01f5",
"type": "debug",
"z": "c06afb71.ffdce8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"x": 1750,
"y": 440,
"wires": []
},
{
"id": "2cea41c5.9480ae",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Add",
"topic": "",
"payload": "{\"Name\":\"Jay Chou\",\"Hour\":\"9\",\"Min\":\"3\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 750,
"y": 620,
"wires": [
[
"be3eddea.8f2b8"
]
]
},
{
"id": "67f20c8b.57fc54",
"type": "page",
"z": "c06afb71.ffdce8",
"name": "",
"path": "/home/pi/Desktop/dj_add.js",
"x": 1610,
"y": 440,
"wires": [
[
"e47ab24.7f01f5"
]
]
},
{
"id": "be3eddea.8f2b8",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>cman",
"topic": "dj://add",
"name": "send",
"x": 910,
"y": 620,
"wires": [
[],
[]
]
},
{
"id": "f7628e5d.65055",
"type": "comment",
"z": "c06afb71.ffdce8",
"name": "Add",
"info": "",
"x": 1630,
"y": 380,
"wires": []
},
{
"id": "c2756916.8fc6f8",
"type": "page",
"z": "c06afb71.ffdce8",
"name": "",
"path": "/home/pi/Desktop/dj_call.js",
"x": 750,
"y": 960,
"wires": [
[
"769fa68b.a92358"
]
]
},
{
"id": "b294c10f.53e53",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "1",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"x": 590,
"y": 960,
"wires": [
[
"c2756916.8fc6f8"
]
]
},
{
"id": "83427be7.c494c8",
"type": "function",
"z": "c06afb71.ffdce8",
"name": "",
"func": "var str = msg.inctl.To.Topic;\n\nif ( str == \"dj://delete\" ) { \n msg.payload = msg.data;\n return msg;\n}\n\nreturn null;\n",
"outputs": 1,
"noerr": 0,
"x": 1470,
"y": 580,
"wires": [
[
"48cc72f2.ecd52c"
]
]
},
{
"id": "48cc72f2.ecd52c",
"type": "page",
"z": "c06afb71.ffdce8",
"name": "",
"path": "/home/pi/Desktop/dj_delete.js",
"x": 1610,
"y": 580,
"wires": [
[
"33b269f1.4457f6"
]
]
},
{
"id": "33b269f1.4457f6",
"type": "debug",
"z": "c06afb71.ffdce8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"x": 1750,
"y": 580,
"wires": []
},
{
"id": "7a10d203.63d88c",
"type": "comment",
"z": "c06afb71.ffdce8",
"name": "Delete",
"info": "",
"x": 1630,
"y": 520,
"wires": []
},
{
"id": "9b413ba6.2c07f8",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "Delete",
"topic": "",
"payload": "{\"Name\":\"Jay Chou\",\"Hour\":\"9\",\"Min\":\"3\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 750,
"y": 680,
"wires": [
[
"faa2e437.ec5748"
]
]
},
{
"id": "faa2e437.ec5748",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>cman",
"topic": "dj://delete",
"name": "send",
"x": 910,
"y": 680,
"wires": [
[],
[]
]
},
{
"id": "e0d2bd02.81d1f",
"type": "debug",
"z": "c06afb71.ffdce8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"x": 1030,
"y": 920,
"wires": []
},
{
"id": "c33821b2.cdb2e",
"type": "comment",
"z": "c06afb71.ffdce8",
"name": "List",
"info": "",
"x": 1630,
"y": 660,
"wires": []
},
{
"id": "c12a73c5.c0d2f",
"type": "function",
"z": "c06afb71.ffdce8",
"name": "",
"func": "var str = msg.inctl.To.Topic;\n\nif ( str == \"dj://list\" ) { \n msg.payload = msg.data;\n return msg;\n}\n\nreturn null;\n",
"outputs": 1,
"noerr": 0,
"x": 1470,
"y": 720,
"wires": [
[
"b6fb60e.0b9d6a"
]
]
},
{
"id": "ccce459d.eb5f58",
"type": "debug",
"z": "c06afb71.ffdce8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"x": 1890,
"y": 760,
"wires": []
},
{
"id": "b6fb60e.0b9d6a",
"type": "page",
"z": "c06afb71.ffdce8",
"name": "",
"path": "/home/pi/Desktop/dj_list.js",
"x": 1610,
"y": 720,
"wires": [
[
"4803ba44.9b65c4"
]
]
},
{
"id": "f254a66b.f817a8",
"type": "inject",
"z": "c06afb71.ffdce8",
"name": "List",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 750,
"y": 740,
"wires": [
[
"59067941.212488"
]
]
},
{
"id": "59067941.212488",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>cman",
"topic": "dj://list",
"name": "send",
"x": 910,
"y": 740,
"wires": [
[],
[]
]
},
{
"id": "30f44338.1c9efc",
"type": "comment",
"z": "c06afb71.ffdce8",
"name": "Commands",
"info": "",
"x": 830,
"y": 500,
"wires": []
},
{
"id": "4803ba44.9b65c4",
"type": "function",
"z": "c06afb71.ffdce8",
"name": "",
"func": "var str = msg.payload;\n\nmsg.payload = {\n \"cmd\": \"text\",\n \"msg\": str,\n \"duration\": \"15\",\n \"color\": \"black\",\n \"size\": \"5\",\n \"bgcolor\": \"white\",\n \"align\": \"left\",\n \" frame\": \"main\",\n \"animate\": \"slide\",\n \"aniduration\": \"2\"\n}\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1750,
"y": 720,
"wires": [
[
"4ae70864.d6b3e8",
"ccce459d.eb5f58"
]
]
},
{
"id": "4ae70864.d6b3e8",
"type": "send",
"z": "c06afb71.ffdce8",
"DDN": ">>ylobby",
"topic": "ss://ylobby",
"name": "send",
"x": 1890,
"y": 680,
"wires": [
[],
[]
]
}
]