Open pjindent opened 7 years ago
Hello. It was developped on MacOS. I 've just created a bluemix account, created a project with this line in the package.json file "node-red-contrib-bigfile":"1.2.1"
node-red is starting perfectly.
Next, I tried to paste the sample flow given in the doc but the "file" node is missing on bluemix
I've made the simple one sample flow which works.
From my point of view, the console is for the"cf" tool used to deploy on bluemix
[{"id":"b5d9ad1e.aa448","type":"bigfile reader","z":"c91c85b0.8b82f8","name":"output as blocks","filename":"","flow":"blocks","highWaterMark":"100","encoding":"utf8","format":"utf8","keepEmptyLines":false,"x":360,"y":360,"wires":[["199382f4.8bc02d"],["199382f4.8bc02d"]]},{"id":"5777fa7b.bbc5d4","type":"inject","z":"c91c85b0.8b82f8","name":"GO","topic":"","payload":"/home/vcap/app/LICENSE","payloadType":"str","repeat":"","crontab":"","once":false,"x":173,"y":422,"wires":[["b5d9ad1e.aa448","179a5d1e.0970d3","212a4b1.fe91bb4"]]},{"id":"5892ac97.13dbe4","type":"debug","z":"c91c85b0.8b82f8","name":"got ... lines","active":true,"console":"false","complete":"payload","x":897,"y":488,"wires":[]},{"id":"212a4b1.fe91bb4","type":"bigfile reader","z":"c91c85b0.8b82f8","name":"output as lines","filename":"","flow":"lines","encoding":"utf8","format":"utf8","keepEmptyLines":false,"x":347.5,"y":477,"wires":[["e7c54f55.16e28"],["e7c54f55.16e28"]]},{"id":"179a5d1e.0970d3","type":"bigfile reader","z":"c91c85b0.8b82f8","name":"output as a buffer","filename":"","flow":"buffer","encoding":"utf8","format":"utf8","keepEmptyLines":false,"x":358.5,"y":420,"wires":[["b458fe5d.3988f"],[]]},{"id":"e7c54f55.16e28","type":"function","z":"c91c85b0.8b82f8","name":"line counter","func":"if (msg.payload) {\n global.lines++;\n}\nif (msg.control && msg.control.state == 'start') {\n global.lines = 0;\n}\nif (msg.control && msg.control.state == 'end') {\n node.send({ payload: \"Got \" + global.lines + \" lines\" })\n}\n","outputs":1,"noerr":0,"x":721,"y":488,"wires":[["5892ac97.13dbe4"]]},{"id":"c5813be2.7d5428","type":"debug","z":"c91c85b0.8b82f8","name":"got a string","active":true,"console":"false","complete":"payload","x":897.5,"y":416,"wires":[]},{"id":"b458fe5d.3988f","type":"function","z":"c91c85b0.8b82f8","name":"byte counter","func":"node.send({ payload: \"Got a \" + msg.payload.length + \" bytes string!\"})","outputs":1,"noerr":0,"x":665.5,"y":416,"wires":[["c5813be2.7d5428"]]},{"id":"199382f4.8bc02d","type":"function","z":"c91c85b0.8b82f8","name":"block counter","func":"if (msg.payload) {\n global.blocks++;\n global.size += msg.payload.length;\n}\nif (msg.control && msg.control.state == 'start') {\n global.blocks = global.size = 0;\n}\nif (msg.control && msg.control.state == 'end') {\n node.send({ payload: \"Got \" + global.blocks + \" blocks for a total of \" + global.size + \" bytes\" })\n}\n","outputs":1,"noerr":0,"x":654.5,"y":360,"wires":[["6bf879f6.e3ac18"]]},{"id":"6bf879f6.e3ac18","type":"debug","z":"c91c85b0.8b82f8","name":"got ... blocks + bytes","active":true,"console":"false","complete":"payload","x":867.5,"y":360,"wires":[]},{"id":"c844311e.1f80d","type":"comment","z":"c91c85b0.8b82f8","name":"bigfile usage demo pre-configured","info":"","x":255.5,"y":316,"wires":[]}]
When I use this node in Bluemix node-red, I get a message: "Flows stopped due to missing node types. Check logs for details." Not sure where to check logs.