Read the statement by Michael Teeuw here.
Train status tracker
-
@jamielola Nice. As our station only has an In and an out platform I never considered it!
If you want I can try to add you code to the repo and make it an option to display the platform via the config.
Something like:
{ showPlatform: true }
If you want real time delay calculations have a look at my Bus Stop module here. That does deltas between time tabled and actual times.
N
-
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 -
-
this looks great, i cant wait to update
-
Hi
I’m really struggling to add a secondary CRS station, is there any documentation on how to show multiple stations?
-
@callum8004 You have to add a separate set of configs for each station that you want to track.
-
@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 -
@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, } },
-
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.