Cubism: Difference between revisions
From charlesreid1
| Line 55: | Line 55: | ||
==Part 4: Hello Cubism World== | ==Part 4: Hello Cubism World== | ||
Hello world getting cubism installed and up and running and | Hello world getting cubism installed and up and running and showing something | ||
==References== | ==References== | ||
Revision as of 17:23, 24 June 2014
On Cube and Cubism, and interfacing with them from Python.
Part 1: Hello Cube World
A quick and dirty tutorial to getting Cube installed and listening for new time-series data.
Step 1: install mongodb:
brew install mongodb
Step 2: install node.js
brew install node
Step 3: install cube using node package manager
npm install cube cd node_modules/cube npm install
This may spit out some kind of message, and look like it didn't install successfully, but you can just pretend like everything went fine and continue.
Step 4: In another terminal, start mongo daemon:
mongod
Step 5: start up cube's collector and evaluator:
cd node_modules/cube node bin/collector.js 2>&1 node bin/evaluator.js 2>&1
These start on ports 1080 and 1081. Now test them out: visit localhost:1080 and localhost:1081
To post stuff to mongodb, post it to http://localhost:1080/1.0/event/put
Part 2: Talk to the Cube
In which I decipher how, exactly, to "put" data into the Mongodb, what needs to go into the dict structure, how to check what's been added to the mongodb, basically how to get things INTO the db.
Part 3: Alter/Delete
How to alter and delete records in MongoDB
Part 4: Hello Cubism World
Hello world getting cubism installed and up and running and showing something