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

Train status tracker

Scheduled Pinned Locked Moved Requests
22 Posts 6 Posters 13.5k Views 6 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.
  • N Offline
    nwootton Module Developer
    last edited by Apr 1, 2017, 2:38 PM

    Added platform as an option to the module.

    Defaults to showing the platform, but can be turned off via config if not needed. If no platform specified, it will just display a -

    1 Reply Last reply Reply Quote 0
    • R Offline
      Reggiejagger
      last edited by Apr 5, 2017, 7:24 PM

      this looks great, i cant wait to update

      1 Reply Last reply Reply Quote 0
      • C Offline
        callum8004
        last edited by Jul 22, 2018, 2:12 PM

        Hi

        I’m really struggling to add a secondary CRS station, is there any documentation on how to show multiple stations?

        N 1 Reply Last reply Jul 22, 2018, 4:17 PM Reply Quote 0
        • N Offline
          nwootton Module Developer @callum8004
          last edited by Jul 22, 2018, 4:17 PM

          @callum8004 You have to add a separate set of configs for each station that you want to track.

          C 1 Reply Last reply Jul 22, 2018, 4:22 PM Reply Quote 0
          • C Offline
            callum8004 @nwootton
            last edited by Jul 22, 2018, 4:22 PM

            @nwootton sso if i wanted to replicate for ‘BSC’ station too how would do this in the below code?

            {
            			module: 		'MMM-UKNationalRail',
            			position: 		'bottom_left',
            			header:			'Walsall Live Departures',		/Optional - delete this line to turn OFF the header completely
            			config: 
            				{
            					stationCode: 		'WSL',	// CRS code for station
            					app_id: 			'fe0f5d14', 		// TransportAPI App ID
            					app_key: 			'7de7aa1439665fef7ad6eb151190a6a1', 		// TransportAPI App Key
            					maxResults: 		3,  		//Optional - Maximum results to display.
            					showOrigin: 		false,   	//Optional - Show the origin of the train in the table
            					calling_at:			'BHM',
            					showPlatform:		true,
            				}
            		},
            

            complete newbie with any type of coding.

            Thanks
            Callum

            1 Reply Last reply Reply Quote 0
            • N Offline
              nwootton Module Developer
              last edited by Jul 23, 2018, 8:45 AM

              @callum8004 copy and paste the same module config with the information for the other station

               {
                  module: 		'MMM-UKNationalRail',
                  position: 		'bottom_left',
                  header:			'Walsall Live Departures',	
                  config: 
               		{
               		stationCode: 	'WSL',	
               		app_id: 			'fe0f5d14', 
               		app_key: 		'7de7aa1439665fef7ad6eb151190a6a1', 
               		maxResults: 		3, 
               		showOrigin: 		false,
               		calling_at:		'BHM',
               		showPlatform:	true,
               		}
               },
               {
                  module: 		'MMM-UKNationalRail',
                  position: 		'bottom_left',
                  header:		'Another Station Departures',		
                  config: 
               		{
               		stationCode: 	'BSC',	
               		app_id: 			'fe0f5d14'
               		app_key: 		'7de7aa1439665fef7ad6eb151190a6a1', 
               		maxResults: 		3, 
               		showOrigin: 		false,
               		calling_at:		'BHM',
               		showPlatform:	true,
               		}
               },
              
              1 Reply Last reply Reply Quote 0
              • B Offline
                bachoo786
                last edited by Sep 4, 2019, 10:52 AM

                Guys

                i have the UK transport (Rail) working however this module does not update as required. It shows say 5 trains and after the time of the 5th train has elapsed it doesn’t update to the next 5 trains.

                Can anyone help please?

                thanks.

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