Coder Social home page Coder Social logo

cheap_buster's Introduction

about

This utility saves money for those who use a feature phone to access the NextBus service for bus predictions via text message.

With the standard system, each prediction costs at least two text messages: one to NextBus, and one for the reply.

If multiple bus routes serve a stop, even more text messages are required:

  1. me: Tell me the predictions for stop 8819
  2. NextBus: Do you want route 70 or 70A?
  3. me: 70
  4. NextBus: buses arrive in 7, 30, and 50 minutes.

Cost: Four text messages. Plus I don't get predictions for route 70A, which would also work for me.

NextBus does allow you to save a query for future use (saving us question 2 for the specific route), but the minimum interaction still requires two text messages.

benefits of Cheap Buster

  1. costs one text message per query
  2. provides predictions for more than one route
  3. sends the prediction via email or text message (which is cheaper for you?)

limitations

  1. pre-registration of your routes is required (no ad-hoc queries)
  2. the service currently runs on a free Heroku dyno; your response may be delayed while the application wakes.

operation

[ Seven of Nine says: "elaborate" ]

  • call from any phone (probably a feature phone)
  • Google Voice receives call, sends "missed call" email
  • CloudMailin translates the email into a POST request
  • Sinatra application looks up phone number, finds user's bus stops
  • query NextBus for arrival predictions
  • based on user's notification preference:
    • send predictions via email ( Mandrill/MailChimp )
    • send predictions via text message ( Amazon Simple Notification Service )
    • [ evaluate: SNS can do both email and text message, plus HTTP & SQS. Perhaps use it for all notifications? ]

enhancements?

  • schedule a query for a particular time (instead of calling)

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.