• 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.

NYC MTA Subway Times

Scheduled Pinned Locked Moved Unsolved Requests
15 Posts 7 Posters 7.0k 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 Dec 18, 2018, 3:25 PM

    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
    • Y Offline
      yawns Moderator
      last edited by yawns Dec 18, 2018, 4:42 PM Dec 18, 2018, 4:39 PM

      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 O 2 Replies Last reply Dec 18, 2018, 6:37 PM Reply Quote 0
      • M Offline
        mastev26 @yawns
        last edited by Dec 18, 2018, 6:37 PM

        @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.

        Y 1 Reply Last reply Dec 18, 2018, 7:18 PM Reply Quote 0
        • Y Offline
          yawns Moderator @mastev26
          last edited by Dec 18, 2018, 7:18 PM

          @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
          • O Offline
            ooom416354 @yawns
            last edited by Dec 28, 2018, 7:25 PM

            @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 Jan 4, 2019, 3:43 AM

              @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!

              O 1 Reply Last reply Jan 9, 2019, 2:49 PM Reply Quote 1
              • O Offline
                ooom416354 @anthony6608
                last edited by Jan 9, 2019, 2:49 PM

                @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 Jan 9, 2019, 7:49 PM Reply Quote 0
                • I Offline
                  imchrisrein @ooom416354
                  last edited by Jan 9, 2019, 7:49 PM

                  @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.

                  O 1 Reply Last reply Jan 10, 2019, 2:09 AM Reply Quote 0
                  • O Offline
                    ooom416354 @imchrisrein
                    last edited by Jan 10, 2019, 2:09 AM

                    @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 Jan 10, 2019, 2:18 AM Reply Quote 0
                    • I Offline
                      imchrisrein @ooom416354
                      last edited by Jan 10, 2019, 2:18 AM

                      @ooom416354 You da man.

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

                      O E 2 Replies Last reply Jan 10, 2019, 2:47 AM 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 Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy