# Trainspotting with Node-RED

**URL:** <https://discourse.nodered.org/t/trainspotting-with-node-red/36508>\
**Category:** Share Your Projects\
**Created:** [25 November 2020 11:01 UTC](https://discourse.nodered.org/t/trainspotting-with-node-red/36508 "2020-11-25T11:01:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [25 November 2020 11:01 UTC](https://discourse.nodered.org/t/trainspotting-with-node-red/36508/1 "2020-11-25T11:01:01Z")

</div>

As my IoT Club is currently suspended, due to the Covid pandemic, I've written this tutorial so my students (who own a Raspberry Pi) can try out a Node-RED project at home. No extra hardware is needed.

The project should be a lot of fun as it involves extracting information from Network Rail's data-stream and displaying this information using a debug node. Adventurous students could extend it to the Dashboard.

Please note:  
This tutorial has been written for my students based in the UK who have access to Network Rail's website.  
Students based outside the UK will have to check if their rail transportation system publishes similar data.

Here are some pictures to give you an idea of the project.

This is one of Network Rail's realtime maps. This one shows part of the London North Western region.

 ![Screen Shot 11-25-20 at 10.39 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/12ba7b559208f41128451bd81f08aba81e0da6d1.jpeg)  
[Real-time map for London North Western region](https://www.opentraintimes.com/maps/signalling/me_1)

After processing the data-stream messages, this is what they look like in a debug node.  
 ![Screen Shot 11-25-20 at 10.55 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/4/34278bfb4e9e6b41ad1f45ba8e2ad17f4a209d67.jpeg)

[Trainspotting project - Tutorial](http://resources-area.co.uk/node-red-flows/railway/train_spotting_v2.pdf)

I'm sure my adventurous students will make some really creative dashboards to show the results.

Note:  
You may experience a delay in getting your Network Rail registration approved. Just be patient.  
Mine took 30-minutes but one of my friends' registration took nearly 5-days to come through!!!

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [29 November 2020 13:26 UTC](https://discourse.nodered.org/t/trainspotting-with-node-red/36508/2 "2020-11-29T13:26:36Z")

</div>

A contribution for a simple dashboard for train 'Arrivals' - it has been colour-keyed to names of stations.  
 ![Screen Shot 12-01-20 at 05.42 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/d/4d308239ac8f096fad532b41676a7607f1d2c740.jpeg)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [1 December 2020 19:36 UTC](https://discourse.nodered.org/t/trainspotting-with-node-red/36508/3 "2020-12-01T19:36:50Z")

</div>

Just tried making an arrivals board for specific stations. You can click the image for an expanded view.

 ![Screen Shot 12-03-20 at 08.45 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/6/865353d0ad2fec1d2a010bc92fbb352a2dc2e57b.jpeg)  
I'll write-up a tutorial to show how I did it (later in the week).

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [3 December 2020 10:45 UTC](https://discourse.nodered.org/t/trainspotting-with-node-red/36508/4 "2020-12-03T10:45:36Z")

</div>

Just discovered there is a webcam at Princes Risborough - fits nicely in the newly released ui-iframe node.

 ![Screen Shot 12-03-20 at 10.56 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5ee0890aa1d9f7c2de5f87d7210d6582d3a2ee7b.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 January 2021 11:01 UTC](https://discourse.nodered.org/t/trainspotting-with-node-red/36508/5 "2021-01-24T11:01:02Z")

</div>

This topic was automatically closed after 60 days. New replies are no longer allowed.
