Saturday, 28 November 2026

An overview of how I set up and run a Session on The GSD

 

I just want to capture the System as I have it at the moment as mt brain is well 'old'. I would welcome questions and suggestions. I want to describe how the system works. This is not and Operators Guide. I will try and take you through the running of train  161 which runs empty Grain and livestock cars from Dry Creek Yard in Adelaide to Wirrega and Blue Lake. 

Airtable Database

Airtable is a powerful commercial Relational Database which is the heart of the whole process. The system is designed to fit within the parameters of the free version, which limits the number of records to 1,000 and the number of API Calls to 1,000 per month. The GSD has 675 records and makes 120 API Calls per month. (API Calls are the number of times an external source asks for, or writes  data to the Database). Like JMRI Ops Pro the Database has tables for Locations, Sidings, Rolling Stock, Motive Power, Trains, Sessions, Waybills and Session Car Movements. The last two are populated between sessions by the System.

The Airtable Waybill Table

The System.

The Engine of the system is a Python App written for me by AI. The script sets up a Server on the PC, draws data from Airtable and sends data to the various parts of the organisation in accordance with Dispatcher instructions. It achieves this via a number of .html generators that perform certain functions like, clearing a train to move, telling a Driver/Guard their Timetable, Manifest, advising the Blue Lake Yardmaster of arriving and departing trains, what cars are on them and where those cars go. It also allows the two Yardmasters to throw the points in their yards via an Ipad dedicated to their yard.


So How does it all come together

Before the Session

To prepare for a session I run the Waybill Generator which writes each car's next waybill, it takes about 30 seconds for 95 cars. After quick review to make sure it hasn't done anything silly like send a tank car to the livestock yards (it has rules around certain cars, but I haven't nailed down every situation yet) I get the generator to then write that to the Airtable (9-10 API Calls). I then get the Session Planner Generator which assigns every car to a train operating in the given session. The Generator also writes the Session Car Movements to the Airtable (more 9-10 API Calls). I open the System Status screen and download the Data from Airtable to the Server. That's the last we see of Airtable until the Post Session review, tomorrow morning (or the day before the next session)

So now we are good to go play trains. Total time to date, about 30 minutes, if there are some issues. 

Its 10 minutes before the Clock is on. Driver/Guards, Yardmasters settle-in and the Dispatcher takes his Throne.

The Dispatcher starts the Command Centre, throws the lever to the Server, picks the Session. Sets the Dispatch lever to Timetable and presses the go button. Data is now available across the system. 

The Control Centre Screen

Of course if we are just having a fun running night with the Clock off the Dispatch Lever is throw to Sequence and the Go button is pushed. The Control Centre resembles a CTC Panel to give it a Railway feel.

                                                         

The Dispatch Selection Lever. 

The GO Button is the white button below the Lever

The Go button then wakes up the layout: the command station, LocoNet and the point controllers.

The Dispatcher Screen for a Timetable Session

The Dispatcher controls the Session. When a DG checks his Cars off and taps Ready To Depart from his home yard. The trains Circle will turn Yellow and start flashing on the screen. The Dispatcher checks his board and if safe he clears the train to a position on the track. That could be its next destination for shunting or a signal on the way.When the Dispatcher clicks the destination location, the DG Phone gets the Message he is clear to leave and tells him the destination. The DG Acknowledges the order and the line is reserved for that train.

Yardmasters turn on the iPads in the Yards.

The Blue Lake Yardmaster Points Screen

Drivers/ Guards (DG) open their phones camera and scan the first QR Code, that logs them onto the  Layout Room WIFI, then Scan the Drivers QR Code which opens the GSD Driver App on their Phone.

Drivers/Guards

Each driver picks their name, then their train. On the phone is their manifest. 

The Driver Screens on start up

The DG ticks off the cars on the train,then presses Ready to Depart. The Dispatchers Panel will get an indication the train is ready to go and when appropriate clear the train to move. 

Note the lights in the top right hand corner. The Red light has moved to the Yellow once Ready to Depart is tapped, this tells the DG the request has been sent to the Dispatcher. When the Dispatcher clears the train the light moves to a flashing Green, awaiting the DG to Ack.

This prompts the DG App to Acknowledge the Clearance.The App has the assigned Locomotive ready to go the DG taps the Blue button with the Locomotive number on it and it goes to the Throttle screen. 


Notice the Dispatcher only cleared the Train to Bridgewater even though 161's next shunt is Wirrega. Upon arrival at Bridgewater the DG taps Arrived at Bridgewater.



Notice the light went to Yellow, indicating awaiting clearance from the Dispatcher.

That screen has all the usual buttons required of a throttle and also has the buttons to operate points in the Town it is next schedule to work in, noting the Dispatcher must give clearance to operate mainline points. 

The Dispatcher Clears the train, the green light Flashes, the DG taps Ack and the train is cleared to its first Shunt In Wirrega. Notice Wirrega's points come up on the screen when its cleared.

The train arrives in Wirrega. The DG Taps the arrival button and returns to the Manifest Screen. One thing to note, the train was delayed at Bridgewater so the Timetable for this train has been adjusted accordingly ( Look at "Now at Wirrega). The train Shunts Wirrega.



The train is on its way to Blue Lake, the DG wants to check the Manifest while the train is moving, He taps back to the Manifest, note the throttle speed and a Stop button at the top of the page and the adjusted time of arrival. The DG throttles back on arrival at Blue Lake. He taps Arrived In Yard. The Car cars move to Delivered and train job is finished. The Blue Lake Yardmaster then takes control.

 At each Shunt Stop DG mark cars Spotted or On the Train before hitting the Finished Shunting button to advise the Dispatcher he is ready to go to the next task. At the end of the trains run. The DG presses Finished Train, returns to the home screen to pick up his next train.

If the DG is unfamiliar with the job the train has the Train order is located above the Train number on the Home Screen. That will describe the jobs to be completed and any special instructions about blocking.


You can see the DG in the second shot has sent his Ready to Depart Signal and is awaiting Clearance as the light has gone from Red to Yellow

The Dispatcher Screen

Depending on the throw of the Dispatch switch one of two screens will appear on the PC screen, a Timescale showing all train movements for the session, similar to the real SAR train Controllers sheets, or a Sequence Sheet of train numbers to be assigned to DG as they complete a job.

The Dispatchers Overwatch Screen

On a Timetable Session, trains don't always run to time. When VR16 gets held up at Dartmoor, the dispatcher can drag its line on the graph, just like pencil on a paper chart. Any clashes with other trains can be managed and the adjusted times will be sent to the DG Timetables automatically. 


The Dispatchers screen for a Sequence session. The Dispatcher assigns the train to a DG who receives notification on his opening screen.


Post Session Review

Once the session is run, its time to prepare for the next session. Here we pull up the Post Session Generator. It lists all the moves the cars were Scheduled to do. It allows me to check those that didn't move and change the current location of cars that didn't finish up in the correct position. Once I'm happy the list reflects the Layout I press Write to Airtable (another 9-10 API Calls) and Bob's your Uncle we are ready to write Waybills again.

 Because I am a suspicious bastard every move on the system is logged. If a Driver presses the wrong button its logged, if the Dispatcher clears a train incorrectly it is logged, I review the Log as part of the Post Session review, it helps explain why certain things happen on the night and which DG's need more training and brings cake to the next Session.

Summary by Train Log

Full Timeline Log

No comments:

Post a Comment