Hello! everybody,
I would like to set system time on Rasp. Pi by execute node. as the flow in the following, I do a test, but I get some error messages on the debug window. Could anyone help me solve this problem? Thank you in advance.
[{"id":"b1e1615.c7fd6a","type":"tab","label":"Flow 1"},{"id":"68bf0e43.9e305","type":"inject","z":"b1e1615.c7fd6a","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":113.5,"y":222,"wires":[["f5fac12c.367ff"]]},{"id":"452f23ca.607d3c","type":"debug","z":"b1e1615.c7fd6a","name":"1","active":true,"console":"false","complete":"true","x":785.5,"y":344,"wires":[]},{"id":"8dc91a58.7ad4a8","type":"exec","z":"b1e1615.c7fd6a","command":"sudo date -s=","addpay":true,"append":"","useSpawn":"","timer":"","name":"","x":499.5,"y":385.5,"wires":[["452f23ca.607d3c"],["55f3a624.42f918"],["66a8cc3f.d9c4c4"]]},{"id":"55f3a624.42f918","type":"debug","z":"b1e1615.c7fd6a","name":"2","active":true,"console":"false","complete":"true","x":779,"y":391,"wires":[]},{"id":"66a8cc3f.d9c4c4","type":"debug","z":"b1e1615.c7fd6a","name":"3","active":true,"console":"false","complete":"true","x":773,"y":441,"wires":[]},{"id":"e10e161e.f865a8","type":"debug","z":"b1e1615.c7fd6a","name":"","active":true,"console":"false","complete":"false","x":469,"y":139,"wires":[]},{"id":"f5fac12c.367ff","type":"function","z":"b1e1615.c7fd6a","name":"","func":"msg.payload = new Date().toString();\nreturn msg;","outputs":1,"noerr":0,"x":294.2421875,"y":221.796875,"wires":[["e10e161e.f865a8","8dc91a58.7ad4a8"]]}]
/21/2017, 1:55:42 PM2msg : Object{ "payload": "/bin/sh: 1: Syntax error: \"(\" unexpected\n", "_msgid": "25c981a8.da367e" }
9/21/2017, 1:55:42 PM3msg : Object{ "payload": { "killed": false, "code": 2, "signal": null }, "_msgid": "25c981a8.da367e" }