Skip to content

Instantly share code, notes, and snippets.

@syuhei176
Created April 7, 2016 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syuhei176/eccffcd6d6f6bb2516f9c26ab1ffb366 to your computer and use it in GitHub Desktop.
Save syuhei176/eccffcd6d6f6bb2516f9c26ab1ffb366 to your computer and use it in GitHub Desktop.
Test flow

generate mock data for Milkcocoa.

[{"id":"33734561.cc8cba","type":"milkcocoa","z":"79c200c7.863e","appId":"appid"},{"id":"ffe5b7ce.001a48","type":"inject","z":"79c200c7.863e","name":"","topic":"","payload":"","payloadType":"date","repeat":"10","crontab":"","once":false,"x":148,"y":168,"wires":[["623582b1.9dca7c"]]},{"id":"a3c49387.5c3b7","type":"milkcocoa out","z":"79c200c7.863e","milkcocoa":"33734561.cc8cba","dataStore":"message","operation":"send","targetId":"","name":"","x":467,"y":159,"wires":[["950668dd.6af998"]]},{"id":"623582b1.9dca7c","type":"function","z":"79c200c7.863e","name":"","func":"msg.payload = {val:Math.floor(Math.random()*100)};\nreturn msg;","outputs":1,"noerr":0,"x":309,"y":129,"wires":[["a3c49387.5c3b7"]]},{"id":"950668dd.6af998","type":"debug","z":"79c200c7.863e","name":"","active":true,"console":"false","complete":"false","x":565,"y":236,"wires":[]}]
@dceejay
Copy link

dceejay commented Apr 7, 2016

Can you give this a slightly more descriptive name than Test flow ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment