A real-time dashboard for monitoring train movements and railway gate status, using Firebase Realtime Database for live data updates.
Note:
This project was developed as a college semester project and was presented to professors, receiving appreciation from all. It demonstrates a significant impact on railway safety and accident prevention through real-time monitoring and automation.
- Live train status: approaching, moving, or crossed
- Gate status: open, closed, opening, or closing
- Current speed and ETA display
- Chronological event log
- Responsive web UI
git clone https://github.com/yourusername/railway-crossing-simulation.git
cd railway-crossing-simulation- Update the Firebase configuration in
index.htmlwith your project credentials. - Open
index.htmlin your browser, or use a local server:npx serve . - The dashboard will display real-time updates from your Firebase Realtime Database.
Simulation/
├── index.html
├── README.md
├── .gitignore
├── firebase.json
└── ...other files
/logs: Real-time event logs/storedLogs: Persistent logs for dashboard display
- Modify UI and logic in
index.htmlas needed. - Update event mappings in the JavaScript section to match your system.
MIT License
For questions or contributions, please open an issue or pull request.