Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Jmriusers
- Messages
Search
Locked
Re: Jython help. Adding set turnout to a script
Hope this code example is helpful.? They both assume that you have called jmri.jmrit.automat.AbstractAutomaton.? Look at the "class" line and see if jmri.jmrit.automat.AbstractAutomaton is contained in the parentheses.? In addition, the line "import jrmi" should be toward the top of the actual code.
Set SW13 to 'Thrown': ??? turnouts.provideTurnout("SW13").setState(THROWN) Set a sensor to active: ??? sensors.provideSensor("sensorNameHere").setState(ACTIVE) |
Dave,
My goodness you must be "burning the midnight oil" given the timing in Canada of some of your replies to me.? I think everything is linked up properly - in Help>Locations (on both computers) only Roster and User files now link to Dropbox, but that's OK because I don't have any other custom preferences or scripts or anything and only use DecoderPro, not PanelPro.? Both computers start up properly with DecoderPro and both show my locomotive roster.? I took your advice from?your very first reply and did a copy/paste (NOT cut/paste) of all the files resident inside the original JMRI folder on the first machine and copied them to the Dropbox/JMRI folder in Windows Explorer.? As you said, some will probably sit there forever without being used, but I'm perfectly fine with that. One last check is for both computers I have to play with settings on a locomotive just so there's a change, and see if that's reflected on the other computer when I start DecoderPro.? Unfortunately I've spent the better part of a day and a half playing with this but now have to step away until probably late next week, so that exercise will be later. Dave, I marvel at your patience with a non-technical computer guy - I vaguely recall my only formal training taking Basic and Fortran 4 on the old IBM mainframe computers with punch cards back in the 1970's, and everything since then has been a learning curve, some of them?steeper than others! Thanks again Dave, I'll contact you if any further issues but hopefully there are none. Regards, Tim |
Locked
Re: Jython help. Adding set turnout to a script
Futurelearn are doing a series of courses on Python which I am taking to help me understand the scripts. These courses might help you?
The courses are free although you will have to pay to get proof that you've completed the course. |
Locked
Re: Issues with Engine Driver
Update:
Marshall added user names to his turnouts to address that issue. He provided his panel as an example of the label rotation issue and the crossover appearance issue. I have created Github issues and to investigate and address those. |
Locked
Jython help. Adding set turnout to a script
all,
? ? Need a little guidance for adding a jython command at end of the script "SetAllTurnoutsToOff.py".? Want to set one turnout to 'Thrown' (SW13). ? ? also would like to set some internal sensors to active. Roger |
Locked
Re: Question about Operations scenario with alternate tracks
The yard track needs to be an interchange. The way freight would drop off cars for the local. Only the local is allowed to pull cars from the interchange. A second interchange track is needed for the local to set out cars from the Spurs and picked up by the way freight. Only the way freight is allowed to pull cars from the second interchange. Note both interchange tracks could have the "same" name and the track lengths shared with each other.Dan |
Locked
Re: Logo on Panel
Brian,
toggle quoted message
Show quoted text
The image will placed at the top of the panel and to right of the last background image. Robin describes an alternate method where the image is treated as an icon. Dave Sand On Aug 16, 2019, at 12:40 PM, Brian & Cherry Clark <freyweslian@...> wrote: |
Locked
Re: Logo on Panel
Brian,
toggle quoted message
Show quoted text
You need to assign the logo image to the "Icon Label". To do that here are the steps: Put the logo image in the Resources/Icons folder in your User Files directory. Open JMRI (if you already have it open, you will need to close it and reopen so it reloads the Resource directory info) Open your panel in Layout Editor Select "Icon Label" Click on the "Change Icons..." button In the window that pops up, click on Files and then Icons to open that folder Select the image file Click the button on the top of the window that shows the existing image. Your logo should now appear on that button. Close the Windows. Place an Icon Label on your panel. HTH. Robin Robin Becker San Diego, CA -----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Brian & Cherry Clark Sent: Friday, August 16, 2019 10:40 AM To: JMRI Users <[email protected]> Subject: [jmriusers] Logo on Panel Hello Group I would like to place a railroad logo (Great Northern) onto my panel. It is a jpg file. The panel is in Layout Editor. I cannot easily see how this might be done, could someone kindly point me in the right direction to achieve this? JMRI 4.16, Java 1.8.221, Windows 10. Thanks for any help Brian Clark Bedford, UK. |
Locked
Logo on Panel
Hello Group
I would like to place a railroad logo (Great Northern) onto my panel. It is a jpg file. The panel is in Layout Editor. I cannot easily see how this might be done, could someone kindly point me in the right direction to achieve this? JMRI 4.16, Java 1.8.221, Windows 10. Thanks for any help Brian Clark Bedford, UK. |
Locked
Re: Question about Operations scenario with alternate tracks
That why one hears about the cars going back and forth by a customers track and not being spotted
Matt G |
Locked
Re: Question about Operations scenario with alternate tracks
I'm thinking prototypically ?cars need to be placed or constructivly placed so that the RR can charge the customer for the car hire rates. most of the time the RR would not make train crews spot multiple spots due to union rules unless the car is very hot. Train crews don't want to do switch but will however it is going to cost the rr in extra pay.
Matt G |
Locked
Re: Question about Operations scenario with alternate tracks
I'm interested in hearing what's possible. As found, it the way freight had
access to the stubs, it would see a destination for the cars, and if the stubs were full, leave them on the siding. What I think is happening is the program sees that using the siding for off spot of the stubs is ok. But the program doesn't see the siding as a destination that then leads to the stubs. The program is only thinking of putting cars on the siding as overflow from the stubs. I'm thinking the program might need to think of the siding as two different tracks (competing for the same space) where one is the overflow, the other is a yard that the turn is allowed to pull and place cars into the stubs. So the work of the turn would know both: the overflow and the yard. What I'm not sure is what setup has to be done so it knows this. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: Layout Editor panel orientation
I agree with Dave S, you can have multiple LE panels for the same area, but
pick one as the master (usually a logical view is best here) and then you can make multiple physical views. But as said all the LE panels must describe the same relationship of the parts. One idea some have tried is where the panel is just rotated. Well that works right for the geometry, but any labels on the panel need different treatment. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: Question about Operations scenario with alternate tracks
This is where the wheels fall off the wagon for me. If properly setup the industry should never over load hence the alternate track designed to give the industry more track right. So how does the program know the cars on alt track have to go to building to load or unload. A road train would never work the industry only a local or switch job would. To my way of thought it would require 4 trains to bring a car in spot it pull it and take the car out. Or am I grossly missing something.
Matt G |
Locked
Re: No feedback with Digitrax DCS240
On Fri, Aug 16, 2019 at 08:15 AM, Dave Suess wrote:
We have all new gear purchased this spring; DCS240 Command Station and three DB210 boosters. The command station is set to be a booster as well.? Wayne |
Locked
Re: Question about Operations scenario with alternate tracks
Thanks for the responses.? Dan, I agree that if I grant the way freight access to the spurs then it will have access to the siding, but I don't want the way freight to stop and switch the spurs, just spot the cars on the siding and get out of town.? My reading of the Alternate Track documentation led me to believe that this should be possible the way I set this up, but perhaps I am misreading it (the quoted sentences at the end of my original post).? Is there another simple way to achieve the desired outcome?? (Note that I'm fine building the Turn after the way freight spots cars on the siding so that Operations knows about their new location.)
Matt, I don't want every train to work B, just the Turn and the Way Freight.? Other through trains are given a route A-C (or some such) that skips B. -Gary |
Tim,
On 16 Aug 2019, at 11:35 PM, Tim Lux <timlux33@...> wrote:For Dropbox sharing of user files, it's only necessary to change User Files Location ( and Roster Location if it doesn't follow). I saw file locations listed when I clicked on Roster and Config Profiles, and Jython was listed as a separate location on the File Locations pane. From the last paragraph of your further Dropbox explanation (post #162850) I suspect this is the case for Roster, and no I have never manually changed Roster location so a reset is not required.Yes, if Roster Location was the same as User Files Location, it will follow automatically. I just wasn't sure if Jython, Config Profiles, and all the other files the JMRI app needs would require manual redirecting too.The others don't need redirecting. They stay as they were and don't need sharing. Before changing the User Files Location on your old Win 7 computer you need to record what it was (based on your earlier information it was C:/Users/Tim/JMRI) and use Open User Files Location to actually open that location in Windows Explorer because it contains the files you need to copy. After saving the Preferences change, you need to restart JMRI and check that Roster Location has followed. You also need to copy your personal JMRI files from the old User Files Location (C:/Users/Tim/JMRI) to your new User Files Location (C:/Users/Tim/Dropbox/JMRI). Do this without JMRI running. Use the two links below to decide which files to copy and as I said before, err on the side of copying too much if in doubt (provided you Copy and don't Move): <> <> If you have Startup Items opening a panel file you will need to redirect those. P.S. Sharing of Config Profiles is a whole different ballgame and in my view is best left to JMRI experts. (I do share my User Files via a ".../Dropbox/JMRI" folder and simultaneously also my Config Profiles via a ".../Dropbox/JMRI Config Profiles" folder, but I'm a developer who has dozens of profiles for different testing/hardware purposes and many computers Mac/Linux/Windows for testing purposes.) Dave in Australia |
Locked
Re: Layout Editor panel orientation
Andy,
toggle quoted message
Show quoted text
It is possible to create multiple views in Layout Editor. The requirement is that the block connectivity for each panel is consistent. A layout I helped design has two main panels connected by edge connectors. Part of the layout on one panel is above eye level, so a sub panel shows the high trackage. A linear panel has the trackage from both main panels in a single panel for use by the Dispatcher tool. Dave Sand On Aug 16, 2019, at 1:14 AM, Andy Brown <andy.badshot@...> wrote: |
Locked
Re: No feedback with Digitrax DCS240
Dave Suess
Wayne,
We had a similar problem on our large layout at K-10's Model Trains. We found that the PM42's would not communicate with JMRI until we removed some old DCS100's that were being used as boosters. Op switch 2 was set to configure as boosters, but for some reason the communication was not working. We replaced these with DB200's and the problem cleared up. I can't explain it, but if you have boosters check to see if any are converted from old DCS 100's or like.
Dave
|
Locked
Re: No feedback with Digitrax DCS240
Long story: a LocoNet cable can be thought of as three pairs:
*) Two ground wires - lots of hardware connect those together, they¡¯re basically the same *) Two Rail-sync wires - these carry _opposite_ signals representing the DCC track signal. In some cases, things will work if these carry DC power (+ on one, - on the other). The DCC signal is used by block detectors to understand what they see; DC power (or the DCC signal) is used by e.g. throttles to provide their power *) And two LocoNet signals sometimes called L+ and L-. These are the _same_ signal, not opposites. Some command stations drive just one; some drive both. (Most) LocoNet devices look at just one. To make sure that both are available, some devices (typically throttles) short them together. Yes, there are a lot of cases there. Digitrax recommends a way of wiring the cables that keeps all this straight. ¡°Phone style¡± cables switch left-and-right in the cable from end to end, so swap each of those pairs (Rail-synch + to -, L+ to L-) That can cause problems if *) You have BDL168¡¯s configured in various ways. There¡¯s an op switch there that tells it to swap them back. *) Or if nothing on the layout is shorting L+ and L- together, as then some boards will be looking at the LocoNet line that¡¯s the wrong one (the one not driven by the command station) If you¡¯re seeing all 4 LEDs lit, then that last one isn¡¯t the case; that indicates that both LocoNet wires have a signal. So that¡¯s not it. But the first can still be true. You might not be seeing reports from BDL168s due to this. But your PM4s should still be reporting. Bob -- Bob Jacobsen rgj1927@... |
to navigate to use esc to dismiss