cymplecy

NR1

Jun 21st, 2020
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 48.20 KB | None | 0 0
  1. [{"id":"42652991.2d0e78","type":"subflow","name":"+ hh:mm:ss","info":"","category":"","in":[{"x":40,"y":60,"wires":[{"id":"68633fa6.25f2e"}]}],"out":[{"x":380,"y":60,"wires":[{"id":"f8c1604f.03e36","port":0}]}],"env":[],"color":"#87A980","icon":"node-red-contrib-sun-position/clock-white.png","status":{"x":300,"y":140,"wires":[{"id":"421b10be.1db69","port":0}]}},{"id":"f8c1604f.03e36","type":"change","z":"42652991.2d0e78","name":"only & mytimes","rules":[{"t":"delete","p":"mydate","pt":"msg"},{"t":"delete","p":"myyear","pt":"msg"},{"t":"delete","p":"mymonth","pt":"msg"},{"t":"delete","p":"mymonthn","pt":"msg"},{"t":"delete","p":"mydom","pt":"msg"},{"t":"delete","p":"myday","pt":"msg"},{"t":"delete","p":"myhourpm","pt":"msg"},{"t":"delete","p":"myhour","pt":"msg"},{"t":"delete","p":"mytime","pt":"msg"},{"t":"delete","p":"myminute","pt":"msg"},{"t":"delete","p":"myminutes","pt":"msg"},{"t":"delete","p":"mysecond","pt":"msg"},{"t":"delete","p":"myepoch","pt":"msg"},{"t":"delete","p":"myrawdate","pt":"msg"},{"t":"delete","p":"mypm","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":220,"y":60,"wires":[["421b10be.1db69"]]},{"id":"68633fa6.25f2e","type":"simpletime","z":"42652991.2d0e78","name":"","x":115,"y":60,"wires":[["f8c1604f.03e36"]],"l":false},{"id":"421b10be.1db69","type":"change","z":"42652991.2d0e78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"mytimes","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":170,"y":140,"wires":[[]]},{"id":"274b5f3b.348bc","type":"debug","z":"e1dfe9ca.bed568","name":"FILTERED","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload.description.summary","statusType":"msg","x":470,"y":100,"wires":[]},{"id":"d93e7ac3.b40608","type":"link out","z":"e1dfe9ca.bed568","name":"Alexa Activity","links":["d03ce0bd.3b9fe","eb472c98.79cf6","82433e1.bbda2c"],"x":275,"y":20,"wires":[]},{"id":"ec66b453.64a208","type":"alexa-remote-event","z":"e1dfe9ca.bed568","name":"","account":"1207b237.2effbe","event":"ws-device-activity","x":110,"y":40,"wires":[["d93e7ac3.b40608","1d55059.1cb22fa","8841ab1a.c0e858"]]},{"id":"f82ad984.2dbd18","type":"link out","z":"e1dfe9ca.bed568","name":"Alexa phrase","links":["5b55735.0f3a28c","78da7ca0.30d154","b6e43d2f.a424f","d9e4a221.919df","9a7052c1.cedf4","67027652.26ec28","15dd023b.2df83e","c31ab2eb.412cb"],"x":410,"y":320,"wires":[],"icon":"font-awesome/fa-arrow-right","l":true},{"id":"ce9b91e.0def17","type":"debug","z":"e1dfe9ca.bed568","name":"OTHER","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","x":260,"y":1180,"wires":[]},{"id":"f814d772.18ea38","type":"alexa-remote-routine","z":"e1dfe9ca.bed568","name":"","account":"1207b237.2effbe","routineNode":{"type":"custom","payload":{"type":"msg","value":"payload"}},"x":826,"y":1076,"wires":[[]]},{"id":"9e029b1d.67a5a8","type":"delay","z":"e1dfe9ca.bed568","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":624,"y":1076,"wires":[["c9776587.d98418"]]},{"id":"67b05cb4.150ff4","type":"change","z":"e1dfe9ca.bed568","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{    \"type\":\"speak\",    \"payload\":{       \"type\":\"regular\",       \"text\":\"Hello!\",       \"devices\":[          \"This Device\"       ]    } }","tot":"json"},{"t":"set","p":"payload.payload.devices[0]","pt":"msg","to":"name","tot":"msg"},{"t":"set","p":"payload.payload.text","pt":"msg","to":"summary","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":1076,"wires":[["9e029b1d.67a5a8","6b18599c.1c9738"]]},{"id":"8841ab1a.c0e858","type":"debug","z":"e1dfe9ca.bed568","name":"ALL","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":370,"y":40,"wires":[]},{"id":"6b18599c.1c9738","type":"debug","z":"e1dfe9ca.bed568","name":"SPEAK","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","x":546,"y":1232,"wires":[]},{"id":"2649fc8e.d5b3e4","type":"Blockly","z":"e1dfe9ca.bed568","language":"en","func":"/**\n * Describe this function...\n */\nfunction updateStatus() {\n  node.status({fill:\"blue\", shape:\"ring\", text:(new Date(new Date().getTime()).toISOString().replace(\"T\", \" \").replace(\"Z\", \"\").slice(11, 19))});\n}\n\n\nnode.status({fill:\"blue\", shape:\"ring\", text:(msg['payload'])});\nsetTimeout(updateStatus,5000);\nnode.send([msg]);\n","workspaceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"node_status\" id=\"-q]9djvY@E8Albi9w,~p\" x=\"-62\" y=\"37\"><field name=\"COLOUR\">#0000FF</field><field name=\"SHAPE\">RING</field><value name=\"TEXT_INPUT\"><shadow type=\"text\" id=\"3j2!~cqDWAv}vYelS:oF\"><field name=\"TEXT\"></field></shadow><block type=\"node_object_get\" id=\"ULD#a=O@M1@1VF0,Rn!d\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"YMp8b0u$]FM~^%rpyL1(\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"y0,xWH9a)Lht|celK76N\"><field name=\"TEXT\">payload</field></shadow></value></block></value><next><block type=\"misc_javascript\" id=\"EBa*S5]8A4sMfT)K_%2/\"><value name=\"STATEMENT\"><shadow type=\"text\" id=\"/J-`}USPNi+:e[5`5qbT\"><field name=\"TEXT\">setTimeout(updateStatus,5000)</field></shadow></value><next><block type=\"node_send\" id=\"qdfRE~cw#VyuTbxCDA+*\"><field name=\"OUTPUT_NR\">1</field><value name=\"MESSAGE_INPUT\"><shadow type=\"node_msg\" id=\"kxT=_t=P,,+$:#8))O$M\"></shadow></value></block></next></block></next></block><block type=\"procedures_defnoreturn\" id=\"]O3L!)BV4*n,fWvVpf`b\" x=\"-112\" y=\"187\"><field name=\"NAME\">updateStatus</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"node_status\" id=\"7`iLot{OKo%$4GoNsw1-\"><field name=\"COLOUR\">#0000FF</field><field name=\"SHAPE\">RING</field><value name=\"TEXT_INPUT\"><shadow type=\"text\" id=\"3j2!~cqDWAv}vYelS:oF\"><field name=\"TEXT\"></field></shadow><block type=\"text_getSubstring\" id=\"%s/S35{,H@X(5o?+6RQ3\" inline=\"false\"><mutation at1=\"true\" at2=\"true\"></mutation><field name=\"WHERE1\">FROM_START</field><field name=\"WHERE2\">FROM_START</field><value name=\"STRING\"><block type=\"datetime_convert_from_date\" id=\"4^63_e@3a/Fo4Q#Z~nkV\"><field name=\"FORMAT\">full_date</field><value name=\"INPUT\"><shadow type=\"datetime_timestamp\" id=\"ysIOP_j{!:H2^_==}5gK\"></shadow></value></block></value><value name=\"AT1\"><block type=\"math_number\" id=\"2=G4!Nib7R:/I3wl],B-\"><field name=\"NUM\">12</field></block></value><value name=\"AT2\"><block type=\"math_number\" id=\".?U,VSE+M!kDqor##trf\"><field name=\"NUM\">19</field></block></value></block></value></block></statement></block></xml>","outputs":1,"name":"Status","x":147,"y":1076,"wires":[["67b05cb4.150ff4","ce9b91e.0def17"]],"icon":"node-red/status.svg","l":false},{"id":"61018ae0.38a0f4","type":"inject","z":"e1dfe9ca.bed568","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"toggle","payloadType":"str","x":556,"y":1024,"wires":[["c9776587.d98418"]],"icon":"node-red-contrib-queue-gate/queue.png"},{"id":"c9776587.d98418","type":"q-gate","z":"e1dfe9ca.bed568","name":"","controlTopic":"control","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","queueCmd":"queue","defaultCmd":"default","triggerCmd":"trigger","flushCmd":"flush","resetCmd":"reset","maxQueueLength":"100","keepNewest":false,"qToggle":false,"persist":true,"x":770,"y":1024,"wires":[["f814d772.18ea38"]]},{"id":"9625ff85.490d4","type":"change","z":"e1dfe9ca.bed568","name":"extract summary","rules":[{"t":"set","p":"name","pt":"msg","to":"payload.name","tot":"msg"},{"t":"set","p":"summary","pt":"msg","to":"payload.description.summary","tot":"msg"},{"t":"change","p":"summary","pt":"msg","from":"alexa ","fromt":"str","to":"","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"summary","tot":"msg"},{"t":"set","p":"simon_says","pt":"msg","to":"$contains(payload, 'simon says') ? $substringAfter(payload, 'simon says ') ","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"$contains(payload, 'simon says') ? $substringAfter(payload, 'simon says ') : summary","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":120,"y":180,"wires":[["b166eb5e.fb00b8"]]},{"id":"6229351d.9fd2ec","type":"debug","z":"e1dfe9ca.bed568","name":"ALEXA_PHRASE","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"msg","x":430,"y":260,"wires":[]},{"id":"c3779270.1e77","type":"Blockly","z":"e1dfe9ca.bed568","language":"en","func":"if ((msg['payload']['activityStatus']) == 'SUCCESS') {\n  if ((msg['payload']['description']['summary']) == '') {\n    return;\n  }\n  if ((msg['payload']['description']['summary']) == 'alexa') {\n    return;\n  }\n  if ((msg['payload']['description']['summary']) == String('simon says ') + String(flow.get('lastSpeak'))) {\n    return;\n  }\n  node.status({fill:\"blue\", shape:\"ring\", text:(msg['payload']['description']['summary'])});\n  return msg;\n}\n","workspaceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"controls_if\" id=\"vk-K(cPHgbYg{%;7z!i^\" x=\"-137\" y=\"-262\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"$UQHDHG:m7t`G9AeF0vX\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"node_object_get\" id=\"`V0P,s^ydIX)EsM8#]Zr\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"ictmD)e+,Trr6.,N,NF@\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"LslX4*6T^,ltSYFc`q56\"><field name=\"TEXT\">payload.activityStatus</field></shadow></value></block></value><value name=\"B\"><block type=\"text\" id=\"[RE+H#y3{Zlp9A)wL`@^\"><field name=\"TEXT\">SUCCESS</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\" id=\"Z@%!}?S/#ZMVY{vfl%-[\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"dADsYm[t(~?wn}|N;Hf~\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"node_object_get\" id=\"rSZ4wrC*jUc|ml^7k~HO\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"{i0?G;DrO4+7(}SoXuVp\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"SbVulfV?Wx;sf{U?V-Rp\"><field name=\"TEXT\">payload.description.summary</field></shadow></value></block></value><value name=\"B\"><block type=\"text\" id=\"%12!R~6(n88?z=I;$g}f\"><field name=\"TEXT\"></field></block></value></block></value><statement name=\"DO0\"><block type=\"node_return\" id=\"]:RAycnfxj#,Rk$UJPcL\"></block></statement><next><block type=\"controls_if\" id=\":Ke8wz=?42_=nquVGLt+\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"_L52onAL~gQ9`O?6t|_G\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"node_object_get\" id=\"B.K2k3(h(jT]u:R9s=HB\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"iE9%l6hbi0_3_j}RG7p6\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"x(_JM5@m56j8GJn_?mvh\"><field name=\"TEXT\">payload.description.summary</field></shadow></value></block></value><value name=\"B\"><block type=\"text\" id=\"M@qs%Oc:8?esX#LaFmH2\"><field name=\"TEXT\">alexa</field></block></value></block></value><statement name=\"DO0\"><block type=\"node_return\" id=\"(]I]UV:M%@(i=8zDR-0z\"></block></statement><next><block type=\"controls_if\" id=\"8u#D~+8@-rH^CiA1oJVq\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"G(+rE)]q|HR-6Z|gU6zi\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"node_object_get\" id=\"TzbMGm0yKP8`q;;X%P40\" inline=\"false\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"1x(@`{eYVx1IXcosm+do\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"I?tLge9.Mh{Ttr[Jz3gG\"><field name=\"TEXT\">payload.description.summary</field></shadow></value></block></value><value name=\"B\"><block type=\"text_join\" id=\"y-lqac_ZT~+sj{=Bt#x#\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><block type=\"text\" id=\"5C^`.FG[7Ps5^An7Va=l\"><field name=\"TEXT\">simon says </field></block></value><value name=\"ADD1\"><block type=\"node_object_get\" id=\"@;V?TDi*jrti.tu*TS`y\" inline=\"false\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"@;NIunbrX+GXKS/0S$cZ\"></shadow><block type=\"node_flow_memory\" id=\"fW/gb+]6Ogblm_X/k-*z\"></block></value><value name=\"field_name\"><shadow type=\"text\" id=\"f?i*3Kt$+t^/QH7Ne|+=\"><field name=\"TEXT\">lastSpeak</field></shadow></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"node_return\" id=\"8v+($e?{zI)L3,kA1[Hn\"></block></statement><next><block type=\"node_status\" id=\"x^k;pAI(,7,h[ShTx:KU\"><field name=\"COLOUR\">#0000FF</field><field name=\"SHAPE\">RING</field><value name=\"TEXT_INPUT\"><shadow type=\"text\" id=\"=}A`@jwUY:qg]Kb=c(K4\"><field name=\"TEXT\"></field></shadow><block type=\"node_object_get\" id=\"[GH2vqNQw37kNVvnDa]R\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"NK/)RUO{g%j/!K{zWmVA\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"4hKcif!8W)Kt:.=inOic\"><field name=\"TEXT\">payload.description.summary</field></shadow></value></block></value><next><block type=\"node_return_message\" id=\"MT?}DEe=u[~jiM(QcJN9\"><field name=\"OUTPUT_NR\">1</field><value name=\"MESSAGE_INPUT\"><shadow type=\"node_msg\" id=\"I_U.003J5_}l$y|5}L^y\"></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></xml>","outputs":1,"name":"Filter","x":150,"y":100,"wires":[["2c460b07.803fc4"]]},{"id":"b166eb5e.fb00b8","type":"Blockly","z":"e1dfe9ca.bed568","language":"en","func":"var wordsNum, words, hasNumber, j, searchDigitName, digit, payloadOut;\n\n\nwordsNum = (JSON.parse('{\"zero\":0,\"oh\":0,\"one\":1,\"two\":2,\"to\":2,\"too\":2,\"three\":3,\"four\":4,\"five\":5,\"six\":6,\"seven\":7,\"eight\":8,\"nine\":9}'));\nwords = (msg['payload']).split(' ');\nhasNumber = false;\nfor (var j_index in words) {\n  j = words[j_index];\n  searchDigitName = j;\n  if (searchDigitName in wordsNum) {\n    digit = (wordsNum[searchDigitName]);\n    if (hasNumber == false) {\n      payloadOut = 0;\n      hasNumber = true;\n    }\n    payloadOut = payloadOut * 10 + digit;\n  }\n}\nif (hasNumber) {\n  msg['number'] = payloadOut;\n}\nnode.status({fill:\"blue\", shape:\"ring\", text:(msg['number'])});\nreturn msg;\n","workspaceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><variables><variable type=\"\" id=\"1BOG]pf~:j_v}5EjZ)Hl\">wordsNum</variable><variable type=\"\" id=\")i(Hk6-See8KhPX7YYt]\">words</variable><variable type=\"\" id=\"@n]M?|,pq/gCtVh[|KW@\">hasNumber</variable><variable type=\"\" id=\"A-,$O)LJq:9F9`-d{KHW\">j</variable><variable type=\"\" id=\"Gr=i2X,F=gJlcp~rVeFY\">searchDigitName</variable><variable type=\"\" id=\"Z4Jg^jbm#/b7=yiu[Hf:\">digit</variable><variable type=\"\" id=\"G5^H{Or99Otas!T*NT/J\">payloadOut</variable></variables><block type=\"variables_set\" id=\"_+z%LN$r9azIJmlD;1AC\" x=\"13\" y=\"-13\"><field name=\"VAR\" id=\"1BOG]pf~:j_v}5EjZ)Hl\" variabletype=\"\">wordsNum</field><value name=\"VALUE\"><block type=\"object_from_json\" id=\"$Y;AuoHdjUf}#$;=L:~d\"><value name=\"JSON\"><shadow type=\"text\" id=\"|a4)yd/-3M8jw+t-/VHk\"><field name=\"TEXT\">{\"zero\":0,\"oh\":0,\"one\":1,\"two\":2,\"to\":2,\"too\":2,\"three\":3,\"four\":4,\"five\":5,\"six\":6,\"seven\":7,\"eight\":8,\"nine\":9}</field></shadow></value></block></value><next><block type=\"variables_set\" id=\"Azxdi$o4H}rD0_VRiGY^\"><field name=\"VAR\" id=\")i(Hk6-See8KhPX7YYt]\" variabletype=\"\">words</field><value name=\"VALUE\"><block type=\"lists_split\" id=\"okDvn)`STLd=MtF6Vq6j\"><mutation mode=\"SPLIT\"></mutation><field name=\"MODE\">SPLIT</field><value name=\"INPUT\"><block type=\"node_object_get\" id=\"K7La:uFqN321A.{~0mXa\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"{j8,zowm0^CLgWp*N2To\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"cjTN@xvxNM`)-G~fOPoG\"><field name=\"TEXT\">payload</field></shadow></value></block></value><value name=\"DELIM\"><shadow type=\"text\" id=\"JeeYTFYIbC~zyBHK@N%e\"><field name=\"TEXT\"> </field></shadow></value></block></value><next><block type=\"variables_set\" id=\"6p%C,)4}q%2E)!w!qE1H\"><field name=\"VAR\" id=\"@n]M?|,pq/gCtVh[|KW@\" variabletype=\"\">hasNumber</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"gU(:ZD=3egBf:Q$;qZ-+\"><field name=\"BOOL\">FALSE</field></block></value><next><block type=\"controls_forEach\" id=\"3noB[uqZNVIGD4fz]zNE\"><field name=\"VAR\" id=\"A-,$O)LJq:9F9`-d{KHW\" variabletype=\"\">j</field><value name=\"LIST\"><block type=\"variables_get\" id=\"R}@T9by*R$c~5)KINNX+\"><field name=\"VAR\" id=\")i(Hk6-See8KhPX7YYt]\" variabletype=\"\">words</field></block></value><statement name=\"DO\"><block type=\"variables_set\" id=\".ma6vxs2D=m=uqZ-*-_w\"><field name=\"VAR\" id=\"Gr=i2X,F=gJlcp~rVeFY\" variabletype=\"\">searchDigitName</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"2p)%P1{]p4IM$lk+XzY:\"><field name=\"VAR\" id=\"A-,$O)LJq:9F9`-d{KHW\" variabletype=\"\">j</field></block></value><next><block type=\"controls_if\" id=\"V=Czq^M7;(H?7j_HOz{O\"><value name=\"IF0\"><block type=\"node_object_get\" id=\"s=sy6}XOeM=(+lMt1Em[\"><mutation action=\"HAS\"></mutation><field name=\"action\">HAS</field><value name=\"object\"><shadow type=\"node_msg\" id=\":2rxerGJ`SY?^oza,%dO\"></shadow><block type=\"variables_get\" id=\"-DEMt%l=itWaEkLpUz}e\"><field name=\"VAR\" id=\"1BOG]pf~:j_v}5EjZ)Hl\" variabletype=\"\">wordsNum</field></block></value><value name=\"field_name\"><shadow type=\"text\" id=\"wy.@D}L9+b^GnE2E8NQa\"><field name=\"TEXT\">payload</field></shadow><block type=\"variables_get\" id=\"e+cTN*LcPPb^razdDmvZ\"><field name=\"VAR\" id=\"Gr=i2X,F=gJlcp~rVeFY\" variabletype=\"\">searchDigitName</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"=-e`j?ES:A7~(Ce.9!$-\"><field name=\"VAR\" id=\"Z4Jg^jbm#/b7=yiu[Hf:\" variabletype=\"\">digit</field><value name=\"VALUE\"><block type=\"node_object_get\" id=\"Y|NfnUlSl6=t-626jj2{\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"$dOE]3MrR/gLE%(KIahh\"></shadow><block type=\"variables_get\" id=\"Y^Jbv3@qQ0L.][2@P#R5\"><field name=\"VAR\" id=\"1BOG]pf~:j_v}5EjZ)Hl\" variabletype=\"\">wordsNum</field></block></value><value name=\"field_name\"><shadow type=\"text\" id=\"k`:!!wAewpVeJw:B.z(7\"><field name=\"TEXT\">payload</field></shadow><block type=\"variables_get\" id=\"/=2X,8ds~2U5ARkXh!QR\"><field name=\"VAR\" id=\"Gr=i2X,F=gJlcp~rVeFY\" variabletype=\"\">searchDigitName</field></block></value></block></value><next><block type=\"controls_if\" id=\":Vxq3%:xB6:SWDq^=Uem\"><value name=\"IF0\"><block type=\"logic_compare\" id=\",_IfTbUbwY%%Ie-)?01$\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"d9J;fzPyL:G9fJGRz-W!\"><field name=\"VAR\" id=\"@n]M?|,pq/gCtVh[|KW@\" variabletype=\"\">hasNumber</field></block></value><value name=\"B\"><block type=\"logic_boolean\" id=\"nS?PS;J:8]d.-X%?oW2e\"><field name=\"BOOL\">FALSE</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"zpbdc8R]_g!K+!k@K[4i\"><field name=\"VAR\" id=\"G5^H{Or99Otas!T*NT/J\" variabletype=\"\">payloadOut</field><value name=\"VALUE\"><block type=\"math_number\" id=\"0)]$b:hv%LYzE48y@qS:\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"lD7C~es%zrj(bK9[S/;h\"><field name=\"VAR\" id=\"@n]M?|,pq/gCtVh[|KW@\" variabletype=\"\">hasNumber</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"o=l`q:t+6LC`yrG#P~A4\"><field name=\"BOOL\">TRUE</field></block></value></block></next></block></statement><next><block type=\"variables_set\" id=\"v8i5|#Vl{`a?Km#sVi*d\"><field name=\"VAR\" id=\"G5^H{Or99Otas!T*NT/J\" variabletype=\"\">payloadOut</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"OSTlV11]UW@uW?Qc|y@D\"><field name=\"OP\">ADD</field><value name=\"A\"><shadow type=\"math_number\" id=\"S%_xU]JJTC:[I1dJ^959\"><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"]cBlc)P6tHiuPz%Yog+]\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><shadow type=\"math_number\" id=\"i4]_gYShC_;z4uAU]W}`\"><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\".rXI0bAg[}qhY~B]j^a*\"><field name=\"VAR\" id=\"G5^H{Or99Otas!T*NT/J\" variabletype=\"\">payloadOut</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"is_2H3C^|LeD7bi7mD*U\"><field name=\"NUM\">10</field></shadow></value></block></value><value name=\"B\"><shadow type=\"math_number\" id=\".Q6Tb@_X[}jZK#:oTxJi\"><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"),l#X~wR;$ud(v@|wa]b\"><field name=\"VAR\" id=\"Z4Jg^jbm#/b7=yiu[Hf:\" variabletype=\"\">digit</field></block></value></block></value></block></next></block></next></block></statement></block></next></block></statement><next><block type=\"controls_if\" id=\"nT*-{H$ETccx9HA!yj5=\"><value name=\"IF0\"><block type=\"variables_get\" id=\"M8Q4(-c#}#Q:HADaG;qe\"><field name=\"VAR\" id=\"@n]M?|,pq/gCtVh[|KW@\" variabletype=\"\">hasNumber</field></block></value><statement name=\"DO0\"><block type=\"node_object_set\" id=\"N+Z`nlT/YunhHqxA|QdT\"><value name=\"object_field\"><shadow type=\"node_msg\" id=\"TMHL(avC`KAthz5gtwX|\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"`x!.S]JtW^,w.1SwZs6+\"><field name=\"TEXT\">number</field></shadow></value><value name=\"value_field\"><shadow type=\"text\" id=\":pCe8wPzA||umSi7=Ujh\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"3.PA+%$3}-bVnkON$ED9\"><field name=\"VAR\" id=\"G5^H{Or99Otas!T*NT/J\" variabletype=\"\">payloadOut</field></block></value></block></statement><next><block type=\"node_status\" id=\"i~stMjuM?[~:AM+i6.1:\"><field name=\"COLOUR\">#0000FF</field><field name=\"SHAPE\">RING</field><value name=\"TEXT_INPUT\"><shadow type=\"text\" id=\"qS`kEk}(]]|[NWaJIZiw\"><field name=\"TEXT\"></field></shadow><block type=\"node_object_get\" id=\"1*EMDmk0=!iZ+Wbr6uPA\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"bl%vh;_:f*usXdR=y@v+\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"N!ymnKCgzi7~ykU9C97u\"><field name=\"TEXT\">number</field></shadow></value></block></value><next><block type=\"node_return_message\" id=\"XkEJ=tsPVvk9S.o7PKF%\"><field name=\"OUTPUT_NR\">1</field><value name=\"MESSAGE_INPUT\"><shadow type=\"node_msg\" id=\"ehr3ud+Wqygz7i_^cEg2\"></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></xml>","outputs":1,"name":"Extract numbers","x":120,"y":260,"wires":[["f82ad984.2dbd18","45f368ed.3c0338","6229351d.9fd2ec"]]},{"id":"371ebf65.1cc92","type":"inject","z":"e1dfe9ca.bed568","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"MasterBedroomDot","payload":"Done","payloadType":"str","x":410,"y":620,"wires":[["9fa6deb4.496c9"]]},{"id":"500b4024.7b71b","type":"link out","z":"e1dfe9ca.bed568","name":"","links":["b973f63e.a72bf8","8dfb6000.d29c6"],"x":1055,"y":620,"wires":[]},{"id":"9fa6deb4.496c9","type":"change","z":"e1dfe9ca.bed568","name":"","rules":[{"t":"set","p":"origPayload","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"{    \"type\":\"speak\",    \"payload\":{       \"type\":\"regular\",       \"text\":\"Hello!\",       \"devices\":[          \"This Device\"       ]    } }","tot":"json"},{"t":"set","p":"payload.payload.devices[0]","pt":"msg","to":"topic","tot":"msg"},{"t":"set","p":"payload.payload.text","pt":"msg","to":"origPayload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":620,"wires":[["500b4024.7b71b"]]},{"id":"7ba4e3b1.c54cfc","type":"link in","z":"e1dfe9ca.bed568","name":"Alexa Speak topic/payload","links":["be0c743a.30ae28"],"x":715,"y":600,"wires":[["9fa6deb4.496c9"]]},{"id":"3c2e8e2e.b75cd2","type":"mqtt out","z":"e1dfe9ca.bed568","name":"","topic":"","qos":"0","retain":"true","broker":"c6e3938e.73397","x":870,"y":300,"wires":[]},{"id":"8541ca19.0de558","type":"Blockly","z":"e1dfe9ca.bed568","language":"en","func":"var creationTimestamp;\n\nfunction subsequenceFromStartLast(sequence, at1) {\n  var start = at1;\n  var end = sequence.length - 1 + 1;\n  return sequence.slice(start, end);\n}\n\n\ncreationTimestamp = (msg['payload']['creationTimestamp']);\nnode.status({fill:\"blue\", shape:\"ring\", text:(msg['mytimes'])});\nmsg['topic'] = (['log/all/',new Date(new Date().getTime()).toISOString().replace(\"T\", \" \").replace(\"Z\", \"\").slice(0, 10),'/',subsequenceFromStartLast(new Date(new Date().getTime()).toISOString().replace(\"T\", \" \").replace(\"Z\", \"\"), 11),'_win10_alexa_rcvd'].join(''));\nreturn msg;\n","workspaceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><variables><variable type=\"\" id=\"Edff${wIaaGaW[(),-Kj\">creationTimestamp</variable></variables><block type=\"variables_set\" id=\"X9}~)c1b6G!0gDBT4!]N\" x=\"38\" y=\"12\"><field name=\"VAR\" id=\"Edff${wIaaGaW[(),-Kj\" variabletype=\"\">creationTimestamp</field><value name=\"VALUE\"><block type=\"node_object_get\" id=\"7%L!~uDDgC#.MCqBb#MH\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"EKWnb;p4[GuY9b~Qo-~-\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"YIPlGk~oD5a/$j808A-H\"><field name=\"TEXT\">payload.creationTimestamp</field></shadow></value></block></value><next><block type=\"node_status\" id=\"uu+K!5S?kL7-j~OwcQ9:\"><field name=\"COLOUR\">#0000FF</field><field name=\"SHAPE\">RING</field><value name=\"TEXT_INPUT\"><shadow type=\"text\" id=\"XU$X*b-~RgPHq0TMS?%v\"><field name=\"TEXT\"></field></shadow><block type=\"node_object_get\" id=\"l:5cD.d{^KJjMC:?Zh(y\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"$8o!n+6@Y+bs~N0dD27D\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"KK=9IV)Do)`t3gX@ac23\"><field name=\"TEXT\">mytimes</field></shadow></value></block></value><next><block type=\"node_object_set\" id=\"f(#L%;OG.+M?`CRETH0k\"><value name=\"object_field\"><shadow type=\"node_msg\" id=\"6qd8Z0aeSA2f#M)V#le(\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"MVZLb7iy)m~O1#0murAW\"><field name=\"TEXT\">topic</field></shadow></value><value name=\"value_field\"><shadow type=\"text\" id=\"s:*EU;Ir=rM@rTcCw?xb\"><field name=\"TEXT\"></field></shadow><block type=\"text_join\" id=\"AeL(?1?#*O5t0SbPmsnD\"><mutation items=\"5\"></mutation><value name=\"ADD0\"><block type=\"text\" id=\"C-EB.odWN=+nc!O5pBtu\"><field name=\"TEXT\">log/all/</field></block></value><value name=\"ADD1\"><block type=\"text_getSubstring\" id=\"{cz((8EA}M_6_p8L+T6k\"><mutation at1=\"false\" at2=\"true\"></mutation><field name=\"WHERE1\">FIRST</field><field name=\"WHERE2\">FROM_START</field><value name=\"STRING\"><block type=\"datetime_convert_from_date\" id=\"N63/JC7B$`tPJ4;IeCd$\"><field name=\"FORMAT\">full_date</field><value name=\"INPUT\"><shadow type=\"datetime_timestamp\" id=\"M62Q:PkgRWgyu8zuh4#y\"></shadow></value></block></value><value name=\"AT2\"><block type=\"math_number\" id=\",:C9lag+s28dwx24BsWP\"><field name=\"NUM\">10</field></block></value></block></value><value name=\"ADD2\"><block type=\"text\" id=\"8})WeBsX@;:DbV9b$CRT\"><field name=\"TEXT\">/</field></block></value><value name=\"ADD3\"><block type=\"text_getSubstring\" id=\"):8lBVjk{Zrojsi~Gx/.\"><mutation at1=\"true\" at2=\"false\"></mutation><field name=\"WHERE1\">FROM_START</field><field name=\"WHERE2\">LAST</field><value name=\"STRING\"><block type=\"datetime_convert_from_date\" id=\"s~vpj+vY`J*v1c=i$d^_\"><field name=\"FORMAT\">full_date</field><value name=\"INPUT\"><shadow type=\"datetime_timestamp\" id=\"-Q*YoLIgIaL($46c:l|`\"></shadow></value></block></value><value name=\"AT1\"><block type=\"math_number\" id=\"9!O+ty=P=v~wVHU,TKj{\"><field name=\"NUM\">12</field></block></value></block></value><value name=\"ADD4\"><block type=\"text\" id=\"S-}ieR94.:E8Tru$uNSc\"><field name=\"TEXT\">_win10_alexa_rcvd</field></block></value></block></value><next><block type=\"node_return_message\" id=\"{m{XTa}gN(^GOP1^eWYi\"><field name=\"OUTPUT_NR\">1</field><value name=\"MESSAGE_INPUT\"><shadow type=\"node_msg\" id=\"NH!@!)iSDAR.7f:ILo*!\"></shadow></value></block></next></block></next></block></next></block></xml>","outputs":1,"name":"set log topic","x":635,"y":320,"wires":[["3c2e8e2e.b75cd2"]],"icon":"node-red/batch.svg","l":false},{"id":"8585c130.ca0e","type":"inject","z":"e1dfe9ca.bed568","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":440,"wires":[["effbaa56.3088b8"]]},{"id":"effbaa56.3088b8","type":"debug","z":"e1dfe9ca.bed568","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"$flowContext('lastSpeak')","targetType":"jsonata","statusVal":"$flowContext('lastSpeak')","statusType":"auto","x":580,"y":440,"wires":[]},{"id":"1d55059.1cb22fa","type":"subflow:42652991.2d0e78","z":"e1dfe9ca.bed568","name":"","env":[],"x":55,"y":100,"wires":[["c3779270.1e77"]],"l":false},{"id":"2c460b07.803fc4","type":"function","z":"e1dfe9ca.bed568","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":315,"y":100,"wires":[["274b5f3b.348bc","9625ff85.490d4","feb928f2.9b8fa8"]],"icon":"node-red/arrow-in.svg","l":false},{"id":"a7b79c19.be16d","type":"group","z":"e1dfe9ca.bed568","name":"Test","style":{"stroke":"#999999","fill":"none","label":false},"nodes":["9ce73323.154f3","1dc7140a.04384c","1b9c4efd.2465f1"],"x":805,"y":450,"w":420,"h":100},{"id":"9ce73323.154f3","type":"link out","z":"e1dfe9ca.bed568","g":"a7b79c19.be16d","name":"","links":["b973f63e.a72bf8","96b8b27f.0c9bd","dd663104.7533d","8dfb6000.d29c6"],"x":1175,"y":500,"wires":[],"icon":"font-awesome/fa-long-arrow-right"},{"id":"1dc7140a.04384c","type":"inject","z":"e1dfe9ca.bed568","g":"a7b79c19.be16d","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":875,"y":500,"wires":[["1b9c4efd.2465f1"]],"l":false},{"id":"1b9c4efd.2465f1","type":"change","z":"e1dfe9ca.bed568","g":"a7b79c19.be16d","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{    \"type\":\"speak\",    \"payload\":{       \"type\":\"regular\",       \"text\":\"Hello!\",       \"devices\":[          \"This Device\"       ]    } }","tot":"json"},{"t":"set","p":"payload.payload.devices[0]","pt":"msg","to":"\"MasterBedroomDot","tot":"str"},{"t":"set","p":"payload.payload.text","pt":"msg","to":"This is a <prosody = \"loud\"speech</prosody> test","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":500,"wires":[["9ce73323.154f3"]]},{"id":"a932e39e.6bf55","type":"group","z":"e1dfe9ca.bed568","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1"},"nodes":["f386234d.b8a9f","1e01737f.6e247d","b973f63e.a72bf8","9a56e89a.59b748","cebfd708.e5bc38","8fc21fc.63967e","bc156a3d.308858","db94c026.28011"],"x":645,"y":10,"w":470,"h":240},{"id":"f386234d.b8a9f","type":"alexa-remote-routine","z":"e1dfe9ca.bed568","g":"a932e39e.6bf55","name":"","account":"1207b237.2effbe","routineNode":{"type":"custom","payload":{"type":"msg","value":"payload"}},"x":980,"y":120,"wires":[["9a56e89a.59b748"]]},{"id":"1e01737f.6e247d","type":"debug","z":"e1dfe9ca.bed568","g":"a932e39e.6bf55","name":"CUSTOM IN","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":970,"y":60,"wires":[]},{"id":"b973f63e.a72bf8","type":"link in","z":"e1dfe9ca.bed568","g":"a932e39e.6bf55","name":"Routine Custom in","links":["648b6f8c.b93f5","50fd4b88.969034","fb0ed3b2.a1198","99f1ea6.a614d18","f80f61f6.21f78","a24ce120.1da58","e13b6e0d.9c889","a8e7a26b.a7f0b","58407298.55594c","ea93201.a8886e","9ce73323.154f3","cb78c173.89bf1","500b4024.7b71b"],"x":695,"y":120,"wires":[["cebfd708.e5bc38"]],"icon":"font-awesome/fa-long-arrow-right"},{"id":"9a56e89a.59b748","type":"debug","z":"e1dfe9ca.bed568","g":"a932e39e.6bf55","name":"CUSTOM OUT","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":980,"y":180,"wires":[]},{"id":"cebfd708.e5bc38","type":"change","z":"e1dfe9ca.bed568","g":"a932e39e.6bf55","name":"","rules":[{"t":"set","p":"lastSpeak","pt":"flow","to":"payload.payload.text","tot":"msg"},{"t":"delete","p":"summary","pt":"msg"},{"t":"delete","p":"name","pt":"msg"},{"t":"delete","p":"simon_says","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":835,"y":120,"wires":[["1e01737f.6e247d","f386234d.b8a9f","bc156a3d.308858"]],"l":false},{"id":"8fc21fc.63967e","type":"Blockly","z":"e1dfe9ca.bed568","g":"a932e39e.6bf55","language":"en","func":"/**\n * Describe this function...\n */\nfunction clearStatus() {\n  node.status({});\n}\n\n\nnode.status({fill:\"blue\", shape:\"ring\", text:(msg['payload'])});\nsetTimeout(clearStatus,5000);\nnode.send([msg]);\n","workspaceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"node_status\" id=\"-q]9djvY@E8Albi9w,~p\" x=\"-62\" y=\"37\"><field name=\"COLOUR\">#0000FF</field><field name=\"SHAPE\">RING</field><value name=\"TEXT_INPUT\"><shadow type=\"text\" id=\"3j2!~cqDWAv}vYelS:oF\"><field name=\"TEXT\"></field></shadow><block type=\"node_object_get\" id=\"ULD#a=O@M1@1VF0,Rn!d\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"YMp8b0u$]FM~^%rpyL1(\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"y0,xWH9a)Lht|celK76N\"><field name=\"TEXT\">payload</field></shadow></value></block></value><next><block type=\"misc_javascript\" id=\"EBa*S5]8A4sMfT)K_%2/\"><value name=\"STATEMENT\"><shadow type=\"text\" id=\"/J-`}USPNi+:e[5`5qbT\"><field name=\"TEXT\">setTimeout(clearStatus,5000)</field></shadow></value><next><block type=\"node_send\" id=\"qdfRE~cw#VyuTbxCDA+*\"><field name=\"OUTPUT_NR\">1</field><value name=\"MESSAGE_INPUT\"><shadow type=\"node_msg\" id=\"kxT=_t=P,,+$:#8))O$M\"></shadow></value></block></next></block></next></block><block type=\"procedures_defnoreturn\" id=\"]O3L!)BV4*n,fWvVpf`b\" x=\"-63\" y=\"188\"><field name=\"NAME\">clearStatus</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"node_status\" id=\"7`iLot{OKo%$4GoNsw1-\"><field name=\"COLOUR\">#0000FF</field><field name=\"SHAPE\">RING</field><value name=\"TEXT_INPUT\"><shadow type=\"text\" id=\"3j2!~cqDWAv}vYelS:oF\"><field name=\"TEXT\"></field></shadow></value></block></statement></block></xml>","outputs":1,"name":"Status","x":775,"y":120,"wires":[[]],"icon":"node-red/status.svg","l":false},{"id":"bc156a3d.308858","type":"Blockly","z":"e1dfe9ca.bed568","g":"a932e39e.6bf55","language":"en","func":"var creationTimestamp;\n\n\ncreationTimestamp = (msg['payload']['creationTimestamp']);\nnode.status({fill:\"blue\", shape:\"ring\", text:(msg['mytimes'])});\nmsg['topic'] = (['log/all/',new Date(new Date().getTime()).toISOString().replace(\"T\", \" \").replace(\"Z\", \"\").slice(0, 10),'/',(msg['mytimes']),'_win10_alexa_speak'].join(''));\nreturn msg;\n","workspaceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><variables><variable type=\"\" id=\"Edff${wIaaGaW[(),-Kj\">creationTimestamp</variable></variables><block type=\"variables_set\" id=\"X9}~)c1b6G!0gDBT4!]N\" x=\"38\" y=\"12\"><field name=\"VAR\" id=\"Edff${wIaaGaW[(),-Kj\" variabletype=\"\">creationTimestamp</field><value name=\"VALUE\"><block type=\"node_object_get\" id=\"7%L!~uDDgC#.MCqBb#MH\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"EKWnb;p4[GuY9b~Qo-~-\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"YIPlGk~oD5a/$j808A-H\"><field name=\"TEXT\">payload.creationTimestamp</field></shadow></value></block></value><next><block type=\"node_status\" id=\"uu+K!5S?kL7-j~OwcQ9:\"><field name=\"COLOUR\">#0000FF</field><field name=\"SHAPE\">RING</field><value name=\"TEXT_INPUT\"><shadow type=\"text\" id=\"XU$X*b-~RgPHq0TMS?%v\"><field name=\"TEXT\"></field></shadow><block type=\"node_object_get\" id=\"EOp%,lzRq^Z9PirW=j~S\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"I,ROu[vJ:3!]3!,HLvk2\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\";_Y}(51gXZ0nF$[hjl=6\"><field name=\"TEXT\">mytimes</field></shadow></value></block></value><next><block type=\"node_object_set\" id=\"f(#L%;OG.+M?`CRETH0k\"><value name=\"object_field\"><shadow type=\"node_msg\" id=\"6qd8Z0aeSA2f#M)V#le(\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"MVZLb7iy)m~O1#0murAW\"><field name=\"TEXT\">topic</field></shadow></value><value name=\"value_field\"><shadow type=\"text\" id=\"s:*EU;Ir=rM@rTcCw?xb\"><field name=\"TEXT\"></field></shadow><block type=\"text_join\" id=\"AeL(?1?#*O5t0SbPmsnD\"><mutation items=\"5\"></mutation><value name=\"ADD0\"><block type=\"text\" id=\"C-EB.odWN=+nc!O5pBtu\"><field name=\"TEXT\">log/all/</field></block></value><value name=\"ADD1\"><block type=\"text_getSubstring\" id=\"{cz((8EA}M_6_p8L+T6k\"><mutation at1=\"false\" at2=\"true\"></mutation><field name=\"WHERE1\">FIRST</field><field name=\"WHERE2\">FROM_START</field><value name=\"STRING\"><block type=\"datetime_convert_from_date\" id=\"N63/JC7B$`tPJ4;IeCd$\"><field name=\"FORMAT\">full_date</field><value name=\"INPUT\"><shadow type=\"datetime_timestamp\" id=\"M62Q:PkgRWgyu8zuh4#y\"></shadow></value></block></value><value name=\"AT2\"><block type=\"math_number\" id=\",:C9lag+s28dwx24BsWP\"><field name=\"NUM\">10</field></block></value></block></value><value name=\"ADD2\"><block type=\"text\" id=\"8})WeBsX@;:DbV9b$CRT\"><field name=\"TEXT\">/</field></block></value><value name=\"ADD3\"><block type=\"node_object_get\" id=\"?_Mpm1;|eSstO~F!Icme\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"k!4$Ym$xd#U_$PFne%kK\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"rf}=@{Q#:$brVhWk^Syz\"><field name=\"TEXT\">mytimes</field></shadow></value></block></value><value name=\"ADD4\"><block type=\"text\" id=\"S-}ieR94.:E8Tru$uNSc\"><field name=\"TEXT\">_win10_alexa_speak</field></block></value></block></value><next><block type=\"node_return_message\" id=\"{m{XTa}gN(^GOP1^eWYi\"><field name=\"OUTPUT_NR\">1</field><value name=\"MESSAGE_INPUT\"><shadow type=\"node_msg\" id=\"NH!@!)iSDAR.7f:ILo*!\"></shadow></value></block></next></block></next></block></next></block></xml>","outputs":1,"name":"set log topic","x":815,"y":180,"wires":[["db94c026.28011"]],"icon":"node-red/batch.svg","l":false},{"id":"db94c026.28011","type":"mqtt out","z":"e1dfe9ca.bed568","g":"a932e39e.6bf55","name":"","topic":"","qos":"0","retain":"true","broker":"c6e3938e.73397","x":770,"y":200,"wires":[]},{"id":"d695c766.063958","type":"group","z":"e1dfe9ca.bed568","name":"","style":{"stroke":"#999999","stroke-opacity":"0.1","fill":"none","label":false},"nodes":["22a3f5f7.c0f4aa","45f368ed.3c0338"],"x":5,"y":290,"w":270,"h":100},{"id":"22a3f5f7.c0f4aa","type":"mqtt out","z":"e1dfe9ca.bed568","g":"d695c766.063958","name":"","topic":"alexa/messages","qos":"2","retain":"false","broker":"c6e3938e.73397","x":160,"y":340,"wires":[]},{"id":"45f368ed.3c0338","type":"Blockly","z":"e1dfe9ca.bed568","g":"d695c766.063958","language":"en","func":"var newMsg;\n\n\nnewMsg = ({ \"payload\": msg });\ndelete newMsg['payload']['_msgid'];\nreturn newMsg;\n","workspaceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><variables><variable type=\"\" id=\"*]8pAfd-fSvwmdS!sb}T\">newMsg</variable></variables><block type=\"variables_set\" id=\"M0CBu?P0(|orZlX;wcwK\" x=\"13\" y=\"87\"><field name=\"VAR\" id=\"*]8pAfd-fSvwmdS!sb}T\" variabletype=\"\">newMsg</field><value name=\"VALUE\"><block type=\"object_create\" id=\"p4F[mLmPd;[Z.1]^aw`W\"><mutation num_fields=\"1\"><field name=\"payload\"></field></mutation><field name=\"field1\">payload</field><value name=\"field_input1\"><block type=\"node_msg\" id=\"+M@1}LTRj9z./P@z,c1Z\"></block></value></block></value><next><block type=\"node_object_get\" id=\"-BCt1?Dxt^WGtt3tOX,f\"><mutation action=\"REMOVE\"></mutation><field name=\"action\">REMOVE</field><value name=\"object\"><shadow type=\"node_msg\" id=\"}#{P7pSg$2tg}Zrzg^PS\"></shadow><block type=\"variables_get\" id=\"09QK}usIn__/%V%Z-EjI\"><field name=\"VAR\" id=\"*]8pAfd-fSvwmdS!sb}T\" variabletype=\"\">newMsg</field></block></value><value name=\"field_name\"><shadow type=\"text\" id=\"6-2[CaFiZ+OK%p3JKH`s\"><field name=\"TEXT\">payload._msgid</field></shadow></value><next><block type=\"node_return_message\" id=\"C^XjOKC=xhS;RX@Ak_b!\"><field name=\"OUTPUT_NR\">1</field><value name=\"MESSAGE_INPUT\"><shadow type=\"node_msg\" id=\"RP#whj!M(8Lo1?Fp4r9S\"></shadow><block type=\"variables_get\" id=\"!y)Lb%po;,|Owv%``h$2\"><field name=\"VAR\" id=\"*]8pAfd-fSvwmdS!sb}T\" variabletype=\"\">newMsg</field></block></value></block></next></block></next></block></xml>","outputs":1,"name":"","x":55,"y":340,"wires":[["22a3f5f7.c0f4aa"]],"icon":"font-awesome/fa-arrow-circle-up","l":false},{"id":"dd22fa86.3ca5f8","type":"group","z":"e1dfe9ca.bed568","name":"","style":{"stroke":"#d1d1d1","stroke-opacity":"0.33","fill":"none","label":false},"nodes":["53fabdc8.095334","feb928f2.9b8fa8"],"x":345,"y":110,"w":200,"h":120},{"id":"53fabdc8.095334","type":"mqtt out","z":"e1dfe9ca.bed568","g":"dd22fa86.3ca5f8","name":"","topic":"","qos":"0","retain":"true","broker":"c6e3938e.73397","x":430,"y":180,"wires":[]},{"id":"feb928f2.9b8fa8","type":"Blockly","z":"e1dfe9ca.bed568","g":"dd22fa86.3ca5f8","language":"en","func":"var creationTimestamp;\n\n\ncreationTimestamp = (msg['payload']['creationTimestamp']);\nnode.status({fill:\"blue\", shape:\"ring\", text:(msg['mytimes'])});\nmsg['topic'] = (['log/all/',new Date(new Date().getTime()).toISOString().replace(\"T\", \" \").replace(\"Z\", \"\").slice(0, 10),'/',(msg['mytimes']),'_win10_alexa_rcvd'].join(''));\nreturn msg;\n","workspaceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><variables><variable type=\"\" id=\"Edff${wIaaGaW[(),-Kj\">creationTimestamp</variable></variables><block type=\"variables_set\" id=\"X9}~)c1b6G!0gDBT4!]N\" x=\"38\" y=\"12\"><field name=\"VAR\" id=\"Edff${wIaaGaW[(),-Kj\" variabletype=\"\">creationTimestamp</field><value name=\"VALUE\"><block type=\"node_object_get\" id=\"7%L!~uDDgC#.MCqBb#MH\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"EKWnb;p4[GuY9b~Qo-~-\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"YIPlGk~oD5a/$j808A-H\"><field name=\"TEXT\">payload.creationTimestamp</field></shadow></value></block></value><next><block type=\"node_status\" id=\"uu+K!5S?kL7-j~OwcQ9:\"><field name=\"COLOUR\">#0000FF</field><field name=\"SHAPE\">RING</field><value name=\"TEXT_INPUT\"><shadow type=\"text\" id=\"XU$X*b-~RgPHq0TMS?%v\"><field name=\"TEXT\"></field></shadow><block type=\"node_object_get\" id=\"#I*/cZr}P_+oq;F$^mKQ\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"3I^hn(EE2Sa+];~ub*C7\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"/+q_lzbz$%Nt*@?g?PF*\"><field name=\"TEXT\">mytimes</field></shadow></value></block></value><next><block type=\"node_object_set\" id=\"f(#L%;OG.+M?`CRETH0k\"><value name=\"object_field\"><shadow type=\"node_msg\" id=\"6qd8Z0aeSA2f#M)V#le(\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"MVZLb7iy)m~O1#0murAW\"><field name=\"TEXT\">topic</field></shadow></value><value name=\"value_field\"><shadow type=\"text\" id=\"s:*EU;Ir=rM@rTcCw?xb\"><field name=\"TEXT\"></field></shadow><block type=\"text_join\" id=\"AeL(?1?#*O5t0SbPmsnD\"><mutation items=\"5\"></mutation><value name=\"ADD0\"><block type=\"text\" id=\"C-EB.odWN=+nc!O5pBtu\"><field name=\"TEXT\">log/all/</field></block></value><value name=\"ADD1\"><block type=\"text_getSubstring\" id=\"{cz((8EA}M_6_p8L+T6k\"><mutation at1=\"false\" at2=\"true\"></mutation><field name=\"WHERE1\">FIRST</field><field name=\"WHERE2\">FROM_START</field><value name=\"STRING\"><block type=\"datetime_convert_from_date\" id=\"N63/JC7B$`tPJ4;IeCd$\"><field name=\"FORMAT\">full_date</field><value name=\"INPUT\"><shadow type=\"datetime_timestamp\" id=\"M62Q:PkgRWgyu8zuh4#y\"></shadow></value></block></value><value name=\"AT2\"><block type=\"math_number\" id=\",:C9lag+s28dwx24BsWP\"><field name=\"NUM\">10</field></block></value></block></value><value name=\"ADD2\"><block type=\"text\" id=\"8})WeBsX@;:DbV9b$CRT\"><field name=\"TEXT\">/</field></block></value><value name=\"ADD3\"><block type=\"node_object_get\" id=\"2?p:Q?ENroc3GKMX!h2{\"><mutation action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\" id=\"[6XUXxP:q,6|?=zufklr\"></shadow></value><value name=\"field_name\"><shadow type=\"text\" id=\"hoNgK36iODZ)t^yNSm@2\"><field name=\"TEXT\">mytimes</field></shadow></value></block></value><value name=\"ADD4\"><block type=\"text\" id=\"S-}ieR94.:E8Tru$uNSc\"><field name=\"TEXT\">_win10_alexa_rcvd</field></block></value></block></value><next><block type=\"node_return_message\" id=\"{m{XTa}gN(^GOP1^eWYi\"><field name=\"OUTPUT_NR\">1</field><value name=\"MESSAGE_INPUT\"><shadow type=\"node_msg\" id=\"NH!@!)iSDAR.7f:ILo*!\"></shadow></value></block></next></block></next></block></next></block></xml>","outputs":1,"name":"set log topic","x":495,"y":160,"wires":[["53fabdc8.095334"]],"icon":"node-red/batch.svg","l":false},{"id":"e31adbe0.6b7658","type":"group","z":"e1dfe9ca.bed568","style":{"stroke":"#999999","fill":"none","label":false},"nodes":["3f841541.fe68fa","99f1ea6.a614d18","7f7b5b37.8506c4","88891718.69c258"],"x":110,"y":490,"w":555,"h":100},{"id":"3f841541.fe68fa","type":"delay","z":"e1dfe9ca.bed568","g":"e31adbe0.6b7658","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":280,"y":540,"wires":[["88891718.69c258"]]},{"id":"99f1ea6.a614d18","type":"link out","z":"e1dfe9ca.bed568","g":"e31adbe0.6b7658","name":"","links":["b973f63e.a72bf8","96b8b27f.0c9bd","dd663104.7533d","8dfb6000.d29c6"],"x":615,"y":540,"wires":[],"icon":"font-awesome/fa-long-arrow-right"},{"id":"7f7b5b37.8506c4","type":"link in","z":"e1dfe9ca.bed568","g":"e31adbe0.6b7658","name":"Alexa say Done","links":["570185c2.52eabc"],"x":160,"y":540,"wires":[["3f841541.fe68fa"]],"icon":"font-awesome/fa-arrow-circle-o-right"},{"id":"88891718.69c258","type":"change","z":"e1dfe9ca.bed568","g":"e31adbe0.6b7658","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{    \"type\":\"speak\",    \"payload\":{       \"type\":\"regular\",       \"text\":\"Hello!\",       \"devices\":[          \"This Device\"       ]    } }","tot":"json"},{"t":"set","p":"payload.payload.devices[0]","pt":"msg","to":"name","tot":"msg"},{"t":"set","p":"payload.payload.text","pt":"msg","to":"done","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":540,"wires":[["99f1ea6.a614d18"]]},{"id":"1207b237.2effbe","type":"alexa-remote-account","z":"","name":"Simon Account","authMethod":"proxy","proxyOwnIp":"192.168.0.23","proxyPort":"3456","cookieFile":"c:\\users\\simon\\alexaremote3.txt","refreshInterval":"0","alexaServiceHost":"alexa.amazon.co.uk","amazonPage":"amazon.co.uk","acceptLanguage":"en-UK","userAgent":"","useWsMqtt":"on","autoInit":"on"},{"id":"c6e3938e.73397","type":"mqtt-broker","z":"","name":"Win8","broker":"192.168.0.23","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
Add Comment
Please, Sign In to add comment