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
Re: Any way to view JMRI "console log" via web interface?
#webserver
On 5/16/2025 6:49 PM, Dan Boudreau via groups.io wrote:
On Fri, May 16, 2025 at 06:42 PM, billybob experimenter wrote: Thanks for this, Dan! Now I can wish (haha!) that I could set preferences via the web interface. Guess I'll need to get the preferences fiddled before tomorrow's session... |
Re: jmri & Arduino DCC-EX
#dcc-ex
Hi Rob.
Had the issue of loco could not run forward or back, power was on track , and program track had no problem .turn on or off.fine
So I bought the original UNO Arduino , and that fixed the problem .
So some clone brand Arduino do work .
So with my, Mac
Java -OpenJDK11U-jdk_x64_mac_hotspot_11.0.21_9
Jmri 5.5.2
Andrew. |
Re: Any way to view JMRI "console log" via web interface?
#webserver
On Fri, May 16, 2025 at 06:42 PM, billybob experimenter wrote:
Have I missed something? If not, is there a reason why JMRI cannot show the console log? Enable frames under Preferences... Web Server
|
Any way to view JMRI "console log" via web interface?
#webserver
Trying to debug via the web interface, Want to view the "Console Log" via the web interface. Curiously, I can view several panels - both control panel and layout editor. But I cannot find any way to view the console log via the web interface.
Have I missed something? If not, is there a reason why JMRI cannot show the console log? (In this JMRI CTC implementation, I have printed some debugging info from Jython, and I want to see the Console Log via the web interface during an operating session. So far, the day's CTC "bugs" have all been blamed on hardware failures or on "dispatcher error"... But, sooner or later, I will need to be able to view the log from the web.) |
Re: Losing occupancy when trying to record a warrant
#warrants
Bob,
Also try recording a warrant that doesn't include this block.
Supposedly an NX Warrant doesn't need a block to have detection as it allows 'Dark' blocks. That would mean if the block had an issue then it mightn't register as a problem.
--
H.O. Australia (Layout in Progress) Digikeijs DR5000 LocoNet JMRI v5.10 DecoderPro/Warrants/CPE/SML/LogixNG Java: OpenLogic jre-17.0.12.7 Windows 10 |
Re: Script does not Print to System Console on Linux laptop
#scripting
Thanks again Dave for continuing help. I have never used the Scripting/Scripting Output option, but now that I've found it and opened it, I see all my print results. I guess I can use that rather than, or in addition to, the System Console.
I don't not know what is different now but this will allow me to bumble my way through scripts by giving me the information I print during development.
Phil |
Re: Audio Icon on Web Panel - Java
> I had to comment-out audioIcon.play() because it caused an error. What error? If you don't call play(), you don't play the audio. Daniel
On 2025-05-16 22:14, Vinny DeRobertis
via groups.io wrote:
|
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 default for Jython print statements is to write them to the system console. If the Script Output window has been opened, then the print statements are redirected to the Script Output window. You don't need to do anything else. Dave Sand ----- Original message ----- From: "Phil in gorgeous Young Harris via groups.io" <philabernathy=[email protected]> Subject: Re: [jmriusers] Script does not Print to System Console on Linux laptop Date: Friday, May 16, 2025 2:43 PM On Thu, May 15, 2025 at 10:47 PM, Dave Sand wrote:
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 on or off logging to the console. Phil LoggingTest.py output is here, then I loaded my panel and it ran a script to change sensors to Inactive: 15:33:20,563 LoggingTest.py WARN - This WARN is OK, it's emitted from LoggingTest.py on purpose [AWT-EventQueue-0] 15:33:59,634 jmri.configurexml.LoadXmlConfigAction INFO - Loading selected file: /home/phil/Railroad/MQTT/MQTT-ESP32Config-2025-05-16-0849.xml [AWT-EventQueue-0] 28 total sensors found, all 28 changed to INACTIVE |
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 name of the panel? If so, you need " around it. See above. Daniel On 2025-05-16 21:15, Vinny DeRobertis
via groups.io wrote:
|
Re: Script does not Print to System Console on Linux laptop
#scripting
On Thu, May 15, 2025 at 10:47 PM, Dave Sand wrote:
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 on or off logging to the console.
Phil
LoggingTest.py output is here, then I loaded my panel and it ran a script to change sensors to Inactive:
15:33:20,563 LoggingTest.py WARN - This WARN is OK, it's emitted from LoggingTest.py on purpose [AWT-EventQueue-0] 15:33:59,634 jmri.configurexml.LoadXmlConfigAction INFO - Loading selected file: /home/phil/Railroad/MQTT/MQTT-ESP32Config-2025-05-16-0849.xml [AWT-EventQueue-0] 28 total sensors found, all 28 changed to INACTIVE |
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 DecoderPro icon on the taskbar. So, I ran InstallTest and got the three screens shown in the attached photos. Any ideas on why JMRI won't open?
--
Richard Richter |
Re: Associating an init script with a panel file?
OK, that worked.
At Fri, 16 May 2025 11:36:37 -0500 [email protected] wrote: -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services -- Linux Administration Services heller@... -- Webhosting Services |
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, '') (1, '0') (2, '01') (3, '017') past values = self.parse(self.line) ['0175'] past count = self.inputStream.available() at return 1 Skipped character count: 0 Skipped character count: 0 Skipped character count: 0 Ready to process Thank you very much. I guess the reader can read 1-D also!
Nick |
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 principles in Java can be applied to Jython,
which is why I gave a Java example. Daniel On 2025-05-16 19:11, Vinny DeRobertis
via groups.io wrote:
|
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. Here is a simple LogixNG. Because the Startup option is enabled, the ConditonalNG will run after the file loading is done. Dave Sand ----- Original message ----- From: "Robert Heller via groups.io" <heller=[email protected]> To: JMRI Users <[email protected]> Subject: [jmriusers] Associating an init script with a panel file? Date: Friday, May 16, 2025 11:25 AM I have a panel file () that I have written an init script (it just initializes the internal sensors to a sane set of states). Is there some way to run this script when the panel file is loaded? -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services -- Linux Administration Services heller@... -- Webhosting Services |
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 table or scrolling I was met with scramled lines.
On returning to Ver 5.10 was was back as should be (less the Decoder Definitions)
If anyone has a fix , please e-Mail me direct . waldenjohn@... Many Thanks
John W |
to navigate to use esc to dismiss