├── README.md
├── run.sh
└── serviceStatus.txt
/README.md:
--------------------------------------------------------------------------------
1 | # MTA Service Status Archive
2 |
3 | This git repo functions as an archive of the [serviceStatus XML](http://web.mta.info/status/serviceStatus.txt) from the MTA.
4 |
5 | Every minute, changes are checked and added to the [history](https://github.com/talos/mta-service-status-archive/commits/master).
6 |
--------------------------------------------------------------------------------
/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | # Use a random number to make sure we don't get cached
4 | # Eliminate the timestamp to kill unnecessary commits
5 | # (our timestamp is when the commit happened!)
6 |
7 | curl "http://web.mta.info/status/serviceStatus.txt?_=$RANDOM" | \
8 | sed -E 's:
7 | Reference #18.25fb4317.1532188381.13e17d76 8 | 9 | 10 | --------------------------------------------------------------------------------