8000 GitHub - git-developer/pyfis-http: HTTP adapter for pyFIS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

git-developer/pyfis-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyfis-http

A minimal HTTP adapter exposing an IBIS (VDV 300) serial device using pyFIS

Table of Contents

Prerequisites

  • Docker Compose (Installation on Debian-based systems: sudo apt-get install docker-compose-v2)

Usage

  1. Create a c 6699 ompose.yml containing the path to a serial device. Example: compose.yml

  2. Start the server:

    $ docker compose up -d
  3. 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}
  4. Stop the server:

    $ docker compose down

About

HTTP adapter for pyFIS

Resources

License

Stars

Watchers

Forks

Packages

 
 
 
0