{"id":16541034,"url":"https://github.com/spujadas/departure-board-servers-python","last_synced_at":"2025-10-28T14:31:44.100Z","repository":{"id":62567651,"uuid":"302864287","full_name":"spujadas/departure-board-servers-python","owner":"spujadas","description":"Departure virtual and physical (LED matrix) board servers (Python)","archived":false,"fork":false,"pushed_at":"2020-10-11T13:50:29.000Z","size":755,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T15:40:50.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spujadas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-10T09:23:45.000Z","updated_at":"2021-10-14T22:01:24.000Z","dependencies_parsed_at":"2022-11-03T20:44:14.338Z","dependency_job_id":null,"html_url":"https://github.com/spujadas/departure-board-servers-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spujadas%2Fdeparture-board-servers-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spujadas%2Fdeparture-board-servers-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spujadas%2Fdeparture-board-servers-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spujadas%2Fdeparture-board-servers-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spujadas","download_url":"https://codeload.github.com/spujadas/departure-board-servers-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238663193,"owners_count":19509751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:53:55.231Z","updated_at":"2025-10-28T14:31:43.744Z","avatar_url":"https://github.com/spujadas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Departure board servers (Python)\n\nThis repository contains the source code for the Python Departure board servers, which can be plugged into the [Python Departure module](https://pypi.org/project/departure/).\n\nIt contains the following board server back ends:\n\n- Pygame,\n- SDL2,\n- LED matrix, for physical departure boards powered by Raspberry Pi and the Python bindings of the [rpi-rgb-led-matrix](https://github.com/hzeller/rpi-rgb-led-matrix) project.\n\n \n\n### Installation\n\nOn Debian-based Linux (and similarly for other flavours of Linux), for the Pygame back end, make sure the following packages are installed:\n\n```\n$ sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev \\\n    libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion \\\n    libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev \\\n    libfreetype6-dev\n```\n\nThe SDL2 back end is built on PySDL2: see https://pysdl2.readthedocs.io/en/latest/install.html#prerequisites its prerequisites.\n\n**Note** – For this back end, before starting the server, [make sure](https://pysdl2.readthedocs.io/en/latest/integration.html#importing) that the `PYSDL2_DLL_PATH` environment directory points to the SDL2 library (e.g. [`SDL2.dll`](https://www.libsdl.org/download-2.0.php) on Windows) if it's not in the standard library directories.\n\n\n\nThe Pygame and SDL2 back ends can be installed using:\n\n```\n$ pip install departure-server-pygame\n$ pip install departure-server-sdl\n```\n\nThese commands will install the prerequired Python packages.\n\n\n\nTo use the LED matrix back end on a Raspberry Pi with suitable LED matrices (e.g. 3 64x32 matrices), [first install the rgbmatrix module as per the instructions](https://github.com/hzeller/rpi-rgb-led-matrix/tree/master/bindings/python), then run:\n\n```\n$ pip install departure-server-led-matrix\n```\n\n\n\n### Usage\n\nUse the `departure-server` command to start a board server with a specific back end.\n\nRunning the command without an argument will show the available back ends.\n\n```\n$ departure-server\n```\n\n![departure-server CLI](https://raw.githubusercontent.com/spujadas/departure-python/master/docs/images/departure-server.svg)\n\nOnce the board server has been started, on the client side (e.g. using the `departure` CLI or the Departure web API server), set the `DEPARTURE_BOARD_SERVER` environment variable to the IP address or hostname of the server, then start the client.\n\nHere is an image of the board server running the Pygame back end:\n\n![Pygame virtual departure board - SNCF (FR) - Paris Montparnasse](https://user-images.githubusercontent.com/930566/95666195-a13b2400-0b57-11eb-841d-c56e0ecbd704.gif)\n\n\n\n### About\n\nWritten by [Sébastien Pujadas](https://pujadas.net/), released under the [MIT license](https://github.com/spujadas/departure-python/blob/master/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspujadas%2Fdeparture-board-servers-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspujadas%2Fdeparture-board-servers-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspujadas%2Fdeparture-board-servers-python/lists"}