Read the statement by Michael Teeuw here.
MMM-UKNationalRail - Rail departure info for specific UK Railway stations
-
Description:
Retrieves information about rail services running through a specific UK rail station. Built on the Transport API.
See documentation in the README and on the TransportAPI developer portal.
Screenshot:

GitHub Repo: https://github.com/nwootton/MMM-UKNationalRail
-
Not given this a go yet but I’ll be sure to give it a try.
I reckon it will always be marked “Late” though… -
@McSorley I considered making it flash and make noises if the train was on time, but it’s such an edge case that I didn’t think it was worth the effort! :)
-
Now includes the platform and a slightly better layout.
-
@nwootton Thank you so much for this!!! Its my most used module by far and i’ve only had it a week! Wish I could buy you a beer bc you deserve it!
-
@Mar Thanks, I’m glad you like it.
-
New version release - better layout, more display options and ability to run multiple station configs.
Please provide feedback either here, or by opening an issue on GitHub here.
Thanks.
-
@nwootton This is brilliant, cheers for making this. I was trying to make my own module using this API by attempting to modify existing modules but I never got it running properly & then I moved on to another project. Saw someone on Reddit with a mirror build with UK train data today so I came back to see you’ve completed all the hard work :)
-
@randomnoise Thanks for that, glad you like it. There’s a bus version as well if you want it!
Can you stick a link to the Reddit post up here if you get a chance, would be nice to see one in the wild so to speak!
-
@nwootton this is the post in DIY https://www.reddit.com/r/DIY/comments/6fo4fg/i_too_made_a_magic_mirror/
I’ll check out the bus one as well once my PI finishes downloading updates (shamefully its been sitting on my desk doing nothing for over 6 months while I fiddled about elsewhere).
-
Those kind of reddit posts make me wish I took photos when I built mine. Looks great.
-
Hi,
apologies, sure i’m doing something obvious but my module isn’t showing up.I’ve done to install it, git clone… then cd to the folder and npm install
then add to the config.js file (my addition below).
I changed the ’ to " in case that was causing the issue. Still no joy, no errors on the screen it simply doesn’t show up.
Any help would be massively appreciated.
Thanks
Noel{ module: "MMM-UKNationalRail", position: "bottom_left", header: "Departures", //Optional - delete this line to turn OFF the header completely config: { stationCode: "LNB", // CRS code for station app_id: "49d8e014", // TransportAPI App ID app_key: "1a3d4XXXXXXXXXXXceac3d9f14be", // TransportAPI App Key maxResults: 5, //Optional - Maximum results to display. showOrigin: false //Optional - Show the origin of the train in the table } }, -
@noelandrews said in MMM-UKNationalRail - Rail departure info for specific UK Railway stations:
I have to say - changing the " to ’ made it work for me.
{ module: 'MMM-UKNationalRail', position: 'bottom_left', header: 'Departures', //Optional - delete this line to turn OFF the header completely config: { stationCode: 'LNB', // CRS code for station app_id: '49XXX014', // TransportAPI App ID app_key: '1a3d4XXXXXXXXXXXceac3d9f14be', // TransportAPI App Key maxResults: 5, //Optional - Maximum results to display. showOrigin: false //Optional - Show the origin of the train in the table } },
Also using the API_ID, API_Key and Station code in the actual TransportAPI also worked. Could it be the rest of JSON config that has issues? Have you tried pasting the whole file into something like jsonlint.com to validate it’s right.
I’d STRONGLY advise you remove your API keys from the JSON. Hate for other people to mis-use your account BTW
-
@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 :)
-
Thanks for the advice and the edits! Didn’t think about that :)
-
@yawns Explains why my email had the key and the post was XXXXXX.
Thought I was losing it!
-
Absolutely love this plugin, just wish it was still being improved :(
-
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?
-
@dawookie1979 u mean the header?
-
yes the header is not showing
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login