fix: border-box
A simple web application that displays real-time arrival information for SF Muni Metro trains at specified stops.
This application takes a serverless approach:
This approach has several advantages:
Fork this repository
Set up your API key in GitHub Secrets
API_KEY
Enable GitHub Pages
Manually trigger the workflows to start
Access your site
https://[your-username].github.io/muni-metro/
Clone your repository
git clone https://github.com/[your-username]/muni-metro.git cd muni-metro
Serve the files locally
npx http-server public
Open your browser and visit http://localhost:8080
http://localhost:8080
The default schedule updates data every 5 minutes during weekday commute hours (5am-4pm Pacific Time).
To change this schedule:
.github/workflows/update-cache.yml
cron
schedule
muni-metro/ ├── .github/workflows/ # GitHub Actions workflow definitions │ ├── deploy.yml # Workflow to deploy the site │ └── update-cache.yml # Workflow to update the transit data ├── public/ # Static website files │ ├── css/ # CSS stylesheets │ ├── js/ # JavaScript files │ └── index.html # Main HTML file └── README.md # This documentation
MIT
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Muni Metro Arrival Monitor
A simple web application that displays real-time arrival information for SF Muni Metro trains at specified stops.
Features
How It Works
This application takes a serverless approach:
This approach has several advantages:
Setup and Deployment
Prerequisites
Deployment Steps
Fork this repository
Set up your API key in GitHub Secrets
API_KEYEnable GitHub Pages
Manually trigger the workflows to start
Access your site
https://[your-username].github.io/muni-metro/Local Development
Clone your repository
Serve the files locally
Open your browser and visit
http://localhost:8080Customization
Modifying the Update Schedule
The default schedule updates data every 5 minutes during weekday commute hours (5am-4pm Pacific Time).
To change this schedule:
.github/workflows/update-cache.ymlcronvalue in theschedulesectionAdding More Stops
Project Structure
License
MIT