A desktop application for managing connections between Hertta, Predicer, InfluxDb, and Center Denmark's Data Portal.
Documentation available at https://predicer-tools.github.io/control-center/.
- Python 3.11+
- InfluxDb
- Grafana
- InfluxDb access token
- Personal access token from Center Denmark's portal
-
cd to /app folder (the one containing pyproject.toml)
-
Make a virtual environment
python -m venv .venv
-
Activate virtual environment
.venv\Scripts\activate
-
Install Python requirements
pip install -e .
-
Get access token from https://portal.centerdenmark.com/en-US/
-
Create an InfluxDb token
The token is a string of 100+ characters.
- Create a new file called
tokens.tomlinto directory /app/controlcenter/
The format of tokens.toml is
datalake_token = "paste datalake token here inside the quotes"
influxdb_token = "paste influxdb token here inside the quotes"
** In case you don't have the influxDb token, set the second key to eg. infuxdb_token = "abc"
-
Start the app from command prompt
python main.py