Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Re: java
Do you have to have a java subscription now. It sak me to subscribe. On Sun, Mar 16, 2025, 1:54?PM Phil G via <phil=[email protected]> wrote:
|
||||||
Serial port issue with CMRI using Windows 10- JMRI crashes
#cmri
开云体育Tom, Since we had an offline personal conversation about JMRI-CMRI compatibility problem 2 years ago, I am writing directly to you with CC the jmriusers? to make sure that someone sees this, My system info: Panel Pro 3.10.1-r28327 Java 1.8.0_421 (en.ca) Reason for using this old software is because my JMRI panels made many years ago were incompatible with current JMRI and Java when I upgraded my home computer to a Windows 10 machine in 2023.? The panel display was badly corrupted and Tom helped me instal old versions of JMRI and Java on the new Windows 10 machine in June 23, 2023 The executable JMRI panel file is ported to an old XP machine running the CMRI signalling system composed of CMRI RS232 to RS 484 Conversion card connected to 2 SMINI’s. ? This worked fine until the old XP machine died.? Trying to use a Windows computer running Windows 10, but when using the JMRI Panel Pro version 3.10.1 on simulation it ?works OK, but when going to Preferences to go on line and trying to connect to serial port, JMRI crashes whether saving or not. The JMRI program now has been corrupted.? Had to delete JMRI and copy in JMRI directory of files that we had saved.? Now Panel Pro starts up in Simulation mode but will not run in on line CMRI mode. Looks like the old version of JMRI executable is incompatible with Windows 10. ? Tried to instal latest JMRI into another machine to see if I could get JMRI latest release to run online to CMRI on the Windows 10 machine and it downloads all the way to the un instal JMRI program and goes no further and hangs up. That may be an issue with this computer’s Windows setup as it cannot uninstall any other applications either.? Have seen on JMRI user that there are issues with Windows 10 and serial ports.? . This crash happens whether the UTS-TOS USB to RS485/232 is plugged into or not to a USB port on the computer.? ?Tried both the 2 com Port COM! & COM3 that were offered.?? Then Panel Pro will not start at all even after rebooting the computer. ?Will try to download latest JMRI and Java into a different computer later. ? Thank you,? Bob Winterton ? I included the email chain with Tom Pearson below. On Jun 24, 2023, at 2:25 PM, bobwinterton@... wrote: ? Tom, Installed Java SE 8 , and JMRI 3.10.1 with your links , and all OK and up and running. The uninstall button on the JAVA in Windows 10 Settings did the job and had no problems installing Java releases.? ?I see no need to try the transitioning a release at a time to get up to date as proposed in some topic messages.? No plans to make any changes that I can't make with this old version of Panel Pro which I understand. It is serving us well with CTC and APBS? controls for 8 years. many thanks for your clear and concise instructions, so I did not have to wade through release notes and other documentation. ? As you noticed from my posts I did find that my Panels files were quite graphics incompatible with the current JMRI Panel Pro.??? Upgrading would be a nightmare in trying to redo the Panels.? Would have to start from scratch, about a year's worth of trial and error.? BTW, I had professional CPR railway personnel and railway documents that helped me get all the aspects for each location on Schreiber Division that we modelled correctly.? The retired railway operating guys ( not just CP) who have operated trains here in our op sessions really enjoy it immensely.? Bruce Chubb was also involved in helping us get good colour renditions for LED's, that I tested from a number of sources.??? Yes you guessed already ,? that I am an electrical engineer hardware and software developer and project manager in another life. ? Really appreciate all the work and time you and many others have put into this project.? Thank you all? !! Bob ? ? ? From: Tom <Texpearson@...> ? One thing I forgot to mention is cleaning up and removing versions of Java you aren’t using. ?Oracle has a Java Removal tool which does a good job of this ? ? I’m pretty sure you need to actually install Java. ? It appears that Java 1.6 can be downloaded from the Oracle archive site ? ? The version of JMRI you are looking for is on this page ? ? On Jun 23, 2023, at 7:37 PM, bobwinterton@... wrote: ? hello Tom,? thank you for contacting me, I tried just copy /paste of the old Java folder to new computer but the install of JMRI 3.30.1 could not find Java . Got error message " Failure Down loading JAVA? Please try manually from? http"//java.com/win offline- installer" I expect that that old version of Java that JMRI 3.30 is looking for after all these years is not downloadable any more.? ?? ? Any suggestions so I can use my existing panels that? I spent over a year to perfect, on the new computer? ? The suggestions by moderator Peter are quite trial and error it seems to find versions compatible with my Panels.? Updating to newer versions of JMRI may not solve my problem with the Panel files, as I have already discovered with latest JMRI and Java.? That did result in running the Panels but with lots of sensor errors initially because I forgot to set the Preferences to C/MRI to Simulation, as I am running offline.? But then I? found messed up track lines graphics and other graphic changes, likely because of many enhancements over the years. ? ? ? ? |
||||||
Re: Lock Control Panel Position on Tablet
Vinny,
You can remove the footer using css.
1) Find the file JMRI/web/css in your JMRI installation.
2) Follow the directions in that file to copy it into your User Files location.
3) Paste the following CSS at the bottom of that file.
?
/* hide the footer, on panel pages only */
body#panel footer { ? ? display: none; } /* undo spacing left for footer, on panel pages only */ body#panel div#wrap { ? ? margin-bottom: 0; ? padding-bottom: 0; } ?
4) Restart JMRI and clear your browser cache.
--SteveT
?
|
||||||
Re: Another Could not create JAVA virtual machine problem solved by GROK
#java
I checked dates and my Thinkorswim installation was before JMRI and Azul so I don't know how the EXT folder with a 2011 dated file was inserted into my JAVA
--
Henry S |
||||||
Chaining transits with a different locomotive
#dispatcher
Hi, Still continuing to test chaining of transits. It look like if you chain a new tansit using "load traininfo”? but with a different locomotive, dispatcher doesn't use the new locomotive but continue to run the new transit with the previous locomotive. Any idea? JeanLouisDelestre@... De: "Ken Heywood via groups.io" <kheywood@...> ?: [email protected] 贰苍惫辞测é: Dimanche 23 Mars 2025 07:57:36 Objet: Re: [jmriusers] 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:
-- ---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
? |
||||||
Re: Sound files
You can load Digitrax sound files into Digitrax sound decoders with a PR3/4 and JMRI. That's the only one I know of.
-- 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: 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:
|
||||||
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: 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. 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 |
||||||
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 |