UW-Madison-DSI / corn_disease_forecast_api

This API leverages the power of environmental data—such as air temperature, humidity, and dew point—to predict the likelihood of diseases like Tarspot and Gray Leaf Spot and Spore on crops.
Other
0 stars 0 forks source link
agriculture-research disease-prediction open-source

Forecasting Model Tools: API and Dashboard

This API leverages the power of environmental data to predict the likelihood of diseases like Tarspot, Spore and Gray Leaf Spot on corn crops.

Features

Dashboard

Visit our dashboard here

API Endpoints

Base URL: Forecast Crop Disease API

Endpoints:

Method: POST

Response: A JSON object containing the predicted probability of tar spot incidence and the associated risk level.

To install

git clone https://github.com/UW-Madison-DSI/corn_disease_forecast_api.git
cd corn_disease_forecast_api

Usage

See example of how to do an api call on this tool HERE

Project Structure

├── LICENSE
├── README.md                       <- The top-level README for developers using this project.
├── plumber.R                       <- Logic to create API
├── R                               <- Main functionalities for API
│   ├── crop_mangm_validations.R      <- Crop management validations
│   ├── logit_function.R              <- Core functions for forecasting disease api
│   ├── var_schema.R                  <- Variables schema
├── materials                       <- Examples of API calls and plug in with Wisconet
│   ├── call_wisconet                 <- Wisconet call example
│   ├── docs                          <- Documentation of the schema
│   ├── example                       <- Examples to call the API
├── app                             <- Shinny dashboard code.
│   ├── app.R                         <- app logic, ui and server
│   ├── functions                     <- API functions
│   │   ├── logic.R                       <- Logic to call the Wisconet Station weather data and call the forecasting models on the preparation of the inputs
│   │   ├── stations.R                    <- List of stations currently active from Wisconet  
├── test                            <- Code Testing modules
│   ├── testthat.R    

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements