MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.25.0 is available! For more information about this release, check out this topic.

    SOLVED MBTA - can anyone get this working?

    Troubleshooting
    2
    6
    440
    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.
    • N
      nakulbende last edited by

      Hello, I have the following config on my file:

      		{
      			module: 'MMM-MBTA',
      			position: 'bottom_left', // This can be any of the regions.
      			header: "MBTA: Davis",
      			config: {
      				apikey: 'XXXXXXX',
      				updateInterval: 30,
      				stations: 'Davis Square": "place-davis',
      				formatETA: 'true',
      				showOnly: ["Subway", "Bus"],
      				colorIcons: 'true',
      				direction: 'Inbound',
      				noETAToBack: 'false'
      			}
      		},
      

      But I am getting a nothing coming soon error. Am I doing something wrong?

      image

      On a seperate note, how does the stations field look if I want to include two stations? Say Davis Square": "place-davis and Main St @ Emerson Rd": "8823

      1 Reply Last reply Reply Quote 0
      • S
        sdetweil last edited by sdetweil

        @nakulbende said in MBTA - can anyone get this working?:

        MMM-MBTA

        according to the readme

        stations
        This is an array of stations that you wish to display. Currently, only one max station is allowed. For a list of station names, please refer to stations-formatted.json. Make sure to use the common name!
        Example: stations: [ “Airport” ].
        Expected Value type: [String, String, …].

        so, it is ALWAYS has the brackets , even if just one station name

        stations: [ something ]

        I don’t know what this means
        Currently, only one max station is allowed

        based on the code, it looks like it will look up the station number from the name as provided in the
        stations-formatted.json file…

        so, you would use the name

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • N
          nakulbende last edited by

          Not sure how I got that - but I just changed them to common names. Still nothing.

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @nakulbende last edited by sdetweil

            @nakulbende did u change them to the names listed in the json file?

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • N
              nakulbende last edited by

              Wait, it worked now. I was missing the []. It needs an array. Thanks again!

              S 1 Reply Last reply Reply Quote 1
              • S
                sdetweil @nakulbende last edited by

                @nakulbende cool!

                Sam

                Create a working config
                How to add modules

                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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy