🇪🇺 "This service was created in the context of OpenAgri project (https://horizon-openagri.eu/). OpenAgri has received funding from the EU’s Horizon Europe research and innovation programme under Grant Agreement no. 101134083."
The Pest and Disease Management(P&DM) service supports farmers by providing multiple ways of calculating a risk associated with diseases, Growing Degree Days for pests and other mechanisms.
- git
- docker
- docker-compose
Docker version used during development: 27.0.3
There are two ways to install this service, via docker or directly from source.
When deploying from source, use python 3:11.
Also, you should use a venv when doing this.
A list of libraries that are required for this service is present in the "requirements.txt" file.
This service uses FastAPI as a web framework to serve APIs, alembic for database migrations sqlalchemy for database ORM mapping.
After installing docker
you can run the following commands to run the application:
docker compose build
docker compose up
The application will be served on http://127.0.0.1:{SERVICE_PORT}, where SERVICE_PORT is the value read from the .env (default 8003)
A list of APIs can be viewed in the API.md file, and a full list of APIs can be viewed here.
The basic flow for this service is as follows:
- The user registers and/or logs in;
- The user creates their parcel/s
- The user creates one or more pest and/or disease models
- The user queries the system for either risk index or growing degree days (GDD) for pest and disease models respectively
Please contact the maintainer of this repository.
This project code is licensed under the EUPL 1.2 license, see the LICENSE file for more details. Please note that each service may have different licenses, which can be found their specific source code repository.