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
.env
file and add your token as an environment variable namedESIOS_TOKEN
. Check.env.example
for 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.py
script that performs the request and persists results on disk - a
app.py
that consumes the data and launches the streamlit app on port8501
- go to the
services/app/
directory, and create a conda environment from theenvironment.yml
file withconda env create -f environment.yml
- activate the environment with
conda activate esios-app
- run
python request.py
to download the data - run
streamlit run app.py
to launch the app