Giter Club home page Giter Club logo

tmuxmarta's Introduction

tmuxmarta

tmuxmarta displays upcoming MARTA trains in your byobu status line.

  • show basic information
  • read api key from the filesystem
  • read MARTA station config from the filesystem
  • tmux prettify output

You can get an API key from http://www.itsmarta.com/app-developer-resources.aspx .

For the sake of completing this quick hack, your MARTA api key is read from the file $HOME/.martakey and your choice of MARTA stops are configured by changing the config variable in Lib.hs. The stops I've seen so far are listed below, and my config value looks like config = [("MIDTOWN STATION",N), ("NORTH AVE STATION",S), ("LINDBERGH STATION",S)].

Once you run stack install you will be able to copy the binary tmuxmarta-exe into your ~/.byobu/bin/ directory as something sensible like 300_marta at which point, every 300 seconds your byobu status line will display basic information about your MARTA stops.

  • "AIRPORT STATION"
  • "ARTS CENTER STATION"
  • "ASHBY STATION"
  • "AVONDALE STATION"
  • "BANKHEAD STATION"
  • "BROOKHAVEN STATION"
  • "BUCKHEAD STATION"
  • "CHAMBLEE STATION"
  • "CIVIC CENTER STATION"
  • "COLLEGE PARK STATION"
  • "DECATUR STATION"
  • "DORAVILLE STATION"
  • "DUNWOODY STATION"
  • "EAST LAKE STATION"
  • "EAST POINT STATION"
  • "EDGEWOOD CANDLER PARK STATION"
  • "FIVE POINTS STATION"
  • "GARNETT STATION"
  • "GEORGIA STATE STATION"
  • "HAMILTON E HOLMES STATION"
  • "INDIAN CREEK STATION"
  • "INMAN PARK STATION"
  • "KENSINGTON STATION"
  • "KING MEMORIAL STATION"
  • "LAKEWOOD STATION"
  • "LENOX STATION"
  • "LINDBERGH STATION"
  • "MEDICAL CENTER STATION"
  • "MIDTOWN STATION"
  • "NORTH AVE STATION"
  • "NORTH SPRINGS STATION"
  • "OAKLAND CITY STATION"
  • "OMNI DOME STATION"
  • "PEACHTREE CENTER STATION"
  • "SANDY SPRINGS STATION"
  • "VINE CITY STATION"
  • "WEST END STATION"
  • "WEST LAKE STATION"

tmuxmarta's People

Contributors

shapr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

tmuxmarta's Issues

typecheck station values

Station values are easy to misspell, find some way to check/fix that.
Perhaps use a smart constructor and newtype wrapper to check config values?

read station config from a file

Not everyone wants to configure their list of stations by editing the Haskell source and recompiling, so read the list of stations and directions from a plain text configuration file.

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.