{"id":13830523,"url":"https://github.com/Elaniobro/MMM-nyc-transit","last_synced_at":"2025-07-09T11:33:20.567Z","repository":{"id":36231073,"uuid":"147961839","full_name":"Elaniobro/MMM-nyc-transit","owner":"Elaniobro","description":"MTA transit module for Magic Mirror","archived":false,"fork":false,"pushed_at":"2024-06-07T12:05:54.000Z","size":1661,"stargazers_count":20,"open_issues_count":9,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-04T10:03:17.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Elaniobro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://venmo.com/Elan-Trybuch"]}},"created_at":"2018-09-08T19:03:52.000Z","updated_at":"2024-08-04T10:03:23.845Z","dependencies_parsed_at":"2024-01-15T17:39:17.431Z","dependency_job_id":"96a81d09-a436-438d-addf-fefddabadfe5","html_url":"https://github.com/Elaniobro/MMM-nyc-transit","commit_stats":{"total_commits":101,"total_committers":8,"mean_commits":12.625,"dds":0.4356435643564357,"last_synced_commit":"ed7cd97ff2a512840e1d9e8df1c505e586a2e4b6"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elaniobro%2FMMM-nyc-transit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elaniobro%2FMMM-nyc-transit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elaniobro%2FMMM-nyc-transit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elaniobro%2FMMM-nyc-transit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elaniobro","download_url":"https://codeload.github.com/Elaniobro/MMM-nyc-transit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225539423,"owners_count":17485325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T10:01:01.497Z","updated_at":"2024-11-20T11:30:53.390Z","avatar_url":"https://github.com/Elaniobro.png","language":"JavaScript","funding_links":["https://venmo.com/Elan-Trybuch"],"categories":["Travel"],"sub_categories":[],"readme":"# MTA transit module for MagicMirror²\n\n## 🛡 Badges\n\u003c!-- Social info --\u003e\n![follow on Twitte](https://img.shields.io/twitter/follow/elaniobro?style=social\u0026logo=twitter)  ![GitHub followers](https://img.shields.io/github/followers/elaniobro?style=social)\n\u003c!-- Application info --\u003e\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/elaniobro/MMM-nyc-transit)    [![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors)  ![GitHub top language](https://img.shields.io/github/languages/top/elaniobro/MMM-nyc-transit)    ![GitHub](https://img.shields.io/github/license/elaniobro/MMM-nyc-transit) \u003c!-- Github status --\u003e\n![GitHub issues](https://img.shields.io/github/issues/elaniobro/MMM-nyc-transit)  ![GitHub issues](https://img.shields.io/github/issues-closed/elaniobro/MMM-nyc-transit)![GitHub pull requests](https://img.shields.io/github/issues-pr/elaniobro/MMM-nyc-transit)  ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/elaniobro/MMM-nyc-transit)\n\n\u003c!-- ![](./mmm-nyc-transit.gif) --\u003e\n\n![](https://user-images.githubusercontent.com/710847/80649891-dab42300-8a40-11ea-96ac-f76926f1b109.png)\n\n## ℹ️ How to use this module\n\n1. clone this repo into your moducles directory with the following command: `git clone https://github.com/Elaniobro/MMM-nyc-transit`\n2. install all the npm modules with either `yarn install` or `npm install`\n3. update your [MagicMirror² Config](https://github.com/MichMich/MagicMirror/blob/master/config/config.js.sample), by adding the following object:\n\n```javascript\n  {\n    module: 'MMM-nyc-transit',\n    position: \"top_bar\",\n    header: \"Next Train\",\n    config: {\n      apiKey: 'YOUR_KEY_HERE',\n      displayType: 'list',\n      mtaType: 'train',\n      stations: [\n        {\n          stationId: 237,\n          walkingTime: 5,\n          dir: {\n              upTown: false,\n              downTown: true\n          }\n        },\n        {\n          stationId: 177,\n          walkingTime: 5,\n          dir: {\n            upTown: true,\n            downTown: false\n          }\n        }\n      ],\n      updateInterval: 300000\n    }\n  }\n```\n\n## 🛠️ Config\n\n* `module` the name of the module you are installing.\n* `position` where you want the mmm-nyc-transit module to appear.\n  * \u003cspan style=\"font-size: 12px; color: #999; font-weight: bold\"\u003e_note: configurable, see MM documentation_\u003c/span\u003e\n* `header` display name for what you want to call your module on screen\n  * \u003cspan style=\"font-size: 12px; color: #999; font-weight: bold\"\u003e_note: optional_\u003c/span\u003e\n* `displayType` choose between scrolling marquee (default) or list\n  * `list` - shows next 3 trains for each line, both uptown and downtown\n    * \u003cspan style=\"font-size: 12px; color: #999; font-weight: bold\"\u003e_note: works best on side_\u003c/span\u003e\n  * `marquee` - shows next 6 trains, 3 for uptown and 3 for downtown\n    * \u003cspan style=\"font-size: 12px; color: #999; font-weight: bold\"\u003e_note: works best on top_\u003c/span\u003e\n* `apiKey` see [mta api Key](#🔑-mta-api-Key) on where to obtain yours.\n* `mtaType` _coming soon, choose bus and or train_\n* `stations` array to store each station config.\n  * `stationId` find your [station(s)](#-station-list) id(s).\n  * `walkingTime` allows you to pad the realtime data time, with travel time to the station.\n  * `dir` object to hold which directions of the train to show\n    * `upTown` boolean value\n    * `downTown` boolean value\n* `updateInterval` default is set to 5 minutes\n  * __low interval will result in your MTA api key timing out__\n\n## 🔑 MTA API Key\n\nYou will need to sign up for the MTA Real-Time Data Feeds API. To get a key, please visit their website: [api.mta.info](https://api.mta.info/).\n\n## 🚆 Station List\n\nFind the corresponding `Name` and `id` in the [STATION_LIST.md](STATION_LIST.md) object to insert into the config array.\n\n## ✨ Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please open an issue](https://github.com/elaniobro/mmm-nyc-transit/issues)\n\n## 👨🏻 Author\n\n**Elan Trybuch**\n\n* [github](https://www.github.com/elaniobro)\n* [twitter](https://www.twitter.com/elaniobro)\n\n### ⚖️ License\n\nThis project is licensed under the MIT License - see the LICENSE.md file for details\n\n### 🙏🏽 Acknowledgments\n\n* [Eric Lewis](https://github.com/ericandrewlewis/mta-realtime-subway-departures/blob/master/package.json)\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://elan.trybuch.com\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/710847?v=4?s=100\" width=\"100px;\" alt=\"Elan Trybuch\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eElan Trybuch\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#design-elaniobro\" title=\"Design\"\u003e🎨\u003c/a\u003e \u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/commits?author=elaniobro\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/pulls?q=is%3Apr+reviewed-by%3Aelaniobro\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e \u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/commits?author=elaniobro\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#maintenance-elaniobro\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"#infra-elaniobro\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://www.ericandrewlewis.com\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/1087646?v=4?s=100\" width=\"100px;\" alt=\"Eric Lewis\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eEric Lewis\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/commits?author=ericandrewlewis\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/Kendiggity973\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/54965526?v=4?s=100\" width=\"100px;\" alt=\"Kendiggity973\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKendiggity973\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-Kendiggity973\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/issues?q=author%3AKendiggity973\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/dahlio\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/52632238?v=4?s=100\" width=\"100px;\" alt=\"dahlio\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003edahlio\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-dahlio\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/issues?q=author%3Adahlio\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/jon7187\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/744623?v=4?s=100\" width=\"100px;\" alt=\"jon7187\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ejon7187\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/issues?q=author%3Ajon7187\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"#ideas-jon7187\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"#example-jon7187\" title=\"Examples\"\u003e💡\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/nipper2000h\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/60026688?v=4?s=100\" width=\"100px;\" alt=\"nipper2000h\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003enipper2000h\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/issues?q=author%3Anipper2000h\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://kurtraschke.com\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/118546?v=4?s=100\" width=\"100px;\" alt=\"Kurt Raschke\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKurt Raschke\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/issues?q=author%3Akurtraschke\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/commits?author=kurtraschke\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://undecidable.net/joolean/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/799596?v=4?s=100\" width=\"100px;\" alt=\"Julian Graham\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJulian Graham\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/issues?q=author%3Ajoolean\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/Elaniobro/MMM-nyc-transit/commits?author=joolean\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/KristjanESPERANTO\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/35647502?v=4?s=100\" width=\"100px;\" alt=\"Kristjan ESPERANTO\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKristjan ESPERANTO\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#maintenance-KristjanESPERANTO\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElaniobro%2FMMM-nyc-transit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElaniobro%2FMMM-nyc-transit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElaniobro%2FMMM-nyc-transit/lists"}