开云体育


Re: Sound files

 

Dwight,

Basic answer is no.

ESU needs a LokProgrammer and it's software
Digitrax needs a PR3/PR4 and the Soundloader app

i'm sure other manufacturer?have their own hardware to do the same

Cheers

Aaron

On Mon, Mar 24, 2025 at 2:02?PM Dwight Kayto via <dkayto_itil=[email protected]> wrote:
Sorry, this is probably a pretty basic question. ?
can I load a sound file onto a decoder using decoderpro? ?


Sound files

 

Sorry, this is probably a pretty basic question. ?
can I load a sound file onto a decoder using decoderpro? ?


Re: Script output delayed #scripting

 

Thanks, I will try that....
?
Currently the code it as follows.
?
from java.util import Date
from java.text import SimpleDateFormat
from java.lang import Thread
import time
import jmri
import java
import java.beans
formatter = SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
current_date_time = formatter.format(Date())
print("Current Date and Time: " + current_date_time)
print("Confirmation on the script starting. Track Detection.")
print("==================================================== ")
print(" ")
print("First Step, testing ou the ability to pause the program.")
thread.sleep(3000)
print("Did it work?")
print(" ")
print("Defining the listener to play a sound when a sensor goes active.")
class SoundListener(java.beans.PropertyChangeListener):
??
? def propertyChange(self, event):
? ? if ((event.newValue == ACTIVE) and (event.oldValue == INACTIVE)):
? ? ? ? self.snd.play()
? ? ? ? prin(" ? ?if statement is true.")
# ? ? ? ?signal_routine("Limited Clear")
? ? else:
? ? ? ? print(" ? ?no thruth to this at all!")
? ? ? ? signal_routine("Limitied Clear")
m = SoundListener()
m.snd = jmri.jmrit.Sound("resources/sounds/Crossing.wav")
print(" ? ?Finished defining the lisitener to play a sound.")
sensors.provideSensor("N4S55").addPropertyChangeListener(m)
?
def signal_routine (aspect):
? ? ##################################################################################
? ? print("Part 1")
? ? mast_1 = masts.getSignalMast('Signal Mast, Table 10, Track 5, West Bound')
? ? mast_1.setAspect('Limited Clear')
? ? print(" ? ? Signal Mast, Table 10, Track 5, West Bound is set to 'Limited Clear'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? Current Date and Time: " + current_date_time)
? ? ##################################################################################
? ? print("Part 2")
? ? mast_2 = masts.getSignalMast('Signal Mast, Table 12, Track 5, West Bound')
? ? mast_2.setAspect('Limited Clear')
? ? print(" ? ? Signal Mast, Table 12, Track 5, West Bound is set to 'Limited Clear'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? Before calling a wait statement.")
? ? self.waitMsec(3000)
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)
? ? ##################################################################################
? ? print("Part 3")
? ? mast_3 = masts.getSignalMast('Signal Bridge, Table 12, Track 5, West Bound')
? ? mast_3.setAspect('Limited Clear')
? ? print (" ? ?Signal Bridge, Table 12, Track 5, West Bound is set to 'Limited Clear'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ##################################################################################

? ? print("Part 4")
? ? mast_4 = masts.getSignalMast('Signal Bridge, Table 11, Track 5, West Bound')
? ? mast_4.setAspect('Limited Clear')
? ? print (" ? ?Signal Bridge, Table 11, Track 5, West Bound is set to 'Limited Clear'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ?##################################################################################

? ? ##################################################################################
? ? print(" ")
? ? print("Reseting The signals.")
? ? print("=====================")
? ? print(" ")
? ? print("Part 1 - Restting")
? ? mast_1 = masts.getSignalMast('Signal Mast, Table 10, Track 5, West Bound')
? ? mast_1.setAspect('Stop Signal')
? ? print(" ? ? Signal Mast, Table 10, Track 5, West Bound is set to 'Stop Signal'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? Current Date and Time: " + current_date_time)

? ? ##################################################################################
? ? print("Part 2 - Resetting")
? ? mast_2 = masts.getSignalMast('Signal Mast, Table 12, Track 5, West Bound')
? ? mast_2.setAspect('Stop Signal')
? ? print(" ? ? Signal Mast, Table 12, Track 5, West Bound is set to 'Stop Signal'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ##################################################################################
? ? print("Part 3 - Resetting")
? ? mast_3 = masts.getSignalMast('Signal Bridge, Table 12, Track 5, West Bound')
? ? mast_3.setAspect('Stop Signal')
? ? print (" ? ?Signal Bridge, Table 12, Track 5, West Bound is set to 'Stop Signal'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ##################################################################################

? ? print("Part 4 - Resetting")
? ? mast_4 = masts.getSignalMast('Signal Bridge, Table 11, Track 5, West Bound')
? ? mast_4.setAspect('Stop Signal')
? ? print (" ? ?Signal Bridge, Table 11, Track 5, West Bound is set to 'Stop Signal'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ##################################################################################
print("End of the script.")
?
?
?


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

 

I thought I saw some verbiage on being able to do that in the JMRI layout editor manual
?
?
--
Rodney McNeill


Re: Lock Control Panel Position on Tablet

 

I tried a smaller panel and that resolved it.
How do I remove the footer so that I don't have to modify my panels?


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