Dave,
I finally got around to doing this and it works good!
Thank you,
toggle quoted message
Show quoted text
On Aug 3, 2019, at 3:39 PM, Dave Sand <
ds@...> wrote:
Jason,
- Copy ShutDownExample.py to your user files location. ?See Help >> Locations for the actual path.
- Edit your private copy with a text editor. ?Avoid NotePad if using Windows. ?I use WordPad.
- Add a line after the "def execute(self):" line:
? ? ? ? turnouts.getTurnout(¡¯turnout name¡¯).setCommandedState(THROWN)
- Replace turnout name with the user or system name for the turnout that controls the funicular. ?Keep the quotes around the name.
- Make sure that the added line has the same number of leading spaces as the following lines.
- Go to Preferences >> Start Up
- Select Add >> Run script¡
- Navigate to your user files location and select the shutdown script.
- Save your preferences change and restart.
The script will start when you start JMRI. ?It will then wait until JMRI is stopped, at which time it will send the turnout command.
Dave Sand
On Aug 3, 2019, at 2:11 PM, Jasen Krueger via Groups.Io <jasenk2@...> wrote:
Hi all,
I¡¯m wanting to set a turnout to throw when I shutdown JMRI. I¡¯m using a turnout control to turn on and off an automated funicular and when I shutdown I?want it to default to ¡°THROW¡± so it stops running even if the Arduinos still have power.
I see an example ?¡°ShutDownExample.py¡± but I don¡¯t understand where it should go and how to activate it since there is only a Start Up¡± in preferences.
Any help is much appreciated!
Thank you,
Jasen