Giter Site home page Giter Site logo

naantala's Introduction

Project no longer maintained.

The status page of MRT3 hasn't been active since May 2017.


naantala

Version Build Status Coverage Status

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

Requirements

  • Ruby 2.4.2
  • MongoDB 3.4.9

Running the Sinatra app

  1. Make sure to create development and test MongoDB databases (check config/mongodb.yml for databases, or name your own)
  2. Install dependencies by running bundle install.
  3. Run the app via thin start.

Running the test

  1. Just run bundle exec rspec.

Running the service

The SMS notifier (located inside app/service) should be run via a scheduler (Heroku Scheduler, etc.)

  1. Set up your Semaphore account to configure the environment variables.
  2. Add ./bin/check-line-status to your scheduler and set it to run every 10-15 minutes (recommended).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.