Webservice

This repository hosts also a webservice that can be used to allow other components to access occupation evaluation functionalities. The host and port on which the webservice will be hosted are defined in .env.

Get occupation

GET /api/occupation

Retrieve the occupation of a Basket at a certain instant in time.

Forecast occupation

GET /api/forecast_occupation

Forecast the occupation for a Basket at a future instant in time, given measurements history.

A wisdom usage expect t to be between present and present + num_predicted_days and num_history_days such that present - num_history_days was within the period of activity of the Basket.