The status page of MRT3 hasn't been active since May 2017.
Delivers SMS notifications whenever MRT Line 3 experiences technical problems. This service works by pinging https://dotcmrt3.gov.ph/service-status for the most recent status. As a result, it's not real-time since it relies on the webpage being updated regularly.
Note that only issues with CAT3 & CAT4 statuses will be captured.
- Category 1 - Fault Normalized / No effect on operation
- Category 2 - Train is removed with replacement
- Category 3 - Train is removed without replacement / Cancellation of loops and insertion
- Category 4 - Service interruption / Cancellation of loops
- Ruby
2.4.2
- MongoDB
3.4.9
- Make sure to create
development
andtest
MongoDB databases (checkconfig/mongodb.yml
for databases, or name your own) - Install dependencies by running
bundle install
. - Run the app via
thin start
.
- Just run
bundle exec rspec
.
The SMS notifier (located inside app/service
) should be run via a scheduler (Heroku Scheduler, etc.)
- Set up your Semaphore account to configure the environment variables.
- Add
./bin/check-line-status
to your scheduler and set it to run every 10-15 minutes (recommended).