Locomotives
A locomotive has to be known in several places that do not talk to each other, and two locomotives have to agree on speed before they can work together.
This is the newest topic, and the one I find most satisfying, because the result is in my hand: a throttle that lists every locomotive by name, and two locomotives matched in speed.
01The roster on the throttle
- Tool
- Claude
- When
- November 2026
- Status
- Public; in service
The job
A locomotive has to be known in the DecoderPro roster and in the command station, and there are two kinds of throttle in people’s hands. WiThrottle throttles on phones take their list from the JMRI roster. LCC throttles take theirs from the command station, a TCS CS-105, which speaks LCC. Both should list every locomotive by name with the function buttons labelled. Keeping the command station in step with the roster by hand does not last.
What AI did
DecoderPro can copy a roster entry into the command station only if the command station already has a train for that address, and there is no way to say “create it”. So the copy runs from inside JMRI instead: it reads the roster, asks the command station to create any train it is missing, and writes the name and function labels into each one. It refuses to apply anything when no CS-105 answers on the LCC bus. A small tool restarts the command station over LCC, and a helper builds a consist, with CSX 2121 leading and 2738 following in reverse, headlight linked.
What came out
Every roster locomotive on the CS-105 by name, with the right buttons, so the LCC throttles list the same locomotives as the WiThrottle ones. The script is now its own public project so other modelers can use it.
Some things only showed up by trying. The command station keeps a train through a restart only once the train has a name; four came back blank the first time. The roster IDs became road and number, such as CSX 2121, because that is what the WiThrottle phone throttles show, and the CS-105 train names were matched to them. And the script that copies the roster to the Windows computer reported success for a while and delivered nothing, because the files were packed with absolute paths. Now the copy checks every file afterwards and fails loudly if any is missing.
- Worked well: a script inside JMRI that creates the missing command-station trains and copies the roster into them.
- Lesson: a script that says it worked is not proof. Check the far end.
See it: jmri-cs105-roster-sync on GitHub
02Roster photos
- Tool
- Claude
- When
- November 2026
- Status
- Thirteen locomotives so far
The job
The roster, the cards and the website all want a picture of each locomotive, and they should look like a set.
What AI did
A small tool cleans each photo the same way: level, a loose crop with room round the locomotive and track, colour and exposure left alone, a smooth grey backdrop and a soft shadow under the track. The two halves of a consist face opposite ways.
What came out
Thirteen locomotives with a photo in the roster, installed on every computer; the newest are on the site too.
- Worked well: a consistent look once the style was fixed.
- Needed me: the style. The car-photo tool, tried first, cropped too tight, tilted a level photo and blew out the exposure, and a pure white backdrop was rejected. I approve the sheet before anything is recorded.
See it: Rolling stock photos
03Speed matching
- Tool
- Claude
- When
- November 2026
- Status
- 2738 matched to 2121 in both directions; first coupled run to come
The job
CSX 2121 and 2738 run as a pair, so 2738’s decoder had to match 2121’s speeds.
What AI did
A program inside JMRI ran each locomotive through the block sensors at one throttle step after another, with no hands on the throttle, and timed every block. From the numbers it corrected 2738’s decoder settings to match 2121.
What came out
2738 now runs within 4 per cent of 2121 from step 24 up, in both directions, and the two stop together. The pair is ready to be tried coupled.
- Worked well: hours of unattended, repeatable measuring, and one trim setting that matched both directions.
- Be honest about: the slowest steps stay apart, and the coupled stop test has not run cleanly.