{"id":13830522,"url":"https://github.com/NateDee/MMM-CTA","last_synced_at":"2025-07-09T11:33:15.627Z","repository":{"id":217324862,"uuid":"120152403","full_name":"NateDee/MMM-CTA","owner":"NateDee","description":"Magic Mirror module for Chicago bus routes","archived":false,"fork":false,"pushed_at":"2024-01-20T21:17:36.000Z","size":65,"stargazers_count":7,"open_issues_count":9,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T10:03:16.906Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NateDee.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-02-04T03:44:31.000Z","updated_at":"2024-08-04T10:03:21.449Z","dependencies_parsed_at":"2024-01-15T19:44:10.324Z","dependency_job_id":"5bfa1fa5-6a24-4f5d-bfac-5f4925fbb97a","html_url":"https://github.com/NateDee/MMM-CTA","commit_stats":null,"previous_names":["natedee/mmm-cta"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NateDee%2FMMM-CTA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NateDee%2FMMM-CTA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NateDee%2FMMM-CTA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NateDee%2FMMM-CTA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NateDee","download_url":"https://codeload.github.com/NateDee/MMM-CTA/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225539423,"owners_count":17485326,"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.456Z","updated_at":"2024-11-20T11:30:53.824Z","avatar_url":"https://github.com/NateDee.png","language":"JavaScript","funding_links":[],"categories":["Travel"],"sub_categories":[],"readme":"# MMM-CTA\n\n![Example of MMM-CTA](./screenshots/MMM-CTA.png)\n\nThis [MagicMirror Module][mm] is designed to display incoming bus and train times for the CTA (Chicago Transit Authority).  The module will display up to the minute data for bus and train arrival times.\n\n## Get your CTA API keys!\n\nYou need to obtain API keys to access the live data to update your mirror:\n\nBus API:  http://www.transitchicago.com/developers/bustracker.aspx\n\nTrain API:  http://www.transitchicago.com/developers/traintrackerapply.aspx\n\nThe bus tracker API key can be obtained immediately, the train tracker key can take a few days to register.  Please reference this github since it's already approved maybe it will help speed things along for you.\n\n## Installation\n\nIn your terminal, go to your MagicMirror's Module folder:\n\n```bash\ncd ~/MagicMirror/modules\n```\nClone this repository:\n```bash\ngit clone https://github.com/NateDee/MMM-CTA.git\n```\nConfigure the module in your config.js file.\n\n\n## Using the module\n\nTo use this module, add it to the modules array in your config.js file.\n\n```js\nmodules: [\n     {\n\tmodule: 'MMM-CTA',\n\tposition: 'bottom_left',\n\tconfig: {\n\t\tupdateTime: 60000, // 1 minute, the API does not update much more often so going below this is unnecessary\n\t\tctaApiKey: 'you-bus-APIkey',\n\t\tbusStopName: '',  // String value, Name your bus stop\n\t\tstopId: 561, // Bus station ID: Chicago and Milwaukee example; go to http://www.transitchicago.com/riding_cta/systemguide/default.aspx to find your stop ID\n\t\tmaxResult: 4,  // The maximum number of incoming bussesy you want to display for bus stops\n\t\tctaApiKeyTrain: 'your-train-APIkey',\n\t\ttrainStopName: '',  //String value, name your train stop\n\t\ttrainStationID: 41410, //Train station ID:  Chicago Blue line example; http://www.transitchicago.com/developers/ttdocs/default.aspx#_Toc296199909\n\t\tmaxResultTrain: 5, // Max number of incoming trains to disply\n\t\tmoduleInstance: 1, // To run multiple instances of this module\n\t},\n     }\n]\n```\n\n## Configuration Options\n\nOption|Description\n------|-----------\n`updateTime`|How often the requests should update; 60 * 1000 = 1 minute.\u003cbr/\u003e**Expected Value type:** `int`\n`ctaApiKey`|Your CTA Bus API key.\u003cbr/\u003e**Expected Value type:** `string`\n`busStopName`|Name you would like to give your bus stop.\u003cbr/\u003e**Expected Value type:** `string`\n`stopId`|The number of your stopID, find a stop ID:\u003cbr/\u003ehttp://www.transitchicago.com/riding_cta/systemguide/default.aspx\u003cbr/\u003eFor help finding your stopID, see the FAQ below.\u003cbr/\u003e**Expected Value type:** `int`\n`maxResult`|The maximum number of bus results your station should display.\u003cbr/\u003e**Expected Value type:** `int`\n`ctaApiKeyTrain`|Your CTA Traing API key.\u003cbr/\u003e**Expected Value type:** `string`\n`trainStopName`|Name you would like to give your train stop.\u003cbr/\u003e**Expected Value type:** `string`\n`trainStationID`|Number of L station, find a station:\u003cbr/\u003ehttp://www.transitchicago.com/developers/ttdocs/default.aspx#_Toc296199909\u003cbr/\u003e**Expected Value type:** `int`\n`maxResultTrain`|The maximum number of train results to display.\u003cbr/\u003e**Expected Value type:** `int`\n`moduleInstance`|If running multiple instances, add a new instance to your config.js and increment this value by 1 for each additional instance.\u003cbr/\u003e**Expected Value type:** `int`\n\n\n## FAQ\n- I can't find my bus stop ID\n\t\n\tFollow the link in \"Configuration Options\", use the drop down menu to find your bus route.  Under \"Route Information\", click the \"Bus Stop List\" link, which provides a table of StopID's matching the stop name and direction of travel.\n\t\n- I can't find my train station ID\n\n\tFollow the link in \"Configuration Options\", scroll down to the section titled \"Parent Stop ID Quick Reference\" and find your stationID.  The table is labeled as StopID, but these are actually the StationID's.\n\t\n- I want more or different config options\n\t\n\tCreate an issue here please.\n\n[mm]: https://github.com/MichMich/MagicMirror\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNateDee%2FMMM-CTA","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNateDee%2FMMM-CTA","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNateDee%2FMMM-CTA/lists"}