Skip to content

Clipper agent #66

@twolfson

Description

@twolfson

I have had this idea for a while and figured I would act on it but still haven't due to barrier to entry of learning ruby. Anyway, here it goes:

The Clipper card is a multi-transit system paycard for the SF Bay Area. The system has an autoload feature but it only works when the balance goes below $10.

The basic idea is to create an agent which:

  • Monitors balance for threshold
  • When below threshold, auto-deposit pre-defined amount
  • Bonus: Could track daily transit usage
  • Bonus: There is a delay of up to 5 days when depositing online, Huginn could be smart and pre-determine when the threshold will be reached and deposit 5 days early

This is a little short sighted as it only applies to the Bay Area but it probably could serve a nice boilerplate for other transit systems.

As far as implementation goes, some options are scripted purely in Ruby (depends how much AJAX happens on page), scripted via PhantomJS, or we create an API wrapper for Clipper and hit that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions