¿ªÔÆÌåÓý


Re: Audio Icon on Web Panel - Java

 

My bad! It does work! The panel needs to be active (on top) on one of the tablets AND the volume needs to be up! Thank you Daniel!
?
Is there a way to get around the panel having to be active? I noticed that even when I trigger the Audio directly on the tablet, when I navigate away from the panel the Audio stops.


Importing LocSound file into DecoderPro #decoderpro

 

Hi
Is there a menu item in DecoderPro to import a LocSound file into DecoderPro?
--
Mike from Calgary


Re: New to DCC - MacBook Pro Java failure #java #mac-os

 

The Java 11 jre files I've been pointed to here, that I can find, are .zip or .tar.gz files.? They unzip but don't "install".? I found a Java 17 jre .pkg that installs (according to Terminal)
but Decoder Pro can't find it.? I went back to a Java 11 jdk .pkg that installs and Decoder Pro can find.
?
Tracy


Re: Audio Icon on Web Panel - Java

 

Thanks for hanging in there with me on this Daniel. I just tried your last suggestion.?No errors, no sound.
I tried making the yard scenes panel active (on top) on one of the tablets and that did nothing. The goal of this is to play the sound remotely on one of the tablets, so I'm assuming that since the yard scenes panel is loaded on all 4 tablets, the sound should play on all 4 tablets, correct?


Re: virtual sound decoder #vsdecoder

 

Am 17.05.2025 um 06:52 schrieb Angel Mora via groups.io:
Hello everyone. I'm looking for sound files to incorporate into the JMRI virtual decoder. I work with a Digitrax control panel and would love to find these types of files or be able to create them. If anyone could help me, I would greatly appreciate it. Thank you very much.
See for sound files.

Klaus


JMRI merchandise for donations

 

As I get dressed for today's operations session. I put on my OpSIG shirt. And it made me realize that if I had one, I would also wear a JMRI shirt.
?
While I know it would not be the fashion statement of the year, I would still purchase and wear one, especially as a fundraiser to keep JMRI going.
?
Is there a JMRI merch store? Has this been tried in the past? Any chance that I could be wearing a JMRI t-shirt to my next ops session.
?
Thanks
--

Heath @ Human[c]ity



Re: 12 hour JMRI clocks

 

On 5/16/2025 10:33 PM, Dave Barraza wrote:
Back when time really meant something on US railroads, they used 12-hour time. Why don't any of the JMRI clocks offer this option - am I missing it? The empolyee timetable for the prototype I model uses 12-hour time...
Question: Are you talking about talking about a problem with a JMRI tool which uses 24-hour clock time to schedule events? Or are you talking about a problem with a JMRI tool under "Tools"-"Clocks", which provides a graphical clock on the display?

I do not have any knowledge of the JMRI tools which use time to "schedule" things - I do not use those tools. So I will choose to interpret your question as "how can the clock GUI 'display' be modified"?

"Tools"-"Clocks"-"Analog Clock" shows 12-hour time.

The "LCD", "Progatron" and "Nixie" clocks show 24-hour time. Perhaps you want one of those as "12-hour", instead?

And it can might make a difference if you are using the clock in a panel rather than as "Tools"-"Clocks"-"*' window versus a clock as part of a "panel". If so, which panel type?

How would you want the "half-of-day" to be displayed? A single character? Two characters? Add a space between numbers and "half-of-day" character(s)?...


Re: LogixNG Tables - not the first column #logixng

 

¿ªÔÆÌåÓý

Nick,

You are welcome!

LogixNG has support for maps and arrays. A map has a set of keys and each key has a value. You could solve the problem by reading the table using the action "Table: For each" and put the rows in a map. You use the action "Digital formula" to put a key with its value in the map. The formula looks like this:

myMap{myKey} = myValue

where myMap is a local variable with the map, myKey is a local variable with the key and myValue is a local variable with the value.

Using the key, you can get the value using another "Digital formula":

myValue = myMap{myKey}

In this case, you use the Berth as the key and the block as the value.

In case you wonder, global variables works everywhere where you can use a local variable. So myMap, myKey and myValue can be global variables if you prefer that.

Local variables

Table: For each

Using Digital formula

Daniel


On 2025-05-17 10:14, Nick Locke via groups.io wrote:

First of all, I'd like to take a moment to thank Daniel and Dave - their help on here over the last couple of weeks has been absolutely incredible and has helped me to make some major strides with getting my hardware panel working with JMRI.
?
This question probably has a very simple answer - "no".? But let's check.? I have this LogixNG table:
?
?
And I have this:
?
?
That works perfectly - given a Block name, it tells me the train describer Berth (which is on the hardware panel).
?
I also need to be able to do lookups the other way - when I have a Berth and need to lookup a Block name.
?
Is there any way to get LogixNG to find a row when the value to look for is in a column which isn't the first one (it would be the second column in this case)??
?
If not, I can create a second table "Berth to Block" easily enough; but that seems like a maintenance overhead and potentially error prone.? So, before I do that, I just want to check that I am not missing something.
?
Thanks,
?
Nick


Re: Associating an init script with a panel file?

 

Like Ken Cameron, I use LRoute and select my sensors and turnouts and their desired initial states by checkbox.
Much quicker than coding since I'm constantly in development mode.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.6 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


virtual sound decoder #vsdecoder

 

Hello everyone. I'm looking for sound files to incorporate into the JMRI virtual decoder. I work with a Digitrax control panel and would love to find these types of files or be able to create them. If anyone could help me, I would greatly appreciate it. Thank you very much.


LogixNG Tables - not the first column #logixng

 

First of all, I'd like to take a moment to thank Daniel and Dave - their help on here over the last couple of weeks has been absolutely incredible and has helped me to make some major strides with getting my hardware panel working with JMRI.
?
This question probably has a very simple answer - "no".? But let's check.? I have this LogixNG table:
?
?
And I have this:
?
?
That works perfectly - given a Block name, it tells me the train describer Berth (which is on the hardware panel).
?
I also need to be able to do lookups the other way - when I have a Berth and need to lookup a Block name.
?
Is there any way to get LogixNG to find a row when the value to look for is in a column which isn't the first one (it would be the second column in this case)??
?
If not, I can create a second table "Berth to Block" easily enough; but that seems like a maintenance overhead and potentially error prone.? So, before I do that, I just want to check that I am not missing something.
?
Thanks,
?
Nick


Re: Startup Gets Stuck #startup

 

Could it be opening with the panels displayed actually off the physical
screen?

Mick
______________________________________
Mick Moignard
mick@...
p:+44 7774 652504

The week may start M, T, but it always ends WTF!


Re: JMRI 5.11.5 OBlock File corruption

 

Hi John,
?
If you could please post a JMRI console log of when the issue occurs.
?
Many thanks,
Steve.
?
--
Steve Young,
Member JMRI Dev Team


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

 

¿ªÔÆÌåÓý

Correction Trevor a model 3b running at 1.4 mhz , bought in 2019

Rob

Pro


On 17 May 2025, at 07:04, Rob Heath via groups.io <suntzu777@...> wrote:

?Hi Trevor my pi is a model 2b without Bluetooth , I think it¡¯s 900hz with 1gb of memory and running from the sd card and the motor shield is ?Diymore l298p

I also have a hardware shutdown switch wired to pins 5,6 ?with the line dfoverlay=gpio-shutdown written into the config.txt file however if I update from Steve¡¯s original jmri image this gets broken , it did work with his April image but not his new may image

Rob

Pro


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

?
Also, what specific motor shield are you using?


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

 

¿ªÔÆÌåÓý

Hi Trevor my pi is a model 2b without Bluetooth , I think it¡¯s 900hz with 1gb of memory and running from the sd card and the motor shield is ?Diymore l298p

I also have a hardware shutdown switch wired to pins 5,6 ?with the line dfoverlay=gpio-shutdown written into the config.txt file however if I update from Steve¡¯s original jmri image this gets broken , it did work with his April image but not his new may image

Rob

Pro


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

?
Also, what specific motor shield are you using?


Re: Audio Icon on Web Panel - Java

 

¿ªÔÆÌåÓý

Vinny,

Try this:

editor = jmri.InstanceManager.getDefault(jmri.jmrit.display.EditorManager).getByName("NY&HV_RR_Yard_Scenes")
audioIcon = editor.getIdContents().get("Harbor")
audioIcon.play()

Daniel


On 2025-05-17 04:37, Vinny DeRobertis via groups.io wrote:

I added back this line
?
audioIcon = (AudioIcon)
?
but got the same NameError


Re: Audio Icon on Web Panel - Java

 

I added back this line
?
audioIcon = (AudioIcon)
?
but got the same NameError


12 hour JMRI clocks

 

Back when time really meant something on US railroads, they used 12-hour time. Why don't any of the JMRI clocks offer this option - am I missing it? The empolyee timetable for the prototype I model uses 12-hour time...
?
Thanks


Re: Audio Icon on Web Panel - Java

 

NameError: global name 'audioIcon' is not defined


Re: Any way to view JMRI "console log" via web interface? #webserver

 

On 5/16/2025 8:50 PM, Steve Todd via groups.io wrote:
billybob,
You can't access those file directly, because they located outside of the folders shared by the JMRI web server. The web server has a limited range of folders for security reasons.
Nuts!

But, you can deal with that easily by creating a symlink to the log folder and place it in the user files folder (which is shared).
Below are the instructions from my website for my RPi-JMRI image. You'll need to adjust them to fit your operating system and folder naming convention.
So I'll need to solve this for Win11... A quick web search finds the basic info. I'll try it in the morning.

Thanks, Steve!