- Git
- Node.js and npm Node ^4.2.3, npm ^2.14.7
-
Run
$ npm install
to install server dependencies. -
Run the following lines:
$ sudo usermod -a -G dialout <username>
$ sudo chmod a+rw /dev/ttyACM0
Where <username>
is your linux user name, /dev/ttyACM0 is the detected device of your Arduino board, depending on your system it may change.
3. Configure the devices, profiles and environment variables.
- Run
$ npm start
- using example file: conf/devicesConf.js. Define the sensors your robot will have.
- create the fermenter profiles on conf/robotProfiles.js pointing to the devices created previously.
- make sure the following environment variables are properly set:
- APP_ID
- MONGOLAB_URI
Running $ npm test
will run the unit tests with karma.