Giter Site home page Giter Site logo

mmm-nyc-transit's Introduction

MTA transit module for MagicMirrorΒ²

πŸ›‘ Badges

follow on Twitte GitHub followers

GitHub tag (latest SemVer) All Contributors GitHub top language GitHub GitHub issues GitHub issuesGitHub pull requests GitHub closed pull requests

ℹ️ How to use this module

  1. clone this repo into your moducles directory with the following command: git clone https://github.com/Elaniobro/MMM-nyc-transit
  2. install all the npm modules with either yarn install or npm install
  3. update your MagicMirrorΒ² Config, by adding the following object:
  {
    module: 'MMM-nyc-transit',
    position: "top_bar",
    header: "Next Train",
    config: {
      apiKey: 'YOUR_KEY_HERE',
      displayType: 'list',
      mtaType: 'train',
      stations: [
        {
          stationId: 237,
          walkingTime: 5,
          dir: {
              upTown: false,
              downTown: true
          }
        },
        {
          stationId: 177,
          walkingTime: 5,
          dir: {
            upTown: true,
            downTown: false
          }
        }
      ],
      updateInterval: 300000
    }
  }

πŸ› οΈ Config

  • module the name of the module you are installing.
  • position where you want the mmm-nyc-transit module to appear.
    • note: configurable, see MM documentation
  • header display name for what you want to call your module on screen
    • note: optional
  • displayType choose between scrolling marquee (default) or list
    • list - shows next 3 trains for each line, both uptown and downtown
      • note: works best on side
    • marquee - shows next 6 trains, 3 for uptown and 3 for downtown
      • note: works best on top
  • apiKey see mta api Key on where to obtain yours.
  • mtaType coming soon, choose bus and or train
  • stations array to store each station config.
    • stationId find your station(s) id(s).
    • walkingTime allows you to pad the realtime data time, with travel time to the station.
    • dir object to hold which directions of the train to show
      • upTown boolean value
      • downTown boolean value
  • updateInterval default is set to 5 minutes
    • low interval will result in your MTA api key timing out

πŸ”‘ MTA API Key

You will need to sign up for the MTA Real-Time Data Feeds API. To get a key, please visit their website: api.mta.info.

πŸš† Station List

Find the corresponding Name and id in the STATION_LIST.md object to insert into the config array.

✨ Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please open an issue

πŸ‘¨πŸ» Author

Elan Trybuch

βš–οΈ License

This project is licensed under the MIT License - see the LICENSE.md file for details

πŸ™πŸ½ Acknowledgments

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Elan Trybuch
Elan Trybuch

🎨 πŸ’» πŸ‘€ πŸ“– 🚧 πŸš‡
Eric Lewis
Eric Lewis

πŸ’»
Kendiggity973
Kendiggity973

πŸ€” πŸ›
dahlio
dahlio

πŸ€” πŸ›
jon7187
jon7187

πŸ› πŸ€” πŸ’‘
nipper2000h
nipper2000h

πŸ›
Kurt Raschke
Kurt Raschke

πŸ› πŸ’»
Julian Graham
Julian Graham

πŸ› πŸ’»
Kristjan ESPERANTO
Kristjan ESPERANTO

🚧

This project follows the all-contributors specification. Contributions of any kind welcome!

mmm-nyc-transit's People

Contributors

elaniobro avatar dependabot[bot] avatar allcontributors[bot] avatar mikekutzma avatar joolean avatar kristjanesperanto avatar zingerj avatar

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.