Elaniobro / MMM-nyc-transit

MTA transit module for Magic Mirror
MIT License
21 stars 14 forks source link

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

🔑 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!