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

MMM-UKNationalRail - Rail departure info for specific UK Railway stations

Scheduled Pinned Locked Moved Transport
uk railtransport
33 Posts 15 Posters 17.3k Views 16 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 @nwootton
    last edited by Nov 24, 2017, 1:08 PM

    @nwootton said in MMM-UKNationalRail - Rail departure info for specific UK Railway stations:

    I’d STRONGLY advise you remove your API keys from the JSON. Hate for other people to mis-use your account BTW

    Good advise. That’s why I edited his post and replaced several characters with X :)

    N 1 Reply Last reply Nov 24, 2017, 2:45 PM Reply Quote 0
    • N Offline
      noelandrews
      last edited by Nov 24, 2017, 2:34 PM

      Thanks for the advice and the edits! Didn’t think about that :)

      1 Reply Last reply Reply Quote 0
      • N Offline
        nwootton Module Developer @yawns
        last edited by Nov 24, 2017, 2:45 PM

        @yawns Explains why my email had the key and the post was XXXXXX.

        Thought I was losing it!

        1 Reply Last reply Reply Quote 0
        • F Offline
          funk0id
          last edited by Sep 9, 2019, 12:44 PM

          Absolutely love this plugin, just wish it was still being improved :(

          1 Reply Last reply Reply Quote 0
          • D Offline
            dawookie1979
            last edited by Dec 6, 2019, 9:17 PM

            Hello, i have the module working, i just cant get it to display the title.

            {
            module: ‘MMM-UKNationalRail’,
            position: ‘bottom_left’,
            header: ‘Whittlesford Parkway’, //Optional - delete this line to turn OFF the header completely
            config: {
            stationCode: ‘WLF’, // CRS code for station
            app_id: ‘xxxxxxxx’, // TransportAPI App ID
            app_key: ‘xxxxxxxxxx’, // TransportAPI App Key
            maxResults: 5, //Optional - Maximum results to display.
            showOrigin: false //Optional - Show the origin of the train in the table
            }

            any ideas?

            S 1 Reply Last reply Dec 6, 2019, 9:26 PM Reply Quote 0
            • S Away
              sdetweil @dawookie1979
              last edited by Dec 6, 2019, 9:26 PM

              @dawookie1979 u mean the header?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • D Offline
                dawookie1979
                last edited by Dec 7, 2019, 7:47 PM

                yes the header is not showing

                1 Reply Last reply Reply Quote 0
                • T Offline
                  tenpinmark
                  last edited by Jan 9, 2020, 10:44 AM

                  Hello,

                  Does anyone have a multi-station configuration working? I also do not get any headers showing - anyone managed to solve that one?

                  Thanks in advance

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Bob
                    last edited by Jan 11, 2020, 8:14 AM

                    Headers have been broken for a while now. Happened after MM version update. Not sure if @nwootton is still working on this or not though.

                    Also not been able to get multi-station working. The fix I used was just to have 2 modules listed one after each other (ie, duplicate the code in the config file, including API etc). That seems to work fine.

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tenpinmark
                      last edited by Jan 14, 2020, 10:06 PM

                      Hi Bob,

                      Thanks for the information. I’ve been playing and have fixed up the header not being shown and in addition have added column headings such as "Platform, To, From, Planned, Actual and Status to the displayed table.

                      I have seen in the forums elsewhere you do have to have multiple modules in order to get multiple stations which I suppose is OK, but a bit awkward. I may have a look to see if this can be all rolled into one config section.

                      One other feature I would like to work on is this: My partner travels home eveyday and says what train she is on, but never knows what time it will arrive at our home station - I want to see if it is possible to have a a listing of the possible trains with the departue and arrival times. As I’m very new to all this, it’s going to hurt my head coding it I suspect.

                      G 1 Reply Last reply Feb 6, 2020, 6:35 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      • 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