Here is the flow:
[{"id":"61d6c670.9e2938","type":"subflow","name":"timestamp log","info":"need **msg.filename** with path\n\nexample: \nmsg.filename = \"/home/pi/data/myLog.log\";","in":[{"x":240,"y":180,"wires":[{"id":"af1e5541.50e1a8"}]}],"out":[{"x":520,"y":200,"wires":[{"id":"af1e5541.50e1a8","port":0}]}]},{"id":"af1e5541.50e1a8","type":"function","z":"61d6c670.9e2938","name":"","func":"if ((!msg.payload) || (!msg.filename)) { return; }\n\nvar now = new Date();\nmsg.payload = now.toString() + \"\\t\" + now.valueOf() + \"\\t\" + msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":380,"y":180,"wires":[["3a8db34c.c5724c"]]},{"id":"3a8db34c.c5724c","type":"file","z":"61d6c670.9e2938","name":"","filename":"","appendNewline":true,"createDir":true,"overwriteFile":"false","x":550,"y":140,"wires":[]},{"id":"86e0599e.791fa8","type":"debug","z":"478f9c1e.b87064","name":"5 min fio","active":false,"console":"false","complete":"true","x":680,"y":140,"wires":[]},{"id":"e0f31ba.f1f0ce8","type":"forecastio","z":"478f9c1e.b87064","forecastio":"","name":"","lon":"-87.6298","lat":"41.8781","date":"","time":"","mode":"node","units":"us","x":250,"y":80,"wires":[["4c485fce.b3b7a","7a5e163.f85a1e8"]]},{"id":"4aaabf43.b5554","type":"inject","z":"478f9c1e.b87064","name":"","topic":"","payload":"","payloadType":"str","repeat":"300","crontab":"","once":false,"x":90,"y":80,"wires":[["e0f31ba.f1f0ce8"]]},{"id":"419b4e76.be64b","type":"subflow:61d6c670.9e2938","z":"478f9c1e.b87064","name":"","x":700,"y":200,"wires":[["a1c54777.5e3ab8"]]},{"id":"168bbba9.e97444","type":"function","z":"478f9c1e.b87064","name":"","func":"msg.filename = \"/home/pi/data/forcast.io.full.5minpoll.log\";\nmsg.payload = \"\\n\" + JSON.stringify(msg, null, 4) + \"\\n\";\nreturn msg;\n","outputs":1,"noerr":0,"x":470,"y":180,"wires":[["419b4e76.be64b"]]},{"id":"ac25f974.53da08","type":"forecastio in","z":"478f9c1e.b87064","forecastio":"","name":"","key":"","lon":"-87.6298","lat":"41.8781","date":"","time":"","units":"us","x":260,"y":140,"wires":[["168bbba9.e97444","86e0599e.791fa8"]]},{"id":"4c485fce.b3b7a","type":"debug","z":"478f9c1e.b87064","name":"fio with inject","active":false,"console":"false","complete":"true","x":690,"y":80,"wires":[]},{"id":"7a5e163.f85a1e8","type":"function","z":"478f9c1e.b87064","name":"","func":"msg.filename = \"/home/pi/data/forcast.io.full.injectpoll.log\";\nmsg.payload = \"\\n\" + JSON.stringify(msg, null, 4) + \"\\n\";\nreturn msg;\n","outputs":1,"noerr":0,"x":470,"y":120,"wires":[["419b4e76.be64b"]]},{"id":"a1c54777.5e3ab8","type":"debug","z":"478f9c1e.b87064","name":"log output","active":true,"console":"false","complete":"payload","x":800,"y":320,"wires":[]}]