The MVG Display project is an open-source application designed to provide real-time information about public transport stations. Users can customize their experience by selecting specific stations, choosing different themes, and configuring various display options.
- Real-time public transport information display
- Customizable station selection
- Multiple language support (EN/DE)
- Weather integration with OpenWeather API
- Customizable refresh intervals
- Responsive design for various display sizes
- Customizable themes and backgrounds
- Node.js and npm installed
- Docker (optional, for containerized deployment)
-
Clone the repository
git clone https://github.com/yourusername/mvg-display.git cd mvg-display
-
Install dependencies
npm install
-
Environment Variables
- Copy the
.env.example
file to.env
and fill in the necessary environment variables.
cp .env.example .env
- Edit the
.env
file with your preferred text editor to configure your settings. - Important settings include:
DEFAULT_STATION_ID
: The ID of your default transit stationOPENWEATHER_API_KEY
: Your API key for weather integrationDEFAULT_LANGUAGE
: Your preferred language (en/de)
- Copy the
-
Backend
cd backend python -m api.main
-
Frontend
cd frontend npm start
-
Using Docker
docker-compose up -d
- Station Selection: Search and select your preferred public transport station
- Language: Choose between English (EN) and German (DE)
- Weather Integration: Add your OpenWeather API key to display local weather
- Refresh Interval: Customize how frequently the display updates
- Display Theme: Select from various visual themes or create your own
- From the main dashboard, click the gear icon in the top right corner
- Configure your preferences in the settings panel
- Save your changes - they will be stored in your browser's localStorage
GET /api/stations/search?query={query}
- Search for stationsGET /api/departures/{stationId}
- Get departures for a specific stationGET /api/weather?lat={latitude}&lon={longitude}
- Get weather data for a location
For detailed API documentation, see API_DOCS.md
Contributions are welcome! Please see our Contributing Guidelines for details on how to submit pull requests, report issues, and suggest features.
This project is licensed under the MIT License. See the LICENSE file for more details.
- Thanks to the contributors and the open-source community for their support and inspiration.
- MVG for providing the public transport data API
- OpenWeather for their weather API services