¿ªÔÆÌåÓý

Date

Locked Auto Trains collision avoidance question

 

All,

? ? ?While dispatcher is running two auto trains, does the program watch the sections or the blocks to avoid running up on another train?

Roger


Locked Re: Functions

mel perry
 

??????????????
mel perry


On Sat, Aug 17, 2019, 6:14 PM Jim Kirwan via Groups.Io <cact25=[email protected]> wrote:

Jan,

When I am on the functions pane, there are function "pads" along to top.

Jim


Locked Re: Where to put shutdown.py script and how to use it? #scripting

 

¿ªÔÆÌåÓý

Dave,

I finally got around to doing this and it works good!

Thank you,

Jasen

Jasen


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


Locked Re: Layout Editor Panel with Web Server issues WARN messages

 

Here is an example from my layout that causes this message.
The panel definition is retrieved using ?format=xml, my example here:?
After loading, clicking the "East Kaolin 2" turnout on my web panel results in:
2019-08-17 18:33:02,021 json.JsonNamedBeanSocketService? ? ? ?WARN? - post request for turnout made with user name "East Kaolin 2"; should use system name [WebServer-124]
The initial xml returned from JMRI to the client-side panel.js for that layoutturnout is:
<layoutturnout ident="TO20" type="2" hidden="no" disabled="no" disableWhenOccupied="yes" continuing="2" xcen="301.9301452636719" ycen="459.0992736816406" xa="321.23162841796875" ya="463.2353210449219" xb="282.628662109375" yb="454.9632263183594" xc="281.809326171875" yc="458.7964782714844" xd="321.23162841796875" yd="463.2353210449219" ver="1" class="jmri.jmrit.display.layoutEditor.configurexml.LayoutTurnoutXml" turnoutname="East Kaolin 2" blockname="ILB157" connectaname="T128" connectbname="T129" connectcname="T132" />
Note the turnoutname value is "East Kaolin 2", not the systemname "LT93".

This xml return value exactly matches that stored in the layout xml file (note that that's not the case for all types):
<layoutturnout ident="TO20" type="2" hidden="no" disabled="no" disableWhenOccupied="yes" continuing="2" xcen="301.9301452636719" ycen="459.0992736816406" xa="321.23162841796875" ya="463.2353210449219" xb="282.628662109375" yb="454.9632263183594" xc="281.809326171875" yc="458.7964782714844" xd="321.23162841796875" yd="463.2353210449219" ver="1" class="jmri.jmrit.display.layoutEditor.configurexml.LayoutTurnoutXml" turnoutname="East Kaolin 2" blockname="ILB157" connectaname="T128" connectbname="T129" connectcname="T132" />
I see a few of approaches to this particular issue with layoutturnout:
1) change the web server code to always return system name in "turnoutname", and leave the xml file storage routine as is
2) change the xml file storage logic always store system name in "turnoutname", then the web xml will continue to match
3) change the web server code to add an additional systemname attribute
4) change the xml file storage logic to store an additional systemname attribute
5) modify only the client-side code to "upgrade" any references to username to use systemname once the json value is returned. (most of the json messages include both systemname and username). Note that the warning would still be shown, but only for the initial definition, not for every subsequent change requested by the web panel.

I seem to recall an effort a while back to store references as usernames instead of systemnames, but I'm not sure if that's still valid.


Locked Functions

 


Jan,

When I am on the functions pane, there are function "pads" along to top.

Jim


Locked Re: Question about Operations scenario with alternate tracks

 

Gary,
Concerning your last question, folks will argue both sides of that coin.? Both have pros and cons.? If you are worried for some reason that your car database will not match the layout, print it sorted by location before you begin building trains for your session or save a backup copy.

I used to build, print and terminate 24 hours worth of trains for each session of the previous version of the Castle Rock and Pacific with many dependencies included.? Knowing how the schedule worked, I would build, print and terminate trains in a logical order allowing plenty of time between dependent trains.? If you have close connections, you may want to go the real time route just in case.? Sometimes, in spite of your efforts, a connection will be missed.? I just tell my crews to annotate their switch list and move on. Stuff happens, it is part of the fun of operations.

If you are building switch lists for yards, don't forget to update those lists appropriately as you go along.

Dave...


Locked Re: No feedback with Digitrax DCS240

 

Wayne,

All Digitrax DCS's (and the DB150) can be a CS and booster or as just a booster only..

--
Peter Ulvestad

JMRI Users Group Moderator - ( )
Tam Valley Group Moderator - ( )
Sprog-DCC Group Moderator - ( )
Edmonton Model Railroad Association -


Locked Re: No feedback with Digitrax DCS240

 

On Sat, Aug 17, 2019 at 02:29 PM, Peter Ulvestad wrote:
On Sat, Aug 17, 2019 at 03:21 PM, David Klemm wrote:

Wayne,

It is an either or. The unit is a command station or a booster. I know of no
Digitrax unit that at the same time is both a command and booster. So even
your clarification below is still worded wrong.

You said ¡°The DCS240 is used in our application as a command station and
booster.¡°. Nope it can¡¯t be this at one time.

David Klemm
Xs Max
David,
From the Digitrax website:
Combination Advanced LocoNet? Command Station and 8 amp CTC booster

--
Peter Ulvestad

Thanks Peter, I was scratching my head trying to figure out how it was working as both a command station and booster if that was the case.?


Wayne


Locked Re: Question about Operations scenario with alternate tracks

 

sorry after 8 or 10 trains work the area
Matt G


Locked Re: Question about Operations scenario with alternate tracks

 

I would be curious to know if everything continues to run after 8 or 10 work the area
Matt G


Locked Re: No feedback with Digitrax DCS240

 

On Sat, Aug 17, 2019 at 03:21 PM, David Klemm wrote:


Wayne,

It is an either or. The unit is a command station or a booster. I know of no
Digitrax unit that at the same time is both a command and booster. So even
your clarification below is still worded wrong.

You said ¡°The DCS240 is used in our application as a command station and
booster.¡°. Nope it can¡¯t be this at one time.

David Klemm
Sent from my iPhone Xs Max
David,
From the Digitrax website:
Combination Advanced LocoNet? Command Station and 8 amp CTC booster

--
Peter Ulvestad

JMRI Users Group Moderator - ( )
Tam Valley Group Moderator - ( )
Sprog-DCC Group Moderator - ( )
Edmonton Model Railroad Association -


Locked Re: No feedback with Digitrax DCS240

Jon Miller
 

¿ªÔÆÌåÓý

On 8/17/2019 2:21 PM, David Klemm wrote:
I know of no Digitrax unit that at the same time is both a command and booster.

??? Humm, how about a DCS100, a DB150, and the newer ones.?? I think we are having a problem with words here!? A booster is simply a power output device.? For example the DCS100 is a CS (a computer if you will) coupled with a power output (4.5-5 amps).

-- 
Jon Miller
For me time stopped in 1941
Digitrax  Chief/Zephyr systems, 
SPROG, JMRI User
NMRA Life member #2623
Member SFRH&MS


Locked Re: Jython help. Adding set turnout to a script

 

Dave,

? ? I'm assuming what you are saying is that I should be able to go into the Raspberry after the crash via the ethernet route and change the file names remotely.? Had not thought of that.

Roger


Locked Re: No feedback with Digitrax DCS240

 

¿ªÔÆÌåÓý

Wayne,

It is an either or. The unit is a command station or a booster. ?I know of no Digitrax unit that at the same time is both a command and booster. So even your clarification below is still worded wrong.?

You said ¡°The DCS240 is used in our application as a command station and booster.¡°. Nope it can¡¯t be this at one time.?

David Klemm
Xs Max


From: [email protected] <[email protected]> on behalf of Wayne Swearingen <wayne.swearingen@...>
Sent: Saturday, August 17, 2019 11:42
To: [email protected]
Subject: Re: [jmriusers] No feedback with Digitrax DCS240
?
On Sat, Aug 17, 2019 at 08:29 AM, Dave Suess wrote:
Wayne, what is meant by DCS configured as a booster as well. The DCS240 powers a block on our layout as well, but op switch 2 should not be configured as a booster. Not sure if that's what you meant.
Dave
Configured was probably the wrong term but for clarity: The DCS240 is used in our application as a command station and booster. Op Switch 2 is set to Command Station.?
Wayne


Locked Re: Question about Operations scenario with alternate tracks

 

Thank you gentlemen!? This makes a lot more sense now to think of the siding as an interchange track.?

I have one more question below (in case you want to skip the details of how I set it up), but here is what I ended up doing, in case it is helpful for anyone else

* The towns are in the order A, B, C, north to south.? B has 7 spurs served by the Turn and a siding served by the Turn and some Way Freights (WF).
* The Turn runs A-B-A and handles traffic between A and B as well as switching at B.
* There is a NB WF C-B-A that is allowed to spot cars at B's siding destined for B.
* There is a SB WF A-B-C that is allowed to pull cars from B's siding destined for C (and beyond).

* I designate all the spurs to be served by only the Turn, A-B-A, and designate the siding to be an alternate track for off spots.? This is called Siding-(ALT).
* I designate the same siding to be Siding-(IN) for inbound cars and allow C-B-A to set out and the Turn to pull.? The only allowed destination is B, and load/empties are suitably restricted.
* I designate the same siding to be Siding-(OUT) for outbound cars and allow the Turn to spot cars and A-B-C to pull from it.? The only destination is C, and loads/empties are suitably restricted.
* I pool Siding-(ALT), Siding-(IN) and Siding-(OUT).

This seems to work quite nicely.? I just need to run it a few times to tune the loading, but that will be fun!? I know this may not be truly prototypical, but it adds a lot of play value for the road crews because it creates reasonably meaningful online work for them.? And that is the main goal.

Slightly off-topic question: what is the best practice for building a dependent set of trains like this for a session?? I want to run these in the order C-B-A, A-B-A, and A-B-C.? But to build A-B-A, I think I need to build and move C-B-A first.? If I do that before the start of a session, the cars database does not reflect the physical state of the layout at the session start.? Is this best practice, or is it advisable to build later trains in real time during a session?

Thanks again,
Gary


Locked Re: Jython help. Adding set turnout to a script

 

Roger,

On 18 Aug 2019, at 2:11 AM, Roger Merritt <merritt_roger@...> wrote:

I always have the console log running. Evidently the Raspberry JMRI program didnt like my InitialLayout.py script and bombed Java. That stopped JMRI from running anymore. I could not figure out how to fix the problem as there was no stopping JMRI on bootup ..... that I know of. Had to reformat the SD card and rewrite image to it.
That's an unnecessarily drastic approach.

Simply (temporarily) renaming all of your scripts (and panel files if necessary) that you have set to open at startup would enable JMRI to start (it would simply show an error message for the missing/renamed files in the log) and you could add back (rename) files one at a time until you located the offending file.

Dave in Australia


Locked Re: Export Roster Pane to Excel?

 

That will probably work for Jim. I was looking for one that emulates the .csv file produced through the Export to file function in Operations>Locomotives>Tools with the Location listed. I know Dan Boudreau did some work on them earlier. I get a ¡®Syntax error: no viable alternative at input ¡®jmri¡¯ at Line 1¡¯ error .
--
Mike Heintzman
Modeling the P&PU since 1953


Locked Re: No feedback with Digitrax DCS240

 

On Sat, Aug 17, 2019 at 08:29 AM, Dave Suess wrote:
Wayne, what is meant by DCS configured as a booster as well. The DCS240 powers a block on our layout as well, but op switch 2 should not be configured as a booster. Not sure if that's what you meant.
Dave
Configured was probably the wrong term but for clarity: The DCS240 is used in our application as a command station and booster. Op Switch 2 is set to Command Station.?
Wayne


Locked Re: Export Roster Pane to Excel?

 

Jim,

Try running RosterCsvExport.py and import the resulting file into Excel.

In DecodePro, select Actions >> Run Script¡­. In PanelPro, select Panels >> Run Script¡­


Dave Sand

On Aug 16, 2019, at 11:22 PM, Jim Kirwan via Groups.Io <cact25@...> wrote:

Is it possible to export the contents of the roster pane to an Excel spreadsheet? Thanks.

Jim K


Locked Re: Export Roster Pane to Excel?

 

Yes, but I think you have to use PanelPro. If you use Panel Pro you can also export Cars, Locations, and Trains to .csv files. You can then open them in Excel. You can then either save them as .xlsx files or keep them as .csv. I have all of them then linked into one master Excel file. The one thing I haven¡¯t been able to do is find a script that works to automate the process. The ones I¡¯ve found don¡¯t work.
--
Mike Heintzman
Modeling the P&PU since 1953