fermentobot standalone version

Getting Started

Prerequisites

Install and Run

  1. Run $ npm install to install server dependencies.

  2. 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.

  1. Run $ npm start

Configure your node to run locally (no conf from the server):

  • 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

Testing

Running $ npm test will run the unit tests with karma.