Code and notebooks for the a small streamlit app that requests demand data from the ESIOS REST API and displays it in time and frequency domain.
- Create an
.envfile and add your token as an environment variable namedESIOS_TOKEN. Check.env.examplefor an example. - With docker-compose, run
docker-compose up -d - Go to http://0.0.0.0:8501/
- You should be able to interact with the app
The application is located in the path services/app/ and consists of two parts:
- a
request.pyscript that performs the request and persists results on disk - a
app.pythat consumes the data and launches the streamlit app on port8501
- go to the
services/app/directory, and create a conda environment from theenvironment.ymlfile withconda env create -f environment.yml - activate the environment with
conda activate esios-app - run
python request.pyto download the data - run
streamlit run app.pyto launch the app


