¿ªÔÆÌåÓý

Re: Script does not Print to System Console on Linux laptop #scripting
Phil, If you want script "print output" to go to the system console, do not open the "Script Output" window. Don't use the "Scripting -> Script Output" menu or a "Preferences -> Start Up" action. The
By Dave Sand · #242141 ·
Re: Audio Icon on Web Panel - Java
Vinny, I'm not sure, but I think you should remove ".class". editor = jmri.InstanceManager.getDefault(jmri.jmrit.display.EditorManager).getByName("NY&HV_RR_Yard_Scenes") Is "NY&HV_RR_Yard_Scenes" the
By danielb987 · #242140 ·
Re: Script does not Print to System Console on Linux laptop #scripting
Thanks Dave and Cliff for responding. However, how do I close Script Output??? I looked at the link and at default_lcf.xml, but it appears to be above my pay grade, with no explicit verbiage to turn
By Phil in gorgeous Young Harris · #242139 ·
Re: Audio Icon on Web Panel - Java
Ok. Attached .py adapted from Daniel's Java code based on Dave Sand's comments. When I run it, it throws an exception From System Console: AttributeError: instance attr: class ?
By Vinny DeRobertis · #242138 ·
Re: Startup Gets Stuck #startup
Here I am again. I uninstalled and reinstalled Java 17 : 64 bit using the link - thanks. I then restarted my laptop and ran DecoderPro. ?The only response was the JMRI Monopoly splash screen and the
By rprdds24@... · #242137 ·
Re: Associating an init script with a panel file?
OK, that worked.
By Robert Heller · #242136 ·
Re: Associating an init script with a panel file?
The simplest way I've created a way to have something start with the panel load is a LRoute. Pick the type: Initializer. Then have it do whatever you want. -Ken Cameron, Member JMRI Dev Team
By Ken Cameron · #242135 ·
Re: How do I hook up a bar code reader to JMRI
Bob, I ran the program yesterday at baud=19200; I thought I had changed that to 9600. When I ran again today with baud=9600 it worked. Yeah! -- Ready to process past next = self.inputStream.read() (0,
By Nick Brownsberger · #242134 ·
Re: Audio Icon on Web Panel - Java
Vinny, Yes, my code was Java. But you write Jython code. JMRI is written in Java, but it's difficult for users to write Java code. Therefore JMRI supports Jython, which is another language. But the
By danielb987 · #242133 ·
Re: Audio Icon on Web Panel - Java
I thought you told me that the code you provided (see snip in my first message) was Java script?
By Vinny DeRobertis · #242132 ·
Re: Associating an init script with a panel file?
Robert, If you are loading the xml file with a "Preferences -> Startup" action, you can also use a startup action to run the script. The other approach is to use Logix or LogixNG to run the script.
By Dave Sand · #242131 ·
JMRI 5.11.5 OBlock File corruption
After running Version 5.10 I upgraded to 5.11.5 to access New Decoder incusions. All was well until I needed to make some changes to OBlocks. On accessing the Oblock table I eiher saw nothing in the
By waldenjohn@... · #242130 ·
Associating an init script with a panel file?
I have a panel file (https://github.com/RobertPHeller/WendellDepotMusuem/blob/main/PanelPro/WendellDepot-JMRI-withPanel.xml) that I have written an init script (it just initializes the internal
By Robert Heller · #242129 ·
Re: What¡¯s the optimum blocks in a fiddle/storage yard
Thanks all,? good thoughts.? ?Im stayiung for a short week in the Hamptons Virginia, In October. Any good railroad shops in that area I should try and look at. Im visiting from the UK, perhaps I
By Howard Witt · #242128 ·
Re: Audio Icon on Web Panel - Java
And you should run it from PanelPro. Daniel
By danielb987 · #242127 ·
Re: Audio Icon on Web Panel - Java
Vinny, Sorry for late reply. If it's a Jython script, use ".py" extension. .js is for JavaScript. Daniel
By danielb987 · #242126 ·
Re: LCCTools v5.11.6 fails with unrecoverable error
Thanks for including the traceback of the error. That really helps. Might take a few days to sort this out. It¡¯s in the code from a 3rd party, Bob ¡ª Bob Jacobsen rgj1927@...
By Bob Jacobsen · #242125 ·
Re: How do I hook up a bar code reader to JMRI
If that¡¯s what the reader manual says, and if the script is currently set at 9600, you should probably try 4800 in the script. Looking at the raw data you provided, it looks like the 1 bits are
By Bob Jacobsen · #242124 ·
Re: How do I hook up a bar code reader to JMRI
Bob, The baud rate should be 9600, parity bits=none, data bits=8 and stop bits=1. Nick
By Nick Brownsberger · #242123 ·
Re: What¡¯s the optimum blocks in a fiddle/storage yard
I have 3 total. The yard entrance splits and each has a detection block. One is the freight arrival and Dispatcher brings train to a stop 80% into Block #1. Yardmaster takes over to break up the
By Ken Heywood · #242122 ·