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

Converting an old JS file into a module

Scheduled Pinned Locked Moved Troubleshooting
20 Posts 3 Posters 11.0k 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.
  • Y Offline
    yawns Moderator @ooom416354
    last edited by Feb 3, 2017, 8:35 AM

    @ooom416354
    Do you know of a list of all stations with their LOC code for api requests? They have a list of stations, but I can’t find the codes

    O 1 Reply Last reply Feb 3, 2017, 12:24 PM Reply Quote 0
    • O Offline
      ooom416354 @yawns
      last edited by Feb 3, 2017, 12:24 PM

      @yawns there used to be a ton of documentation on the API which for some reason is now offline. I found a list that was downloaded, here is the link

      https://docs.google.com/viewer?a=v&pid=forums&srcid=MTI4MTUwMDQ0Mzg3NzE4MjExMDUBMTQyOTI2NzA2MDkyODAxMjI5MDABbmJnanZROTlFUUFKATAuMQEBdjI&authuser=0

      Y 1 Reply Last reply Feb 3, 2017, 12:32 PM Reply Quote 1
      • Y Offline
        yawns Moderator @ooom416354
        last edited by Feb 3, 2017, 12:32 PM

        @ooom416354
        Exactly what I was looking for. Thanks alot!

        O 2 Replies Last reply Feb 3, 2017, 1:11 PM Reply Quote 0
        • O Offline
          ooom416354 @yawns
          last edited by Feb 3, 2017, 1:11 PM

          @yawns no problem, I am still trying to find working link where this can be pulled, although there won’t be any new stations anytime soon.

          1 Reply Last reply Reply Quote 0
          • O Offline
            ooom416354 @yawns
            last edited by Feb 4, 2017, 1:53 PM

            @yawns Here’s all of the feeds, the site is down but I have the links:

            Full Station Listing with details:
            https://traintime.lirr.org/api/Stations-All

            Schedules based on Starting Station input (startsta=) and Ending Station input (endsta=) along with date/time (can be future dated)

            https://traintime.lirr.org/api/TrainTime?startsta=CLP&endsta=NYK&year=2017&month=02&day=04&hour=05&minute=00&datoggle=d

            Actual Train Schedules closest to the current time (passing in the 3 letter station code after loc=). This is different from the other link that I used for the JS file as it doesn’t show the ETA of the train.

            https://traintime.lirr.org/api/Departure?api_key=&loc=

            1 Reply Last reply Reply Quote 1
            • O Offline
              ooom416354
              last edited by Feb 12, 2017, 9:39 PM

              @yawns Hey I saw on git, MMM-MTA, not sure if that is all working or not though. Still working on configuring some stuff on my end but wanted to see if that was usable?

              Y 1 Reply Last reply Feb 13, 2017, 8:32 AM Reply Quote 0
              • Y Offline
                yawns Moderator @ooom416354
                last edited by Feb 13, 2017, 8:32 AM

                @ooom416354
                Hi, right that is the module I was working on. Over the last days I was completely busy doing cable stuff in my house and the weekend was blocked with dog training annual tax declaration.
                I try to complete it today or tomorrow.

                O 1 Reply Last reply Feb 13, 2017, 1:19 PM Reply Quote 0
                • O Offline
                  ooom416354 @yawns
                  last edited by Feb 13, 2017, 1:19 PM

                  @yawns that’s amazing, thanks! I was going to start using it to try to teach myself by comparing the two. Thank you again!

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