# Node-red-contrib-uk-national-rail stopped working?

**URL:** https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579
**Category:** General
**Created:** [22 February 2023 11:38 UTC](https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579 "2023-02-22T11:38:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [22 February 2023 11:38 UTC](https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579/1 "2023-02-22T11:38:57Z")

</div>

Is anyone else having trouble with this node?

I'm using it to show a departures board for my local station. The table does refresh, but the trains shown do not go from the station code requested (I think they are departures from Winchester):

 ![Untitled 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/2/f2c80b837d15be8b89d8af5d02a9517f2e0d35e4.jpeg)

Edit: I pass station code "GLQ" (Glasgow Queen Street).  
The message retrieved from the API has msg.station = "GLQ" but msg.topic (which ["shows the station code of the station selected"](https://flows.nodered.org/node/node-red-contrib-uk-national-rail)) = "WIN"

---

<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: [22 February 2023 12:01 UTC](https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579/2 "2023-02-22T12:01:48Z")

</div>

I don't think the rail network map is currently being updated at the moment. This is the area I monitor.

> **[Live map of London Marylebone to Aylesbury, Banbury and Oxford Parkway](https://www.opentraintimes.com/maps/signalling/me_1)**
>
> See trains move in real-time on our live map of London Marylebone to Aylesbury, Banbury and Oxford Parkway

I've seen a train, on a webcam, arrive and depart at Princes Risborough - but NOT on the map.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [22 February 2023 12:04 UTC](https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579/3 "2023-02-22T12:04:59Z")

</div>

Solved. I found "WIN" hard coded in the National Rail node config. How did that get there?

ps Thanks Dave, different API I think.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [22 February 2023 13:43 UTC](https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579/4 "2023-02-22T13:43:11Z")

</div>

Just tried to use it. Successfully registered an API key. But trying to use it in the node gives  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/e/ce960d123db108e1931fe10f49cffbc88a4063e3.png)

Does it take time for the registration to activate? I had a confirmation email.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [22 February 2023 13:58 UTC](https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579/5 "2023-02-22T13:58:17Z")

</div>

What does your API key look like? Mine is 30+ hex characters plus hyphens.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [22 February 2023 14:13 UTC](https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579/6 "2023-02-22T14:13:58Z")

</div>

Working now. It obviously takes a bit of time to activate.

BTW, if you want parsable, reliable UK train times, try [Accessible UK Train Timetables (traintimes.org.uk)](https://traintimes.org.uk/) - that is great for forward planning.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [22 February 2023 14:30 UTC](https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579/7 "2023-02-22T14:30:32Z")

</div>

Yup, I use that for planning trips and/or finding an alternative route when the train I'm on is delayed / cancelled. A rare occurrence!

Matthew's site is great for planning a journey but disappointing for finding split tickets.

---

<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: [8 March 2023 14:31 UTC](https://discourse.nodered.org/t/node-red-contrib-uk-national-rail-stopped-working/75579/8 "2023-03-08T14:31:21Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
