MagicMirror Forum

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

    UNSOLVED NYC MTA Subway Times

    Requests
    7
    15
    4829
    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
      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
      • yawns
        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 ooom416354 2 Replies Last reply Reply Quote 0
        • M
          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.

          yawns 1 Reply Last reply Reply Quote 0
          • yawns
            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
            • ooom416354
              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
                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!

                ooom416354 1 Reply Last reply Reply Quote 1
                • ooom416354
                  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
                    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.

                    ooom416354 1 Reply Last reply Reply Quote 0
                    • ooom416354
                      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
                        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.

                        ooom416354 E 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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