Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Re: Audio Icon on Web Panel - Java
toggle quoted message
Show quoted text
|
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:
|
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:¡ª 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 Jacobsen rgj1927@... |
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 2021Rob
|
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. 1. "I/O-decoders" - the simplest type is just a I/O-decoders (or
just output decoders). 2. "Aspect decoders" - here the decoders know codes for various
aspects and can be ordered to show a specific aspect with just one
message. 3. "True signal decoders" - these decoders know the concepts of
signalling. 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:
|
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 aboveI 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 On 16 May 2025, at 02:03, Trevor Rowland via groups.io <trevor@...> wrote:
|
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: 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...
toggle quoted message
Show quoted text
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 |