[{"id":"5cd2bed2.5ace2","type":"inject","z":"6f2a11df.d569e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":520,"y":260,"wires":[["d89d41d6.f3512"]]},{"id":"d89d41d6.f3512","type":"function","z":"6f2a11df.d569e","name":"获取日期时间","func":"var myDate = new Date(); //获取当前的系统日期和时间\nvar s = myDate.getSeconds(); //获取当前秒数(0-59) \n\nif (s <= 10) {\n saohua = "秒数小于10。";\n} else if (s <= 20) {\n saohua = "秒数小于20";\n} else if (s <= 30) {\n saohua = "秒数小于30";\n} else if (s <= 40) {\n saohua = "两只老虎爱跳舞";\n} else if (s <= 50) {\n saohua = "小兔子乖乖拔萝卜";\n} else if (s <= 55) {\n saohua = "我和小鸭子学走路";\n} else if (s <= 60) {\n saohua = "童年时最美的礼物";\n} else {\n saohua = "骚话连篇";\n}\n\nmsg.payload={\n "二狗说": saohua,\n };\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":320,"wires":[["608377ca.391238"]]},{"id":"608377ca.391238","type":"debug","z":"6f2a11df.d569e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":520,"y":380,"wires":[]}]