Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

PinLin/bustw_server

Repository files navigation

bustw_server

bus tracker for Taiwanese Server

Usage

  1. Clone.

    git clone https://github.com/PinLin/bustw_server
    cd bustw_server
  2. Install dependencies.

    portry install
  3. Put PTX_ID and PTX_KEY to bustw_server/config.py.

  4. Run it.

    poetry run python3 app.py

    Or run by gunicorn.

    pip3 install gunicorn
    gunicorn -w 1 -k gthread --thread=8 app:app

Or run by Docker.

docker run --name bustw_server \
           --restart=always \
           -p 8000:8000 -d \
           -e PTX_ID='<PTX_ID>' \
           -e PTX_KEY='<PTX_KEY>' \
           pinlin/bustw_server

License

MIT

Source

公共運輸整合資訊流通服務平臺(Public Transport data eXchange, PTX)