A minimal HTTP adapter exposing an IBIS (VDV 300) serial device using pyFIS
Table of Contents
-
Docker Compose (Installation on Debian-based systems:
sudo apt-get install docker-compose-v2
)
-
Create a
c 6699 ompose.yml
containing the path to a serial device. Example: compose.yml -
Start the server:
$ docker compose up -d
-
Send HTTP requests:
$ curl 'http://localhost:8300/ibis?telegram=DS001&text=123' {"request": {"telegram": "DS001", "text": "123"}, "response": null} $ curl 'http://localhost:8300/ibis?telegram=DS009&text=Akazienallee' {"request": {"telegram": "DS009", "text": "Akazienallee"}, "response": null} $ curl 'http://localhost:8300/ibis?telegram=DS003a&text=Hauptbahnhof' {"request": {"telegram": "DS003a", "text": "Hauptbahnhof"}, "response": null} $ curl 'http://localhost:8300/ibis?telegram=DS020&text=1' {"request": {"telegram": "DS020", "text": "1"}, "response": null}
-
Stop the server:
$ docker compose down