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.

    NYC MTA Subway Times

    Scheduled Pinned Locked Moved Unsolved Requests
    15 Posts 7 Posters 9.2k Views 7 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.
    • M Offline
      mastev26
      last edited by

      I have the code for this written out in Python but I’m struggling to code this for MM having never worked with JS before. Provided the Python script, could anyone help me finish out the project?

      1 Reply Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator
        last edited by yawns

        Like this one?
        https://forum.magicmirror.builders/topic/1935/mmm-mta-display-long-island-rail-road-delays

        I converted an old existing MTA module into a MM2 module for one user. It’s been two years since then, so I don’t know if it still is working, but please give it a try.

        M ooom416354O 2 Replies Last reply Reply Quote 0
        • M Offline
          mastev26 @yawns
          last edited by

          @yawns Thanks this looks similar and does run! But I am working with the real-time MTA API to create countdowns until a train will arrive at a given station. I may be able to mess around with this to achieve that.

          yawnsY 1 Reply Last reply Reply Quote 0
          • yawnsY Offline
            yawns Moderator @mastev26
            last edited by

            @mastev26
            Sure, would you mind sharing the python script?
            Feel free to fork my repository or submit a PR.

            1 Reply Last reply Reply Quote 0
            • ooom416354O Offline
              ooom416354 @yawns
              last edited by

              @yawns you had converted this one for me and yes, it still works :-)

              1 Reply Last reply Reply Quote 1
              • A Offline
                anthony6608
                last edited by

                @mastev26 I was just searching for this today, the closest I got was the commute app but since I use the LIRR often to take my son to auditions/meetings in the city I wanted something that would give me info from QVG -> Penn Station with a realtime count down on when the train will arrive. Do you mind sharing your module when it’s completed? Would truly appreciate it!

                ooom416354O 1 Reply Last reply Reply Quote 1
                • ooom416354O Offline
                  ooom416354 @anthony6608
                  last edited by

                  @mastev26 @anthony6608 +1 for me too, I would love that as well. what could also be good is if there is a service status from this file

                  http://web.mta.info/status/serviceStatus.txt

                  where you could pull this in and have just your train line and pop up on the screen if there’s any delay. dont know if something is out there like that now either…

                  I 1 Reply Last reply Reply Quote 0
                  • I Offline
                    imchrisrein @ooom416354
                    last edited by

                    @ooom416354
                    I too would love something like the MTA has in some of the stations now (see pic below). I plan to make a magic mirror for our office and determine everyone’s subway line so that when they are leaving or planning to leave they can see when the next 2 trains are in either direction
                    .
                    0_1547063164736_New-York-MTA-OTG-Digital-Kiosk-Transit-Information1.jpg

                    Even just the basic service status for the subways would be helpful too if the data can’t be pulled off above.

                    I also finally got the MMM-MTA to work for me last night. Couldn’t figure out why nothing would show and then all of a sudden alert popped up that the Babylon eastbound train to Penn was running two minutes late. That will be going on my home mirror and work mirror.

                    ooom416354O 1 Reply Last reply Reply Quote 0
                    • ooom416354O Offline
                      ooom416354 @imchrisrein
                      last edited by

                      @imchrisrein yea it will only show up if there’s a delay for the LIRR module. The pic above is great - I think you can get the next times using their API. might even be some modules out there now. I was thinking something like this might help you ?

                      https://github.com/konecnyna/MMM-MTA

                      I 1 Reply Last reply Reply Quote 0
                      • I Offline
                        imchrisrein @ooom416354
                        last edited by

                        @ooom416354 You da man.

                        I am using an MTA module but not this one. Love it, gonna try when I get home tonight.

                        ooom416354O E 2 Replies Last reply Reply Quote 0
                        • ooom416354O Offline
                          ooom416354 @imchrisrein
                          last edited by

                          @imchrisrein im trying it now, making some sort of attempt to convert to work with the LIRR. The module that @yawns helped is great to track when the next train is. right now i’m also trying to see if there’s an overall service issue as well. sometimes the train is on time but cancelled at jamaica before i get to the station so it would be good to know if that happens before leaving

                          I 1 Reply Last reply Reply Quote 0
                          • I Offline
                            imchrisrein @ooom416354
                            last edited by

                            @ooom416354 I just gave this a try and it works great. Any clue how to get the corresponding lines to show their colors? I see a call to the public folder mta-view which has the code and color for each line, but mine are greyed out.

                            1 Reply Last reply Reply Quote 0
                            • G Offline
                              gstefano
                              last edited by

                              @mastev26 Did you ever figure this out? Also trying to call real-time arrival info.

                              1 Reply Last reply Reply Quote 0
                              • E Offline
                                Elaniobro @imchrisrein
                                last edited by

                                @imchrisrein Which Module are you using?

                                1 Reply Last reply Reply Quote 0
                                • E Offline
                                  Elaniobro
                                  last edited by

                                  I myself wrote one if you want to check it out. Feedback is welcome:
                                  https://github.com/Elaniobro/MMM-nyc-transit

                                  1 Reply Last reply Reply Quote 0

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • 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