noflo

add/remove components in noflo-ui version 0.18.0

。_饼干妹妹 提交于 2019-12-24 08:49:58
问题 I am running noflo-ui locally and trying to replace default set of components with my own set. This is very similar to the question add/remove components in noflo-ui, but provided answers are not correct for current version of noflo-ui. At least there is no preview/component.json in the repository anymore. I do not want to use github nor flowhub, due to internet connection limitation. Is there a solution for current version of noflo-ui (which is 0.18.0) ? 回答1: I assume you're talking about

Plotting of Network Topology graph based on json input

独自空忆成欢 提交于 2019-12-20 15:31:34
问题 I want to draw network topology graph with Highchart or any other js library by proving json data as input . While going through the example at http://www.highcharts.com/demo/renderer for Topology plot requirement , I found that it is static and doesn't have any example with fixed json format to render topology dynamically on basis of topology xml . seeking help to plot Logical Topology/network topologies based on various json /xml. 回答1: Check out netjsongraph.js. See the netjsongraph demo

how to add a noflo chart/plot component

夙愿已清 提交于 2019-12-13 01:28:41
问题 I have a time-series-style array of data I would like to pass into a noflo component which displays the data in a cart/graph/plot using the browser runtime and the flowhub ui. I've browsed through the component library and not found a relevant component. I'm familiar with several charting libraries and am willing to write it myself, but am unsure how to fit this into a component. is there a charting/plotting component that I missed? I've seen noflo-ducksboard, but I really want to be able to

NoFlo Error: TypeError: Object #<Port/ArrayPort> has no method 'isAddressable'

有些话、适合烂在心里 提交于 2019-12-12 04:56:10
问题 I recently started getting the errors: TypeError: Object #<Port> has no method 'isAddressable' TypeError: Object #<ArrayPort> has no method 'isAddressable' I am creating the ports on my components like: this.inPorts.in = new noflo.Port(); 回答1: It looks like you have NoFlo 0.4 or older somewhere in the mix. the isAddressable method was added in 0.5. Look at npm list to see what packages you have installed an older, incompatible version of NoFlo. 来源: https://stackoverflow.com/questions/24295978

add/remove components in noflo-ui

好久不见. 提交于 2019-12-11 12:22:24
问题 I've cloned noflo-ui from github and am running locally but cannot figure out how to add/remove components from the noflo-search box. Ideally, I would like to remove all components from the search results and show only a the ones from my component libraries. The readme states that libraries can be added by modifying preview/component.json , but removing libraries seems to have no effect. After reading through the docs on components and the spec for component.js I tried editing /component.json

How to simulate an 'error' event on MongoDB

ⅰ亾dé卋堺 提交于 2019-12-11 02:25:30
问题 I'm trying to write a test case for a NoFlo component (written by a colleague) - where the component has a "connect" inPort and an "error" outPort like: var self = this; // a NoFlo Component var mongodb = null; self.inPorts.connect.on("data", function(uri) { mongodb = mongojs(uri); self.outPorts.connected.send(mongodb); mongodb.on("error", function(error) { self.outPorts.error.send(error); }); }); So based on this code pattern, how should I simulate an erroneous situation (in the test case)

Starting out with noflo, running it from nodejs

不羁的心 提交于 2019-12-06 07:08:10
问题 I got a simple noflo example running from noflo . But I'm having no luck figuring out how noflo should work with node and other code. At first I had this fbp file: # In the graph we first need to define the nodes and the connections between them Read(filesystem/ReadFile) OUT -> IN Display(core/Output) # Start off the graph by sending a filename to the file reader #'package.json' -> IN Read I tried: noflo.loadFile(filepath, nodedir, function(graph) This works and prints to the console. But if

Starting out with noflo, running it from nodejs

China☆狼群 提交于 2019-12-04 12:04:43
I got a simple noflo example running from noflo . But I'm having no luck figuring out how noflo should work with node and other code. At first I had this fbp file: # In the graph we first need to define the nodes and the connections between them Read(filesystem/ReadFile) OUT -> IN Display(core/Output) # Start off the graph by sending a filename to the file reader #'package.json' -> IN Read I tried: noflo.loadFile(filepath, nodedir, function(graph) This works and prints to the console. But if I omit the last line in the fbp, that feeds the package.json parameter, I found no way of running the