• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-MBTA - Information about a single MBTA (Boston, Massachusetts) station

Scheduled Pinned Locked Moved Transport
transportationbostonmassachusettsmbtaalerts
6 Posts 3 Posters 2.9k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    edward-shen Module Developer
    last edited by edward-shen Jun 18, 2017, 8:33 PM Jun 14, 2017, 1:35 AM

    Hey all,
    I made a module to show information about a single MBTA (subway, bus, etc.) station in Boston. When you get dressed, you’ll be able to see the upcoming trains, and when to leave.

    example

    You can choose a station, various options (e.g. eta time, arrival time, neither, both) and it’ll show options like alerts, if you put it on a full-width position. You can also filter out types of transportation and cap the number of shown. Other options include formatting your eta time (seconds only, minutes only, or minutes and seconds) and showing the full name rather than the short-hand. I’ve even attempted to match the formatting of the default modules, for better looking integration.

    The data was taken from the MBTA api, so this is only as accurate as their stuff :^). Note that their API limits a single type of request to 1 per 10 seconds, so unfortunately I can’t implement more than one station.

    I would love to hear your feedback and suggestions (please make an issue on github; I’m on there more often!). I’m new to the developer scene, so any and all are appreciated!

    [card:edward-shen/MMM-MBTA]

    1 Reply Last reply Reply Quote 0
    • J Offline
      jamiec117
      last edited by Feb 6, 2018, 3:16 PM

      Hey Edward,

      Does the new mbta api-v3 affect anything with this module? My mirror recently stopped pulling bus data and I’m wondering if it’s because I’m currently using an api-v2 key.

      Best,
      / jamie

      1 Reply Last reply Reply Quote 0
      • E Offline
        edward-shen Module Developer
        last edited by Feb 6, 2018, 4:40 PM

        Yup, since APIv2 will no longer function after March or April, the repo has been updated to use the new APIv3. Unfortunately, you’ll need a new key, but it doesn’t require a wait to get a new key.

        We’ve also changed a little bit on the config side. If your MMM-MBTA doesn’t work after using APIv3, check if to see if the station name has changed. There’s a list on the repo. We also have new config options, so check that out as well!

        If that still doesnt fix it, make an issue on GitHub or privately email me, I’ll be happy to help.

        1 Reply Last reply Reply Quote 0
        • W Offline
          wimosaur
          last edited by Aug 27, 2018, 2:07 PM

          First off, thanks for making a great module! I may be missing something in setting it up, but how do you specify between two bus stations with the same name but are going in different directions? For example, in the stations-formatted file Washington St @ Massachusetts Ave only displays one direction, how would I get it to display the opposite? I see the different station numbers 5 vs 55 but using those just shows no vehicles scheduled. Is it possible? Thanks!

          1 Reply Last reply Reply Quote 0
          • E Offline
            edward-shen Module Developer
            last edited by Aug 29, 2018, 10:51 PM

            Hey @wimosaur, sorry for the late response.

            As far as I can remember, I never really implemented support for specifying which direction to use. Due to the lack of support/demand I haven’t really been updating/working on this module.

            If you need the other direction, I’ve made a quick update to MMM-MBTA that lets you specify which direction for that station only. Specify "Washington St @ Massachusetts Ave 1" for one direction "Washington St @ Massachusetts Ave 2" for the other direction.

            Unfortunately, MMM-pages seems to be both more popular and has a large bug in it that’s driving me insane, so I don’t think I can add new functionality to this module in the future.

            That being said, I’m always happy for people to make PRs, and I’ll be happy to merge code in!

            1 Reply Last reply Reply Quote 0
            • E Offline
              edward-shen Module Developer
              last edited by Aug 29, 2018, 10:53 PM

              NOTICE

              For all future issues, please create an issue on Github! I do not monitor the Magic Mirror forums!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy