¿ªÔÆÌåÓý


Re: LogixNG table editor and CSV question #logixng

 

¿ªÔÆÌåÓý

Erik,

Your CSV file uses semicolon as separator. Try to export the table using TAB as the separator instead.

Daniel

On 2025-05-25 13:53, Erik84750 via groups.io wrote:

Following this JMRI tutorial I try to make up and import as a LogixNG table this Excell .csv file. Simply 8 sensors (C2S0B1 ... C2S0B8) and three lamps (C2L0B001 .. C2L0B003).
Excel view:
?
And LogxNG view of the imported csv file:
?
What is wrong with my import? I cannot seem to use it anywhere as described in the JMRI tutorial ()... ? Wrong csv table? Wrong way of importing?
?
The csv file as used is attached below.
Thanks for any help or pointers!
Erik
?


Re: Changing CV via webThrottle.html

 

¿ªÔÆÌåÓý

SteveT,

Is it possible to set a memory using JSON? If so, a panel with memories for address, CV and value could be used to trigger a LogixNG that does POM. There is a LogixNG action that does POM.

POM = Program On Main.

Daniel

On 2025-05-25 14:08, Steve Todd via groups.io wrote:

Darrin,
No, the JSON servlet used by WebThrottle does not have support for reading or writing CVs.
--SteveT?
?


Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control

 

Yes, a lot to discover!
?
I had considered whether the block alternate-colour-choice/change-on-cab-selection would be better operating before, during or after the NX process.
?
I discarded the during first as already said to avoid duplicating an existing process.
Second the after as one would need to work out/keep track of which blocks have just been NX allocated but not yet cab allocated. As you have touched on in order to apply the cab-specific alternate colour only to them and not to any other routes already allocated (to other cabs). Although it would have the advantage that the additional state of NX-but-not-cab-allocated might be shown.
I felt doing the colour choice first meant minimal LogixNG and no interference with the existing NX process.


Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control

 

I don¡¯t know enough about the NX process to know where there are hooks for doing extra processing. Perhaps somebody who knows more about that will point out where LogixNG or scripts can be added in?

The script fragment I quoted is actually Jython. That¡¯s a sub-variant of Python that can access JMRI¡¯s internal objects and classes. In many ways it¡¯s a simpler way to add code to JMRI, rather than writing in Java itself.

If there is a way to trigger a script after NX processing is done, you could do something like:

1) NX allocates the blocks, setting them to use their alternate color, with that alternate color being some default e.g. yellow.

2) A script is then started which scans the blocks to find any that are that default color. Those are the ones that are just allocated. It changes the alternate color on those to the color that corresponds to the allocated cab.
(I don¡¯t know how the script would find out which cab was just allocated. Some other setting?)

You¡¯d also have to have a little script that listens to the blocks and determines when they are _de_allocated so that their alternate color could be returned to yellow.

Neither of these are hard to create, except for the part about knowing what color to set and the part about getting them run after NX allocation. I don¡¯t know how to do those two things.

Bob



On May 25, 2025, at 8:15?AM, colin smith via groups.io <colinsmithwork@...> wrote:

Thanks, Bob.
Another subject on which may rating is novice (at best!) - Java, I used to be somewhat competent with C but last used nearly 20years ago. I assume that setBlockTrackColor is a Java snippet/function/expression/class, again choose your technical term :)
I found the class in setBlockAlternativeColor I've a long way to go before I can understand the running/syntax/use of LogixNG let alone a script yet.
Does that give the ability to set a block's (or blocks') alternate colour(s) on demand?
I've further yet to discover where in the process of an NX route set such a process may run.
It would be desirable (to me!) to minimise the interference/duplication with/of existing JMRI processes.
Maybe on clicking my cab selection button all unallocated blocks (currently displaying their normal colour) would have their alternate colour set to that associated with that cab. Then the NX process runs normally.
Useful to discuss regardless :)
¡ª
Bob Jacobsen
rgj1927@...


Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control

 

Thanks, Bob.
Another subject on which may rating is novice (at best!) - Java, I used to be somewhat competent with C but last used nearly 20years ago. I assume that setBlockTrackColor is a Java snippet/function/expression/class, again choose your technical term :)
I found the class in setBlockAlternativeColor
I've a long way to go before I can understand the running/syntax/use of LogixNG let alone a script yet.
Does that give the ability to set a block's (or blocks') alternate colour(s) on demand?
I've further yet to discover where in the process of an NX route set such a process may run.
It would be desirable (to me!) to minimise the interference/duplication with/of existing JMRI processes.
Maybe on clicking my cab selection button all unallocated blocks (currently displaying their normal colour) would have their alternate colour set to that associated with that cab. Then the NX process runs normally.
?
Useful to discuss regardless :)?


Re: Changing CV via webThrottle.html

 

Darrin,
No, the JSON servlet used by WebThrottle does not have support for reading or writing CVs.
--SteveT?
?


LogixNG table editor and CSV question #logixng

 

Following this JMRI tutorial I try to make up and import as a LogixNG table this Excell .csv file. Simply 8 sensors (C2S0B1 ... C2S0B8) and three lamps (C2L0B001 .. C2L0B003).
Excel view:
?
And LogxNG view of the imported csv file:
?
What is wrong with my import? I cannot seem to use it anywhere as described in the JMRI tutorial ()... ? Wrong csv table? Wrong way of importing?
?
The csv file as used is attached below.
Thanks for any help or pointers!
Erik
?


Re: Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

On May 25, 2025, at 7:35?AM, Georgia Hilton via groups.io <mttfgeo@...> wrote:

thanks... thought so... kinda hoping they were in there but hidden... I have a nice USB multi tool with assignable buttons and knobs and I was considering how to use it to make control of JMRI easier and a bit slicker.
What, specifically, would you want that multi tool to be able to do?

Bob

¡ª
Bob Jacobsen
rgj1927@...


Re: Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

thanks... thought so... kinda hoping they were in there but hidden... I have a nice USB multi tool with assignable buttons and knobs and I was considering how to use it to make control of JMRI easier and a bit slicker.?
cheers
geo
?


Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control

 

I don¡¯t know if LogixNG can change the alternate color of a block all by itself.

The alternate color can be changed via a script. Perhaps LogixNG could run a script fragment that would change the color:

block.setBlockTrackColor(java.awt.Color(190, 190, 255))

That¡¯s the color code for light blue, as an example. ¡°block¡± in the case is a variable that points to the specific Block you want to have the new color.

Bob

On May 25, 2025, at 5:23?AM, colin smith via groups.io <colinsmithwork@...> wrote:

My layout is DC cab control, servo points, neither occupation sensors nor signals. Windows JMRI + MERG CBUS. Panel editor panel. NX routing to set and show points, routes and block cab allocation.
Early days, layout under construction, JMRI being understood.
On a simple simulated test panel I've been able to set and show points, routes and allocated blocks with NX. I would like also to use this process to allocate and show the (one of five) route control cab. It looks like LogixNG (user level currently novice!) might do this. I might click a one-of-five cab select sensor button group before setting an NX route. This selection is then available during the NX setting process. Is there a way to vary the block alternate colour used to indicate an allocated block during this process, please?
It's nagging at me that I've seen a forum query on exactly this subject but despite quite deep digging and repeated searching I can't find it (or indeed anything). I suspect there is a rune to cast that will unlock my current very limited understanding!
¡ª
Bob Jacobsen
rgj1927@...


Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control

 

Thanks Chris.
I think you're describing turning a chosen alternate colour on or off not how to choose the colour.
What I need/want to do however is that the alternate colour for a block is a variable (of five) dependent on which cab is allocated.
As I understand it the alternate colour is chosen in the block edit dialogue during panel design then the on/off is actioned with NX. There is no opportunity that I have found to vary the alternate colour during operation/on the fly/ad hoc - choose your technical term!
?
Example:
I click a cab sensor group button, say cab C (of A-E). I use NX block entry exit sensors to set a route, the block colour changes from normal to alternate, say, green. If I had selected cab A the alternate colour would be, say, red. By this means it is clear that a route is controlled by cab C, or A or whichever. Without this (or some other means) it is difficult to follow which cab is controlling which route.


Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control

 

Hi,
?
I remember asking on here about this, and got an answer from Dave.
?
In LogixNG, in a 'set block' action, you have the left box where you select which block, then in 'to' and in the middle box, a drop down. In that drop down you have options to set alternate colour on or off.
?
So I'm guessing you'd have a LogixNG starting with an 'if then else', if your sensor changes to on then the action would be block - to alternate colour on, and if the sensor is off, block - to alternate colour off.
?
Chris


Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control

 

My layout is DC cab control, servo points, neither occupation sensors nor signals. Windows JMRI + MERG CBUS. Panel editor panel. NX routing to set and show points, routes and block cab allocation.
Early days, layout under construction, JMRI being understood.
?
On a simple simulated test panel I've been able to set and show points, routes and allocated blocks with NX. I would like also to use this process to allocate and show the (one of five) route control cab. It looks like LogixNG (user level currently novice!) might do this. I might click a one-of-five cab select sensor button group before setting an NX route. This selection is then available during the NX setting process. Is there a way to vary the block alternate colour used to indicate an allocated block during this process, please?
?
It's nagging at me that I've seen a forum query on exactly this subject but despite quite deep digging and repeated searching I can't find it (or indeed anything). I suspect there is a rune to cast that will unlock my current very limited understanding!


Re: Coding with Packet Analyzer

 

Canadian,

I've created a PR that could, if someone picks it up, be the basis for code that does what you want.

Wouter

On Fri, 9 May 2025 at 06:39, Canadian Locomotive Logistics via <CanadianLocomotiveLogistics=[email protected]> wrote:

All i was looking for was a way to keep track on the running hors of the locomotives.?

with advance consisting¡­. Parse the locomotives short address ?and ?add time on.?

?
any additional information for me would be trivial info.?

by the way¡­ lol i caught you speeding¡­. Your fired.?
?


Changing CV via webThrottle.html

 

Ken, et al.
?
it there a what to change a CV value
?
in the webThrottle.html via javascript?
?
Darrin


Re: Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

Layout Editor and Control Panel Editor have some shortcuts. ?LogixNG has a set for the main editor. ?The macOS version of JMRI includes cmd-Q for Quit and cmd-, for Preferences. ?ctrl/cmd-w can be used to close windows.

Dave Sand


----- Original message -----
From: "Georgia Hilton via groups.io" <mttfgeo=[email protected]>
Subject: [jmriusers] Keyboard Shortcuts for PC and/or Mac for Panel Pro... are there any?
Date: Saturday, May 24, 2025 4:39 PM

Keyboard Shortcuts for PC and/or Mac for Panel Pro... are there any??


Re: Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

On 5/24/2025 5:39 PM, Georgia Hilton via groups.io wrote:
Keyboard Shortcuts for PC and/or Mac for Panel Pro... are there any?
My opinion: JMRI has done a pretty much "thorough" job of _not_ providing what I think would be a "good thing". I believe "nowhere" may be the case! But I generally do not use a bunch of the things that JMRI can do, so I don't know if that is true.

FWIW, it would probably take a BUNCH of code changes to make JMRI have keyboard shortcuts throughout - so many changes that it is not reasonable to try to add them now. I suppose someone could try, but that effort would likely be based on the coder's choices, and probably would not match your preferences...


Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

Keyboard Shortcuts for PC and/or Mac for Panel Pro... are there any??


Re: Build 2361 Failure to Launch #jenkins #mac-os

 

Bob - Launches fine. Will test more later. Chores :(

Fred Dalzell
On May 24, 2025 at 10:43?AM -0600, Bob Jacobsen via groups.io <rgj1927@...>, wrote:

Sorry for the trouble. I believe this is fixed now. If you have time, could you please try build 2362?

Bob

On May 24, 2025, at 12:18?PM, Bob Jacobsen via groups.io <rgj1927@...> wrote:

Thanks for catching that. The machine that signs the macOS versions has failed. Working on it¡­

Bob

> On May 24, 2025, at 12:00?PM, Fred Dalzell via groups.io <dalzellf@...> wrote:
>
> Build 2361 fails to launch on macOS arm64 (15.5, Java 17). Build 2360 works fine.
>
> Fred Dalzell


¡ª
Bob Jacobsen
rgj1927@...










Re: Build 2361 Failure to Launch #jenkins #mac-os

 

Sorry for the trouble. I believe this is fixed now. If you have time, could you please try build 2362?

Bob

On May 24, 2025, at 12:18?PM, Bob Jacobsen via groups.io <rgj1927@...> wrote:

Thanks for catching that. The machine that signs the macOS versions has failed. Working on it¡­

Bob

On May 24, 2025, at 12:00?PM, Fred Dalzell via groups.io <dalzellf@...> wrote:

Build 2361 fails to launch on macOS arm64 (15.5, Java 17). Build 2360 works fine.

Fred Dalzell
¡ª
Bob Jacobsen
rgj1927@...