This is a Next.js project that provides real-time public transport information for Vienna using the Wiener Linien API.
The Wiener Linien API was reverse engineered to provide details about the air conditioning in metro lines.
![Screenshot of the Dashboard](https://private-user-images.githubusercontent.com/85677120/365277709-575e0637-e15e-4f19-8ba1-2e70b755d9af.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDY2NDgsIm5iZiI6MTczODg0NjM0OCwicGF0aCI6Ii84NTY3NzEyMC8zNjUyNzc3MDktNTc1ZTA2MzctZTE1ZS00ZjE5LThiYTEtMmU3MGI3NTVkOWFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEyNTIyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE0NmE1NTM3YTAxMDRkMTk2YWQzODgwOWFkMDE0MmEzNjNkM2M2YzM0Mzk0ODYzYjI4MDY3NzVkNjVkMjExY2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.gNp72KWVy-DVSxeG2bfzpwTlOBKUnbdP17bpdWVFzzM)
Built with:
- Next.js 14
- TailwindCSS
- Hosted on Cloudflare Pages via next-on-pages
- npm
- wrangler
- Cloudflare Workers/Pages to deploy as Full Stack Application
- Clone the repo
- Install dependencies via
npm install
in the root directory - Run the development server
npm run dev
:
Open http://localhost:3000 with your browser to see the result.
This project integrates with Cloudflare Pages. Besides the dev script mentioned above, there are a few extra scripts for Cloudflare integration:
- pages:build: Build the application for Pages using the @cloudflare/next-on-pages CLI.
- preview: Locally preview your Pages application using the Wrangler CLI.
- deploy: Deploy your Pages application using the Wrangler CLI.
Note: While the dev script is optimal for local development, you should periodically preview your Pages application to ensure it works properly in the Pages environment.
For more details, see the @cloudflare/next-on-pages recommended workflow.
/api/monitor
Fetches real-time public transport information from the Wiener Linien API.
stopID
: The ID of the stop to fetch information for.
"http://localhost:3000/?stopID=12345"