开云体育


Re: WiThrottle function master list #functionlabels

 

Of course, but its under the labels and media when you? right click on the loco. I have not made the main throttle page over to all, but did them one by one.


Re: Script output delayed #scripting

 

The AbstractAutomaton class comes with the import jmri statement.
?
The script named "AutomatonExample.py" in the jython subfolder of the distribution folder provides a simple example of one way to use that class.
?
Cliff in Baja SoCal
?


Re: Script output delayed #scripting

 

Thank you very much!?

i see the effect of?
?
time.sleep(10)
?is not what i wanted. ?It seems to sleep all of JMRI. Then the system catched up.?

what import do i need to use
?
self.waitMsec(3000)
?
?


WiThrottle function master list #functionlabels

 

A friend came over yesterday for an zoos session and showed me how to set the function list on JMRI for a locomotive so when using WiThrottle it shows “horn, bell, ditch lights, step lights” etc instead of “5, 6, 7.”
?
My question is, he showed me how to set it for an individual locomotive. I have a roaster of about 150… and they are all programmed exactly the same functions. Is there a way to set a master function list for JMRI so that a WiThrottle will show the same function list for each locomotive?
?
Thanks
?
Lou
--
Modeling Conrail’s Boston Line in HO


Another Could not create JAVA virtual machine problem solved by GROK #java

 

The last thread on this topic seems to have been locked.and I didn't see a resolution.? I installed JMRI and Azul Java 17 in January on a Windows 11 laptop that was a couple months old.? It worked fine then.? Today I? got the dreaded cannot create the Java virtual machine.

I could not find anything helpful here except type JAVA -version into the command prompt. ? That got me not the version but this:
extensions mechanism no longer supported; Use -classpath instead.

I tried repairing JAVA, I deleted it and reinstalled it with reboots between each step.?? No success
?
I consulted GROK.? Eventually it had me search for: JAVA_HOME>JRE/LIB/EXT

I had a heck of a time finding it, because AZUL doesn't install a file called JAVA. Nor did I ever find a JAVA_HOME.? I did find JAVA files in my ThinkorSwim directory (a stock market program)? Eventually I discovered the lib file; it is in the Program Files in the ZULU directory.? I tried renaming the LIB file to old LIB, but that didn't work.?? GROK had me change it back to LIB and look for files with the .jar extension in the EXT folder.?? I moved that single file to a new file on the desktop as well as one that was in the LIB directory.? That still didn't solve my problem.? GROK told me to change? EXT to old EXT.?? That worked.? Decoder Pro works and so does Thinkorswim.
ThinkorSwim, unbeknownst to me also uses Java.? I reinstalled it after I installed DecoderPro and Zulu's maybe that cause my problem?

For you JAVA geeks here is my whole conversation with GROK.? It is long because I am the opposite of a JAVA geek and it started with what is -classpath. ?
Hopefully it helps someone.
--
Henry S,


Re: How to display different levels objects either in Panel or Layout Editor

 

Rodney,

There is no editor option for displaying objects by level.

For icons, it can be done indirectly using LogixNG.

Dave Sand


----- Original message -----
From: "Rodney via groups.io" <Rodneymcneill=[email protected]>
Subject: [jmriusers] How to display different levels objects either in Panel or Layout Editor
Date: Sunday, March 23, 2025 5:05 PM

I do not see an "Edit" menu in either editor that will allow me to display only objects that are all set at a level different than other objects
--
Rodney McNeill


How to display different levels objects either in Panel or Layout Editor

 

I do not see an "Edit" menu in either editor that will allow me to display only objects that are all set at a level different than other objects
--
Rodney McNeill


Re: Problems With dispatcher #dispatcher

 

Thanks For your Time Dave,i appreciate it.
Regards
Brett


WiThrottle track power switch #withrottleserver

 

I’ve noticed something odd

If my Lenz/JMRI system starts with the track power OFF, WiThrottle doesn’t show the track power switch at all, so I can’t turn the power back on again

I then go into JMRI and turn the power on from there, and now I DO have the track power switch

However. If JMRI starts with the track power already ON, everything works as expected

Does anyone else have a Lenz LZV200and can tell me if theirs behaves the same please??

Cheers

Phil G by


Re: Is the Digitrax SDXH187Ao Missing from Decoder list? #definitions #digitrax

 

The SDXH187A0 has not been added as of yet. You could use the SDXH167 until it is added. The 167 would have 2 fewer output functions (the 6 versus the 8 in the 187).

You are 2 years behind in JMRI versions so I would recommend updating.

--
Peter Ulvestad
Linux Mint 22.1, JMRI 5.11.3plus, Java 21.0.5
JMRI Users Group Moderator ( /g/jmriusers )
JMRI Developers Group Moderator ( )
Tam Valley Group Moderator ( )
Sprog-DCC Group Moderator ( )
Edmonton Model Railroad Association ( )


Re: Is the Digitrax SDXH187Ao Missing from Decoder list? #definitions #digitrax

 

开云体育

You’ll need to update. ?If you just download, run, it’s done. Works for me every time and just runs. ?Delaying updates is more likely to cause you bigger issues each time.

Mick

Mick
________________________________
Mick Moignard
Specialising in DCC Sound
m: +44 7774 652504

The week may start M,T but it always ends WTF.


Re: ESU and JMRI #esu

 

开云体育


In the absence of information from the sound project (ie. which sound slot contains which sound), then the process for changing sound levels in either LokProgrammer software, or JMRI/DecoderPro is essentially the same.? ?

Work from the function mapping to sound slot number? (take notes of what is what),? and then can adjust the levels for that slot.? ? To achieve that requires reading the function map and sound level CV's,? which in turn requires a device which can do that.? ?
A DCC system with a programming track, connected to JMRI can do it (though generally slower than the ESU LokProgrammer hardware).? ?A DCC system which can do "read" on the mainline via RailCom (eg.? Roco Z21, and others), connected to JMRI,? is much faster.? ? The slow "read" only needs doing once.??

There are some UK sound projects which are available - those which used to come from SW-Digital are on the ESU downloads website.? But other sound producers usually keep their projects private.??

- Nigel



------ Original Message ------
From "Chris Walsh via groups.io" <cwalsh561@...>
Date 23/03/2025 14:00:05
Subject Re: [jmriusers] ESU and JMRI #esu

Thanks to all who have replied.? Sad to say, here in the UK the sound files are not freely available as they are in the USA and I don't believe it is possible to retrieve the files from the decoder. So it looks as if I'm a bit stuck but I'll experiment with the LokProgrammer software and see if that can help.
Thanks again for your help.
Chris


Re: Problems With dispatcher #dispatcher

 

Brett,

I don't have any problem with reversing and continuous when simulating the train movement by setting occupancy and stop sensors.

This implies an issue with the Dispatcher Options and/or the New Train options.


Dave Sand


----- Original message -----
From: "redsash63 via groups.io" <redsash63=[email protected]>
Subject: Re: [jmriusers] Problems With dispatcher #dispatcher
Date: Saturday, March 22, 2025 10:04 PM

Changes made.
Runs Nicely if i just choose run in reverse.
If i choose continuous as well ,the train stops at the starting block but doesnt proceed
Here is a Pic of dispacther at that time,any ideas?



Re: Script help please #scripting

 

Richard,

Billybob has provided a script that sets a sensor to indicate the connection type.

If you are using JMRI 5.2 or later, an alternate approach is to use LogixNG to set a sensor.


Dave Sand


----- Original message -----
From: "richard.taplin via groups.io" <richard.taplin=[email protected]>
Subject: [jmriusers] Script help please
Date: Sunday, March 23, 2025 2:34 AM

I want to modify the "PreferencesExamples" script to show me the - Preferences - System manufacture and System connection.
I want to check when I'm in " Digitrax - LocoNet Simulator " mode, for use in another script.
?
I can't find the info on how to reference these points.
Any help would be appreciated thanks.
?


Re: Red Stop on WiThrottle Panel #withrottleserver

 

There nothing to the left of the EStop and to the right it says Roster with the pull down.
?
Larry


Re: ESU and JMRI #esu

 

Thanks to all who have replied.? Sad to say, here in the UK the sound files are not freely available as they are in the USA and I don't believe it is possible to retrieve the files from the decoder. So it looks as if I'm a bit stuck but I'll experiment with the LokProgrammer software and see if that can help.
Thanks again for your help.
Chris


Re: Script help please #scripting

 

On 3/23/2025 3:34 AM, richard.taplin via groups.io wrote:
I want to modify the "PreferencesExamples" script to show me the - Preferences - System manufacture and System connection.
I want to check when I'm in " Digitrax - LocoNet Simulator " mode, for use in another script.
I can't find the info on how to reference these points.

I do something in a jython script to figure out whether I run a "CMRI Simulator" connection or a connection with real physical connection. It loops thru the configured connections in the current JMRI run's "Edit"->"Preferences", and checks each to find if its "System Connection" is set to "C/MRI Sinulator". If any connection is "C/MRI Sinulator", it sets that variable to "True". If one uses a "C/MRI Simulator", it sets the variable to "True". If NONE of the connections uses "C/MRI Simulator", it sets the variable to "False".


Here is the script. Hopefully the "spacing" has not been changed to "tabs" the way I have included it below...

### begin of Jython script


#
# Called by an initialization Logix or a Start Up action
#
# Checks the list of connections for a specified simulator.
# If found, sets the simulation sensor to Active, otherwise Inactive.
#
# Script originally by Dave Sand, modified by Bob Milhaupt

import jmri
import java

logLevel = 0

# an array, sensorNames, which is used to define an internal
# Sensor. The array defines the Sensor as:
#
# a string with the System Name of the variable, and
#
# a string with the User Name of the variable
# .

sensorNames = ['IS9997', 'Running Under CMRI Simulator']

nameOfSimulatorConnection = 'C/MRI Simulator'
simulatorMode = False

simSensor = sensors.getSensor(sensorNames[0])
if simSensor is None:
simSensor = sensors.provideSensor(sensorNames[0])
simSensor.setUserName(sensorNames[1])

connectionList = jmri.InstanceManager.getDefault(jmri.jmrix.ConnectionConfigManager).getConnections()

if len(connectionList) == 0:
print 'No connections found'
else:
for connection in connectionList:
if logLevel > 1: print connection
chkName = connection.name()
if logLevel > 0: print 'connection name = {}'.format(chkName)
if not chkName:
print 'Unable to retrieve connection name'
else:
print "Target {} compared to connection named " \
+"{}".format(nameOfSimulatorConnection, chkName)
if nameOfSimulatorConnection in chkName:
if logLevel > 1: print 'found matching connection name!'
simulatorMode = True

if logLevel > 0: print simulatorMode
if simulatorMode:
print '....Setup simulation mode: {}'.format(chkName)
simSensor.setKnownState(ACTIVE)
else:
print '....Setup connected mode'
simSensor.setKnownState(INACTIVE)

### end of Jython script

One could change the Jython script to be sensitive to some other "Simulator" connection by changing the value in the "nameOfSimulatorConnection" variable to an appropriate simulator name.

Two changes are needed in the script. First, change the "user name" in the internal Sensor declaration:


### begin change of Jython script
sensorNames = ['IS9997', 'Running Under LocoNet Simulator']
### end of change of Jython script


And use the following line for checking for a LocoNet Simulator connection:

### begin change of Jython script
nameOfSimulatorConnection = 'LocoNet Simulator'
### end of change of Jython script



Hope that helps!


Re: Ghost Block (v5.11.4) and Turnouts Question

 

Tony's got a point.
You essentially have a gauntlet track where only one train at a time can occupy the space between turnout pairs.
Sure you don't have the traditional gauntlet structure but you have the operation.
So, I would signal each approach leg and either:
  1. set the turnouts and track as one ghost block or
  2. detect the turnouts and track as one detection block
Either way will operate correctly.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


Script help please #scripting

 

I want to modify the "PreferencesExamples" script to show me the - Preferences - System manufacture and System connection.
I want to check when I'm in " Digitrax - LocoNet Simulator " mode, for use in another script.
?
I can't find the info on how to reference these points.
Any help would be appreciated thanks.
?


Re: Dispatcher question - chaining transits #dispatcher

 

I use transit actions “load traininfo” and then “terminate” at the end of a transit. This is especially useful when your train has a reversing move.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube: