Skip to content

The local server that is in charge of handling the monitoring.

License

Notifications You must be signed in to change notification settings

OpenFermentor/Local-Monitor

Repository files navigation

Local-Monitor

This repo contains the code related to the local backend that is in charge of running and monitoring the routine run on the fermentor. This server will run locally inside the terminal that will be directly connected to the micro-controller. It will:

  • Send and receive data and instructions to the micro-controller via serial port.
  • Control the temperature on the bath via serial port.
  • Expose a REST API for the Monitoring UI.
  • Send live updates to the Monitoring UI via web-sockets.

Dependencies

The following dependencies are used on this project:

  • Elixir 1.4.2.
  • Phoenix 1.2 as our web framework.
  • Credo for style code checking.
  • Faker for faking data for testing.
  • Nerves.UART for communication via serial port with external devices.
  • Distillery for managing releases

Instalation

To run the Local-Monitor follow these steps:

  1. Clone the repo.
  2. Installs the dependencies using mix deps.get
  3. Create the database running mix ecto.create you need PostgreSQL installed and running on your machine.
  4. Run the server using mix phoenix.server

API docs

For more detailed usage, check out it here

Release

To generate a release, use the following command:

MIX_ENV=prod mix do compile, phoenix.digest, release --env=prod

This will generate the release in the folder: _build/prod/rel/bio_monitor/bin To run the application, execute: PORT=4000 ./bio_monitor daemon

Contributing

please refer to our contributing guide for more information.

About

The local server that is in charge of handling the monitoring.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •