The project was moved to GitLab for futher development: https://gitlab.com/bahnvorhersage/bahnvorhersage
TrAIn_Connection_Prediction: TCP https://trainconnectionprediction.de/
╔═══╗
╔════════════════════════╩═══╩════════════════════════╗
║ ████████ ██████ ██████ ║
║ ██ ██ ██ ██ ║
║ ██ ██ ██████ ║
║ ██ ██ ██ ║
║ ██ ██████ ██ ║
╚════════════════════════╦═══╦════════════════════════╝
\''''───║ ╟───''''/
)__,--─║ ╟─--,__(
║ ║
Your friendly ║ ║
TrAIn_Connection_Prediction ║ ║
Service ║ ║
^^^^^^^^^^^^^^^^^^^^^^^^^^^^╜ ╙^^^^^^^^^^^^^^^^^^^^^^^^^^^
Winning project of the German National Artificial Intelligence Competition 2019 called BWKI. Visit this project on our website at https://trainconnectionprediction.de/.
For the youth competition Jugend Forscht (JuFo) in Germany we have written a paper (in german) about our project,
which can be found in our repository under docs/langfassung_tcp.pdf.
We also have some interesting plots from our data under docs/analysis.md.
You can also generate plots on our website.
If you for whatever reason want to run our website on your computer just do as described below.
But you are going to need a connection to our database, to do so contact us...
To run our webserver we strongly recommend to use Docker.
First, the usergroup 420 has to have the rights to write to the cache volume. In order to add the permission, do the following
sudo chown -R :420 /path/to/your/cache/
Then in the project directory run:
# In order to build:
DOCKER_BUILDKIT=1 docker build -f webserver/Dockerfile.webserver . -t webserver
# In order to serve:
docker run -p 5000:5000 -v $(pwd)/config.py:/mnt/config/config.py -v $(pwd)/cache:/usr/src/app/cache webserver
The webserver should now be running on http://localhost:5000/
For the development of the frontend/website, build the vue frontend in development mode:
# Go to the website
cd webserver/website
# Build Website
./node_modules/.bin/vue-cli-service build --mode development
We use cartopy in our backend to generate nice looking geo plots. It can be hard to install cartopy. Modern Cartopy uses proj 8, which is unavailable in many package repositories. Here is how to install in from source:
Install build dependencies
apt update -y
apt install -y --fix-missing --no-install-recommends \
software-properties-common build-essential ca-certificates \
make cmake wget unzip libtool automake \
zlib1g-dev libsqlite3-dev pkg-config sqlite3 libcurl4-gnutls-dev \
libtiff5-dev git
Clone proj repository from GitHub
git clone https://github.com/OSGeo/PROJ.git
cd PROJ
Build and install
./autogen.sh
./configure
make
make install
After installing Proj, you should now be able to just install cartopy
pip install cartopy
- Marius De Kuthy Meurers aka NotSomeBot
- Theo Döllman aka McToel