A visualization application for experiments in decentralized coordination
First, install Meteor.js.
Then clone this repo to your local machine.
- Place the log file and the network configuration file in the same folder as parselog.py and other python files.
- Go into parselog.py and change the input file names in main() to match your files. Also change the date to match the experiment date in the format YYYYMMDD.
- Run parselog.py (
python parselog.py
) - parselog.py will output a JSON file in the form of
experimentYYYYMMDD.json
- Go into
/dc-visualization/imports/router.js
and/dc-visualization/imports/ui/loadedData.js
and change all instances of20160707
to one of the dates of your experiments. - While in the main directory (/dc-visualization), run
meteor
. This will start up the MongoDB database. - Open a separate window, navigate to the same directory, and use this command:
mongoimport -h localhost:3001 --db meteor --collection sessions --type json --file experiment.json &> output.txt
- If mongoimport is not installed, follow the system instructions to install it.
- If you are not using the default meteor port (3000), replace the port number in
localhost:3001
with your port number + 1. - You should replace
experiment.json
with the path to your own experiment JSON file.
- Run
meteor mongo
. This will take you into the database console. - Run
db.dates.insert({date: YYYYMMDD})
- Replace YYYYMMDD with the correct date.
- Open a browser, navigate to
*your_ip:3000*
and the app should be running.
- Again, replace the port number if you are using a different port.
TODO