Skip to content

Omaha-Food-Computer-Initiative/openag_brain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAg Brain

This repository holds code that runs on the main computing board of an OpenAg food computer. In builds on top of CouchDB for data storage. In particular, the "core" code in this respository reads a configuration of software modules from a CouchDB instance and then runs those modules. The modules themselves are responsible for interfacing with hardware, running control loops, posting the grow data to CouchDB instance, running recipes, and performing any other tasks required for operation of the food computer.

Installation

First, install an instance of CouchDB on your machine. There are installation instructions here for doing so. For newer versions of Ubuntu (13.10 and up), this can be done via sudo apt-get install couchdb.

Next, clone the repository and install the contained Python package using pip:

git clone https://github.com/OpenAgInitiative/openag_brain.git
cd openag_brain
pip3 install .

Then, install openag-pymata-aio. (Note: this step is temporary and will be automated away when we register openag-pymata-aio with pip.)

git clone https://github.com/OpenAgInitiative/openag-pymata-aio
cd openag-pymata-aio
sudo python3 setuptools.py install

Finally, initialize the CouchDB database by running the init_db command

sudo python3 -m openag.brain.core.init_db

Running

Once CouchDB is installed, it should automatically start itself on localhost:5984.

You can start the Flask API server via:

python3 -m openag.brain.core.run_modules

About

Framework for software modules in an OpenAg food computer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.1%
  • JavaScript 2.9%