¿ªÔÆÌåÓý


Re: Audio Icon on Web Panel - Java

 

¿ªÔÆÌåÓý

And you should run it from PanelPro.

Daniel

On 2025-05-16 16:19, danielb987 wrote:

Vinny,

Sorry for late reply. If it's a Jython script, use ".py" extension.

.js is for JavaScript.

Daniel


On 2025-05-14 21:26, Vinny DeRobertis via groups.io wrote:
Dave S. & Daniel B.
I just picked-up where we left off on DEC 5 2024. We had a thread going and Daniel provided Java code.
Based on Dave's comments on the code I believe I would be left with what's shown in the attached snip.
I saved it as .js but that didn't work when I ran it from Panel Pro.
NY&HV_RR_Yard_Scenes is the name of my panel and?Harbor is the ID of the Audio Icon.
What file extension should I use, .java? Will it run from Panel Pro or from Command line?
?
--

Many thanks in advance!

Vinny DeRobertis ~ Apex, NC
New York & Hudson Valley RR

Windows 7 Pro / Java 11 / JMRI v5.10
Command Station: Digikeijs DR5000.
Booster: Digikeijs DR5033
(4) Samsung A7 10.4" Tablets
Fully Kiosk/Engine Driver v2.37.187
DCC/DMX Gateway: Pricom LLS.
LocoNet Input Modules: Digikeijs DR4088LN
DCC Output Modules:
Digikeijs DR4018 / Yamorc YD8116.
Sensors: Model Train Technology: DETECTOR-HO.
Turnout Motors: MTB MP1


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


On 2025-05-14 21:26, Vinny DeRobertis via groups.io wrote:

Dave S. & Daniel B.
I just picked-up where we left off on DEC 5 2024. We had a thread going and Daniel provided Java code.
Based on Dave's comments on the code I believe I would be left with what's shown in the attached snip.
I saved it as .js but that didn't work when I ran it from Panel Pro.
NY&HV_RR_Yard_Scenes is the name of my panel and?Harbor is the ID of the Audio Icon.
What file extension should I use, .java? Will it run from Panel Pro or from Command line?
?
--

Many thanks in advance!

Vinny DeRobertis ~ Apex, NC
New York & Hudson Valley RR

Windows 7 Pro / Java 11 / JMRI v5.10
Command Station: Digikeijs DR5000.
Booster: Digikeijs DR5033
(4) Samsung A7 10.4" Tablets
Fully Kiosk/Engine Driver v2.37.187
DCC/DMX Gateway: Pricom LLS.
LocoNet Input Modules: Digikeijs DR4088LN
DCC Output Modules:
Digikeijs DR4018 / Yamorc YD8116.
Sensors: Model Train Technology: DETECTOR-HO.
Turnout Motors: MTB MP1


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

On May 14, 2025, at 10:11?PM, tmkprr1954 via groups.io <tmkprr1954@...> wrote:

Folks,
I tried v5.11.6 tonight with a real LCC connection. In "dark mode" the LCC Node CDI fails with the unrecoverable error detailed in the attached file. Re-checked with "Windows" mode and no issues.
¡ª
Bob Jacobsen
rgj1927@...


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 doubled up: Each bit sent is taking two bit times in the receiver. By switching the script from 9600 to 4800, that should align the bit sizes.

Note that the original script was sampling at 19200. If you haven¡¯t changed that, it would cause pretty much exactly the problems you¡¯re seeing here (assuming the manual is right about the reader¡¯s baud rate)

Bob

On May 16, 2025, at 7:42?AM, Nick Brownsberger via groups.io <nbrownsbe@...> wrote:

Bob,
The baud rate should be 9600, parity bits=none, data bits=8 and stop bits=1.
Nick
¡ª
Bob Jacobsen
rgj1927@...


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


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 train.
?
The other is both freight departure and bypass to the passenger terminal.
Dispatcher brings passenger train through yard departure/bypass and Block #2.
Passenger terminal is Block #3 and Dispatcher stops train within 90% of the block at the terminal.
?
The yard tracks are not detected.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.6 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


Re: jmri & Arduino DCC-EX #dcc-ex

 

¿ªÔÆÌåÓý

Yes got them off amazon together with the motor head 4 years ago , they were about ?12 in 2021

Rob

On 16 May 2025, at 06:26, andrew_pink58 via groups.io <andrew_pink58@...> wrote:

Hi Rob.
like to ask are you using a clone?Arduino.to run the locos with.
Andrew.
?


Re: jmri & Arduino DCC-EX #dcc-ex

 

Hi Rob.
like to ask are you using a clone?Arduino.to run the locos with.
Andrew.
?


Re: Principles for signal decoders (LocoNet/LCC)

 

¿ªÔÆÌåÓý

Hej

Even if a decoder is called "signal decoder" it can be a very different animal compared to other brands.
I usually talk about three categories:

1. "I/O-decoders" - the simplest type is just a I/O-decoders (or just output decoders).
It can control connected LEDs as individual LEDs, each one having it's own address.
Even though it might be called a "signal decoder", it has no concepts of signalling, just switching individual LEDs between on/off .
It needs a central controller (JMRI) to combine the LEDs to meaningful aspects and the controller might even have to keep lights blinking.

2. "Aspect decoders" - here the decoders know codes for various aspects and can be ordered to show a specific aspect with just one message.
This becomes more efficient letting the controller (JMRI) order one aspect, and then the decoder will show that combination of lights, keeping some blinking if necessary.

3. "True signal decoders" - these decoders know the concepts of signalling.
They can change aspects due to inputs from turnouts, other signals, occupancy detectors etc.
These decoders does not need a controller (JMRI) to work, and if preferred they can work more or less automatic, showing GO for approaching trains as long as the tracks behind them is free, etc.
These decoders are perfect for use on independent modules ("modules" as in Free-Mo and Fremo).
If they are controlled by a controller (JMRI) then the controller can see them as simple two aspect signals, controlling them between GO and STOP. Exactly which GO, the decoder will select depending on the situation. The controller must be prepared for the case that it orders GO but the signal refuses e.g. due to an occupied track.

If you look at LocoNet decoders, there are examples of all three categories available, so just picking a random "LocoNet signal decoder" is not enough. You have to know which category you need and check the features of the decoder you look at.

Some answers to your questions suggested that there was no "True Signal Decoders" for LocoNet, but examples of such decoders are and both using LocoNet SE-messages for the signals.

mvh/anders


Den 2025-05-02 kl. 10:45, skrev Anders W via groups.io:

Greetings!
?
I am still in the design stage for my layout, and am looking into the signaling options.
?
As I understand it, the central computer only tells a signal decoder to show an allowing aspect or not, and it its up to the decoder to determine which aspect is applicable, using status messages it has heard over the LocoNet/LCC. A signal decoder also can broadcast its new state whenever it changes aspect.
?
I have three questions:
1. Can the central computer instruct the decoder *which* aspect to display or is it only a binary go/stop order? If yes: how many different aspects can be ordered?
2. When a decoder broadcasts its new state, does it specify *which* allowing aspect it is showing, or is it only a binary go/stop? If yes: how many different aspects can be communicated?
3. In many signaling systems, a signal can give a proceed aspect for a train movement or a shunt movement. How does the central tell the decoder which of these to use? (In the signaling system I am modelling, shunting is governed by separate lights, which may be intergated into the main signal or be part of a separate dwarf/shunt signal.)
?
Thanks in advance


Re: Script does not Print to System Console on Linux laptop #scripting

 

Phil,
?
If it is important that a script force a message be printed on the System Console, the use of the logging library provides a number of useful features.??
?
A simple example in the distributed jython\test folder is named "LoggingTest.py" and several other distributed example scripts make more sophisticated use of the "org.slf4j" library.??
?
The website gives a lot more info.? Maybe more than you wanted to see, since the target audience is the JMRI Java developers.? Most of it is also useful for script developers.??
?
Cliff in Baja SoCal


Re: Script does not Print to System Console on Linux laptop #scripting

 

Phil,

If Script Output is NOT open, print output goes to the system console.?

Dave Sand?



----- Original message -----
From: "Phil in gorgeous Young Harris via groups.io" <philabernathy=[email protected]>
Subject: [jmriusers] Script does not Print to System Console on Linux laptop
Date: Thursday, May 15, 2025 9:07 PM

Howdy all.? I am working on an older HP laptop running Lubuntu Linux with JMRI 5.11.6 and Java 17.0.12.? I am writing scripts for use with my MQTT project, but I realized that I cannot print anything to the System Console in my script.?? I do get about 40 lines of messages when an error occurs, but my print statements do not show any results in most scripts.? Even when I start PanelPro from the Terminal, I do not see any results from print statements.? An exception to that is the Set-Every-Sensor-ToInactive.py script which prints
?
I was sure that I have seen items printed out on my other computers, so I figure I must have a setting or configuration set wrong on this computer.? I often used print statements to see what the script is working with (print out a variable for example).
?
Hopefully there is something I can change to make it print.? Thanks in advance for any thoughts, ideas and help.
?
Phil from gorgeous Young Harris, Georgia, USA
?
Here is the System Console when starting:
22:04:19,662 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- * JMRI log ** [main]
22:04:19,738 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is stored in file: /home/phil/.jmri/log/session.log [main]
22:04:19,741 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is appended to file: /home/phil/.jmri/log/messages.log [main]
22:04:19,799 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- PanelPro version 5.11.6+R1b48891fa4 starts under Java 17.0.12 on Linux amd64 v6.8.0-59-generic at Thu May 15 22:04:19 EDT 2025 [main]
22:04:20,044 t.permission.DefaultPermissionManager INFO ?- Permission file: /home/phil/.jmri/.permissions.xml [main]
22:04:20,069 t.permission.DefaultPermissionManager INFO ?- Permission system is enabled: no [main]
22:04:22,850 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Starting with profile MQTT.3e352f94 [main]
22:04:22,938 jmri.util.node.NodeIdentity ? ? ? ? ? INFO ?- Using f7cdb150-c041-4957-b46a-5fd914db4bf8 as the JMRI storage identity for profile id 3e352f94 [AWT-EventQueue-0]
22:04:23,258 jmri.jmrix.mqtt.MqttAdapter ? ? ? ? ? INFO ?- MQTT starting connect with MQTTchannel = "" [main]
22:04:23,270 jmri.jmrix.mqtt.MqttAdapter ? ? ? ? ? INFO ?- Connection M is using a clientID of "MyJMRIRailJMRI2420C21CM" [main]
22:04:23,848 jmri.jmrix.mqtt.MqttPowerManager ? ? ?INFO ?- Subscribed to track/power [main]
22:04:24,525 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path program: is /home/phil/Downloads/JMRI/ [main]
22:04:24,526 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path preference: is /home/phil/Railroad/MQTT/ [main]
22:04:24,526 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path profile: is /home/phil/.jmri/MQTT.jmri/ [main]
22:04:24,527 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path settings: is /home/phil/.jmri/ [main]
22:04:24,528 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path home: is /home/phil/ [main]
22:04:24,528 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path scripts: is /home/phil/Railroad/Jython/ [main]
22:04:25,684 apps.PanelPro.PanelPro ? ? ? ? ? ? ? ?INFO ?- Main initialization done [main]
22:04:55,679 jmri.jmrit.jython.RunJythonScript ? ? INFO ?- No file selected [AWT-EventQueue-0]


Re: jmri & Arduino DCC-EX #dcc-ex

 

¿ªÔÆÌåÓý

Hi Trevor I can acces the pi only if it is connected to my network , I can view and control things via my iPad through the Jmri web server however as soon as I remove the network cable I cannot do any of the above

I put Steve¡¯s image on a larger so card and expanded the partition so I could get any updates on ?but I think the pi has had updates that lock it down further?

I have no problems installing Jmri ?and just have to check Java installs ok so ?my next plan is to use an older pi distribution and see if that functionality returns

I did try even older distributions on my pi but those could not install the various networking tools as those files are no longer available for those distributions

So I am looking for the ¡°sweet spot¡± so to speak that will give me the functionality I want

I know someone suggested attaching the pi to a router but in theory I should not need to or get an old laptop and run Jmri from that but I want to see if I can do what I want with what I have

¡®I have the bit between my teeth and not going to let go yet¡±


Rob

Pro


On 16 May 2025, at 02:03, Trevor Rowland via groups.io <trevor@...> wrote:

?
Hi Rob,
?
If I understand correctly, you are using the Pi with Steve Todd's image, connected via USB to your DCC-EX system.? Is that correct?
?
If so, Steve's image - by default - establishes a WiFi network with the Pi acting as an access point.? I can't remember the WiFi access point name, but I feel it was something along the lines of "rpi-jmri" or similar.? If you are using his image - unmodified - can you see that WiFi network when you are near your Pi?? Can you connect to that WiFi network?
?
Trevor.


Script does not Print to System Console on Linux laptop #scripting

 

Howdy all.? I am working on an older HP laptop running Lubuntu Linux with JMRI 5.11.6 and Java 17.0.12.? I am writing scripts for use with my MQTT project, but I realized that I cannot print anything to the System Console in my script.?? I do get about 40 lines of messages when an error occurs, but my print statements do not show any results in most scripts.? Even when I start PanelPro from the Terminal, I do not see any results from print statements.? An exception to that is the Set-Every-Sensor-ToInactive.py script which prints
?
I was sure that I have seen items printed out on my other computers, so I figure I must have a setting or configuration set wrong on this computer.? I often used print statements to see what the script is working with (print out a variable for example).
?
Hopefully there is something I can change to make it print.? Thanks in advance for any thoughts, ideas and help.
?
Phil from gorgeous Young Harris, Georgia, USA
?
Here is the System Console when starting:
22:04:19,662 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- * JMRI log ** [main]
22:04:19,738 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is stored in file: /home/phil/.jmri/log/session.log [main]
22:04:19,741 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is appended to file: /home/phil/.jmri/log/messages.log [main]
22:04:19,799 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- PanelPro version 5.11.6+R1b48891fa4 starts under Java 17.0.12 on Linux amd64 v6.8.0-59-generic at Thu May 15 22:04:19 EDT 2025 [main]
22:04:20,044 t.permission.DefaultPermissionManager INFO ?- Permission file: /home/phil/.jmri/.permissions.xml [main]
22:04:20,069 t.permission.DefaultPermissionManager INFO ?- Permission system is enabled: no [main]
22:04:22,850 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Starting with profile MQTT.3e352f94 [main]
22:04:22,938 jmri.util.node.NodeIdentity ? ? ? ? ? INFO ?- Using f7cdb150-c041-4957-b46a-5fd914db4bf8 as the JMRI storage identity for profile id 3e352f94 [AWT-EventQueue-0]
22:04:23,258 jmri.jmrix.mqtt.MqttAdapter ? ? ? ? ? INFO ?- MQTT starting connect with MQTTchannel = "" [main]
22:04:23,270 jmri.jmrix.mqtt.MqttAdapter ? ? ? ? ? INFO ?- Connection M is using a clientID of "MyJMRIRailJMRI2420C21CM" [main]
22:04:23,848 jmri.jmrix.mqtt.MqttPowerManager ? ? ?INFO ?- Subscribed to track/power [main]
22:04:24,525 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path program: is /home/phil/Downloads/JMRI/ [main]
22:04:24,526 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path preference: is /home/phil/Railroad/MQTT/ [main]
22:04:24,526 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path profile: is /home/phil/.jmri/MQTT.jmri/ [main]
22:04:24,527 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path settings: is /home/phil/.jmri/ [main]
22:04:24,528 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path home: is /home/phil/ [main]
22:04:24,528 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path scripts: is /home/phil/Railroad/Jython/ [main]
22:04:25,684 apps.PanelPro.PanelPro ? ? ? ? ? ? ? ?INFO ?- Main initialization done [main]
22:04:55,679 jmri.jmrit.jython.RunJythonScript ? ? INFO ?- No file selected [AWT-EventQueue-0]


Re: jmri & Arduino DCC-EX #dcc-ex

 

Hi Rob,
?
If I understand correctly, you are using the Pi with Steve Todd's image, connected via USB to your DCC-EX system.? Is that correct?
?
If so, Steve's image - by default - establishes a WiFi network with the Pi acting as an access point.? I can't remember the WiFi access point name, but I feel it was something along the lines of "rpi-jmri" or similar.? If you are using his image - unmodified - can you see that WiFi network when you are near your Pi?? Can you connect to that WiFi network?
?
Trevor.


Re: What's the optimum blocks in a fiddle/storage yard

 

¿ªÔÆÌåÓý

What I¡¯ve found to work is a short block at the end. This is used to stop the loco. But is the staging ONLY used in one direction? If it is usable going either way, you have to mirror the pattern of blocks. But the logic would be for when the whole track is empty, enter and go as slow as needed to be able to stop when hitting that end stopping block.

?

Next, is the end of the train detected? Resistors on wheels, lit caboose, lit FRED, something. If so, the logic for putting a second train into staging would be slow but watch for the turnout to become unoccupied. That¡¯s what is used to stop a second train into a staging track.

?

Now after the first train has left staging, the logic becomes like the original one train into staging and you advance the 2nd train slow until it gets to the stopping block.

?

If you can¡¯t detect the end of the train, it is still possible but more complicated.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: Losing occupancy when trying to record a warrant #warrants

 

Bob, I'm not a techo but in the absence of anyone else I'll have a go...
?
So it shows as occupied on the JMRI Control Panel, does that include the train id?
--
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: Why is LogixNG triggering on startup?

 

Oh, that is what that means. I thought it just meant that it would start listening on startup, not that it executes on startup.
?
I knew it was operator error.
--

Heath @ Human[c]ity



Re: Can a single DCC-EX CSB1 run trains AND control turnouts?

 


Found on the DCC-EX website

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


Re: Can a single DCC-EX CSB1 run trains AND control turnouts?

 

The Discord link is invalid or expired...

On 5/14/2025 4:04 PM, Peter Ulvestad via groups.io wrote:
Your question is better suited for a DCC-EX forum




Re: Why is LogixNG triggering on startup?

 

Heath,

Uncheck Startup in the ConditionalNG list.
Dave Sand



----- Original message -----
From: "Heath @ Human[c]ity Junction" <heath@...>
Subject: [jmriusers] Why is LogixNG triggering on startup?
Date: Thursday, May 15, 2025 12:43 PM

I am assuming that the LogixNG are triggering because of the way I have them setup, so the longer question is what do I need to do to change the programming of LogxNG so that they do not execute when I startup JMRI.
?
Here is an example of one of the LogixNG that runs, that I would like to not run on startup.
?

?
Thanks in advance
--

Heath @ Human[c]ity