Skip to content

web app that emulates the journey of a train, just like a passenger information system on a real train.

License

Notifications You must be signed in to change notification settings

Phipsiart/Innenanzeiger

Repository files navigation

Welcome to the "Innenanzeiger" Project

Greetings! Welcome to "Innenanzeiger," or "The Interior Display" in English. This web application simulates the journey of a train, emulating the passenger information systems found on real trains. Isn’t that fascinating?

But a picture says more than 1000 words. Here are our currently supported displays:

S-Bahn München

grafik

U-Bahn München

grafik

Bayerische Regiobahn

grafik

Important Notice

Please note that this project emulates various displays from railway companies in Germany. The use of all brands and trademarks, including but not limited to Bayerische Regiobahn, S-Bahn München and U-Bahn München is solely for the purpose of creating a realistic simulation. This does not imply any connection, endorsement, or authorization by the respective companies. All rights are retained by their respective owners.

Additionally, it is important to understand that the data we use is provided without warranty. While we strive to offer accurate and up-to-date information, the displayed information may not always match that on the trains. Due to technical limitations, it is not possible to replicate the exact data from the trains.

Please enjoy the app and remember to consult official sources for the most accurate information.

Exciting Features

  • Emulation of various displays from German railway companies based on real-time data from the db-rest API.
  • Displays the next stop, delays, and the current status of the train at the station.
  • Shows connections for each stop (currently available in the S-Bahn München & U-Bahn München (alpha) simulations).

Supported Railway Systems

  • Bayerische Regiobahn
  • S-Bahn München
  • U-Bahn München (alpha): This feature is still in its early stages, but you can already experience a glimpse of the Munich U-Bahn system DFI.

Upcoming Features

  • Live tracking to display the train’s location on a map.
  • Translating the user interface to English.

Getting Started

This project is developed using Next.js and Tailwind CSS. Ready to dive in? We are too!

Requirements

  • Node.js
  • A package manager such as yarn or npm
  • db-rest

Installation Instructions

First, install all dependencies for the frontend:

npm install
# or
yarn install
# or
pnpm install
# or
bun install

API Setup

This project utilizes the db-rest API to retrieve data for current departures and trains. A public instance is available at v6.db.transport.rest.

Create an .env file by copying the example file:

cp .env.example .env

Set the API_INSTANCE variable to the host name where db-rest is running, for example, v6.db.transport.rest:

API_INSTANCE=v6.db.transport.rest # or another appropriate hostname

Running the Development Server

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Large portions of the authentication system logic in this project are derived from a video tutorial by Ugur Kellecioglu. The original code is provided under the MIT License and can be found in this repository.

Contributions Are Welcome

We welcome contributions of any kind. Feel free to report issues or submit a pull request. We are eager to hear from you!

About

web app that emulates the journey of a train, just like a passenger information system on a real train.

Topics

Resources

License

Stars

Watchers

Forks