¿ªÔÆÌåÓý


Re: Script output delayed #scripting

 

OK I got this.
?
18:13:12,901 rit.jython.exec.AbstractAutomatonDemo INFO ?- signal one [__builtin__$SignalLogic$0]
18:13:16,704 rit.jython.exec.AbstractAutomatonDemo INFO ?- signal one [__builtin__$SignalLogic$0]
18:13:17,904 rit.jython.exec.AbstractAutomatonDemo INFO ?- signal two [__builtin__$SignalLogic$0]
18:13:21,707 rit.jython.exec.AbstractAutomatonDemo INFO ?- signal two [__builtin__$SignalLogic$0]
18:13:22,905 rit.jython.exec.AbstractAutomatonDemo INFO ?- signal three [__builtin__$SignalLogic$0]
18:13:26,708 rit.jython.exec.AbstractAutomatonDemo INFO ?- signal three [__builtin__$SignalLogic$0]
18:13:27,907 rit.jython.exec.AbstractAutomatonDemo INFO ?- signal four [__builtin__$SignalLogic$0]
18:13:31,710 rit.jython.exec.AbstractAutomatonDemo INFO ?- signal four [__builtin__$SignalLogic$0]?
?
SO I should change the sensor to mine,
?
Then confirm it.
?
them change the signals to change....


Re: PanelPro New Feature - Panel Swipe Navigation on Tablet

 

Ken,
I believe he is asking about swiping the web panels in a browser, not JMRI panels on a computer.
?
Vinny,
It seems unlikely you really want the swipe to randomly select the next panel to show. You're going to want to put them in some sort of sequence A <> B <> C, etc.
I'd recommend using the linking labels to do that. Place a linking label on the right and left edges of each panel, linked to the desired panel in that "direction".
--SteveT


Re: Script output delayed #scripting

 

After you run the script, go to the sensor table and change the sensor state for the ISoccupancySensor sensor. ?Then you will see the messages in the?SignalLogic class.

Dave Sand


----- Original message -----
From: "Canadian Locomotive Logistics via groups.io" <CanadianLocomotiveLogistics=[email protected]>
Subject: Re: [jmriusers] Script output delayed #scripting
Date: Wednesday, March 26, 2025 8:55 PM

David,
?
I ran the script.
?
I got these results
?
21:48:03,160 rit.jython.exec.AbstractAutomatonDemo INFO ?- Start Demo [AWT-EventQueue-0]
21:48:03,210 rit.jython.exec.AbstractAutomatonDemo INFO ?- Demo setup is done [AWT-EventQueue-0]
?
So here to from here.
?
I'm use to top down design from Visual Basic.
?


Re: Script output delayed #scripting

 

David,
?
I ran the script.
?
I got these results
?
21:48:03,160 rit.jython.exec.AbstractAutomatonDemo INFO ?- Start Demo [AWT-EventQueue-0]
21:48:03,210 rit.jython.exec.AbstractAutomatonDemo INFO ?- Demo setup is done [AWT-EventQueue-0]
?
So here to from here.
?
I'm use to top down design from Visual Basic.
?


Re: PanelPro New Feature - Panel Swipe Navigation on Tablet

 

¿ªÔÆÌåÓý

Vinny,

?

The concept sounds reasonable. But checking? that that the swipe action is available via the Java look and feel for our three platforms would be the first thing to check. Sometimes there are things that the libraries don¡¯t support. I¡¯m saying this as I don¡¯t know of any code in JMRI that uses swipes. It may be your idea is just the first or maybe it isn¡¯t supported. I don¡¯t know.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: truncated text labels #labels

 

Billybob,
the scaling down to 100% worked,? thanks for the tip...
John


On Wed, Mar 26, 2025 at 6:47 AM, billybob experimenter via groups.io
<jawhugrps@...> wrote:
On 3/26/2025 5:32 AM, John Barone via groups.io wrote:


> is there a fix to this? problem?


Yep.? I believe it is a Windows and/or Java problem that occurs when the
Windows computer is configured for a display "scaling" factor that is
other than 100%.

The problem and what I have done as a "workaround" has been discussed in
the last couple of weeks.? I do not have a convenient link, but I do
know that it had the subject/topic "Text labels appears only partially",
and I had responded on 11Mar2025.

So, please look to that separate thread for the details.






--
Sent from my gosh darn droid!
Please excuse the fat finger mistakes...
John


Re: PanelPro New Feature - Panel Swipe Navigation on Tablet

 

We use tablets with our panels on it?

lloyd 310 951-9097

On Wed, Mar 26, 2025, 11:33?AM Vinny DeRobertis via <vinny.derobertis=[email protected]> wrote:

Team, I have about 70 control panels and I navigate them using buttons with links. While this works fine, I can see my panel count only growing with time. The thought occurred to me of the possibilty of adding a swipe function to navigate from Panel to Panel from a web view (tablet). For example, if you could assign a Panel to a SWIPE GROUP then swiping right or left would take you to the next panel in the group. Does this sound like it would be useful to others?
--

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


EngineDriver Beta v2.40.197 released to Play Store #enginedriver

 

EngineDriver users, we've released an update for EngineDriver to the Beta program, v2.40.197. You can find the list of changes here:
The update should arrive on your devices shortly.
?
As always, Thanks to Peter Akers for his tireless efforts, and thanks to the Beta testers and others who provide the feedback to make EngineDriver better!
Please let us know of any issues, here, or via email.
--SteveT


Re: 5.11.4 Assistance Needed, Ghost Blocks Issue, Dispatcher Issue #dispatcher

 

I suspect that the issue is starting a multi-block section with a ghost block. ?This might also be an issue when ending one with a ghost block.

I prefer to use single block sections. ?After creating the single block sections and a new transit, the ghost blocks worked as expected.

Dave Sand


----- Original message -----
From: stevemac <steveo@...>
Subject: [jmriusers] 5.11.4 Assistance Needed, Ghost Blocks Issue, Dispatcher Issue
Date: Wednesday, March 26, 2025 1:27 PM

I think I finally learned enough to make it thru SML but am stuck on Dispatcher which may be related to ghost blocks.
?
I made all turnouts ghost, added sensor and have no logic although I show the sensor on layout and the layout never shows entry occupancy and exit.
?
I initially used auto-generated sections but it was difficult for me to interpret so I deleted all and made a couple simple sections for testing. It initially stopped on a ghost block but by manually setting/clearing sensor the loco moved on and then stopped after going past a level crossing. (There was nothing in the log.) I've tried a few things but can't relate to what dispatcher is thinking.
?
Uploaded file to problems as GGNN.xml from stevemac. I'm new yearning for knowledge so tell me anything. Any advice appreciated.


Re: Serial port issue with CMRI using Windows 10- JMRI crashes #cmri

 

Hi Bob,
?
I should have said I looked for the section named </connections and then found a section that started <connection that contained the connection for the NCE via serial interface.
?
Regards
?
Nick


Re: Serial port issue with CMRI using Windows 10- JMRI crashes #cmri

 

Hi Bob,
?
I had a similar problem the other week when I tried to use a USB to Serial Adapter (for NCE Power Pro 5) with JMRI 5.6 on a Windows 11 laptop.
?
I solved the problem by editing (in Notepad++) the profile.xml file for JMRI and removing a section relating to the connection:
?
I looked for the section named </connections and then found a section that started <connection> that contained the connection for the NCE via serial interface.
?
I removed that entire section from <connection to </connection>? ?hopefully someone who knows more about JMRI can correct me if I wrote that down incorrectly or I'm not using the best solution or I was just lucky.
?
I then saved the profile.xml back where I found it, restarted JMRI Panel Pro and then it booted up correctly instead of hanging.
?
Regards
?
Nick
?
?


PanelPro New Feature - Panel Swipe Navigation on Tablet

 

Team, I have about 70 control panels and I navigate them using buttons with links. While this works fine, I can see my panel count only growing with time. The thought occurred to me of the possibilty of adding a swipe function to navigate from Panel to Panel from a web view (tablet). For example, if you could assign a Panel to a SWIPE GROUP then swiping right or left would take you to the next panel in the group. Does this sound like it would be useful to others?
--

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: Closing or Teminating Scripts #scripting

 

I started tooo last night.... THan k you.


5.11.4 Assistance Needed, Ghost Blocks Issue, Dispatcher Issue #dispatcher

 

I think I finally learned enough to make it thru SML but am stuck on Dispatcher which may be related to ghost blocks.
?
I made all turnouts ghost, added sensor and have no logic although I show the sensor on layout and the layout never shows entry occupancy and exit.
?
I initially used auto-generated sections but it was difficult for me to interpret so I deleted all and made a couple simple sections for testing. It initially stopped on a ghost block but by manually setting/clearing sensor the loco moved on and then stopped after going past a level crossing. (There was nothing in the log.) I've tried a few things but can't relate to what dispatcher is thinking.
?
Uploaded file to problems as GGNN.xml from stevemac. I'm new yearning for knowledge so tell me anything. Any advice appreciated.


Re: Closing or Teminating Scripts #scripting

 

Darrin,

Did you download and look at the Demo.py script that I uploaded?

There are two kinds of persistence in Jython scripts.

"AbstractAutomaton" scripts create separate threads which are visible using the "Thread Monitor". ?It provides the ability to "stop" a thread.

Scripts using "PropertyChangeListener" attach a listener to JMRI objects, such as turnouts, sensors, etc. ?The listeners are created by a script but a listener is independent after the script has finished. ? The Demo.py script shows how to "remove" a listener from a JMRI object.

If you look at the actual execution of a Jython script, they run quickly. ?The Demo.py script runs in 12ms. ?However, it leaves behind an?AbstractAutomaton class definition and a sensor listener, along with any changes to global Jython variables.

Dave Sand



----- Original message -----
From: "Canadian Locomotive Logistics via groups.io" <CanadianLocomotiveLogistics=[email protected]>
Subject: [jmriusers] Closing or Teminating Scripts
Date: Wednesday, March 26, 2025 11:10 AM

In my quest of developing scripts, I often test, re-write, save (under a new name), re-run and continue.
?
After hearing an old script still running.... and I checked the theads; nothing is runing, or so I thought.
?
So without rebooting JMRI, hoe wo a check, and close active scrpts running in the back ground?
?
Be patient with me, this old bird is learning fast.
?
Darrin Calcutt
Canadian Locomotive Logistics
?


Re: Problem loading Bachrus Speedometer #bachrus

 

Bob;

When I press OK on the message, it then goes back to the "Finish and Connect" screen.? When I press Finish again the message appears again, so it's looping.

When?I press Cancel, it goes back to the initial startup screen and Gettin Started in RED.

I then restarted JMRI and selected my Power Cab.? The program opened, with no sign of the Bachrus connection in Preferences.? I then added Bachrus, saved the page and restarted JMRI.? Now i get the screen of Error Initializing Decoder Pro. saying it cannot create a connection to Speedo (A).? Serial Port COM6 not found.??
Checking my Device Manager it shows the Bachrus Speedo Interface (COM6).

So I'm not sure where or what in JMRI isn't making the connection.

Jim Little, MMR?

On Tue, Mar 25, 2025 at 6:05?PM Bob Jacobsen via <rgj1927=[email protected]> wrote:
Sorry for the problem.? Looks like it might be an issue with the startup wizard

What happens if you press OK on that message, then press ¡°Finish¡± on the underlying window?

If you then close and restart JMRI, what happens?

Bob

> On Mar 25, 2025, at 3:38?PM, James Little via <jlittletrains=[email protected]> wrote:
>
> Hello;
>
> I recently tried installing my Bachrus Speedometer on a(newer) laptop with JMRI on it.
> It has Win 10; JMRI 5.11.4, NCE Power Cab (latest chip v1.65b) all installed.? Power Cab runs fine on system.
>
> I had trouble loading the supplied driver (from 2006),? but after discussing it with a good friend who is a Windows Certified Technician, he walked me through a procedure to instal a "legacy" driver.? Windows now sees the unit? ( in Device Manager).? I walked through the JMRI setup for Bachrus speedometer,? all the way through to the (almost) End.? ?This message appeared, which to me says there's something in JMRI that need updating...?
>
> <JMRI Bachrus? Prob.png>
>
> As what JMRI need is WAAAAAY beyond my paygrade, is there someone out there (preferably a develope)? who I could work with to resolve this?
>
> Jim Little MMR
>

¡ª
Bob Jacobsen
rgj1927@...










Closing or Teminating Scripts #scripting

 

In my quest of developing scripts, I often test, re-write, save (under a new name), re-run and continue.
?
After hearing an old script still running.... and I checked the theads; nothing is runing, or so I thought.
?
So without rebooting JMRI, hoe wo a check, and close active scrpts running in the back ground?
?
Be patient with me, this old bird is learning fast.
?
Darrin Calcutt
Canadian Locomotive Logistics
?


Re: WiThrottle function master list #functionlabels

 

Steve,
?
Decoders are a mixed bag but 90% are ESU, the others are mostly TSU.
?
I don¡¯t mind editing XML if I am pointed in the right direction.?

Regardless of the decoder, all my functions are standardized.?

F1 bell
F2 horn
etc
F5 ditch lights?
F6 railgrind
F7 full throttle
F8 sound
F9 coast
f12 ground lights
--
Modeling Conrail¡¯s Boston Line in HO


Re: truncated text labels #labels

 

I just added two spaces after the text.
?
chuck


Re: truncated text labels #labels

 

On 3/26/2025 5:32 AM, John Barone via groups.io wrote:

is there a fix to this? problem?
Yep. I believe it is a Windows and/or Java problem that occurs when the Windows computer is configured for a display "scaling" factor that is other than 100%.

The problem and what I have done as a "workaround" has been discussed in the last couple of weeks. I do not have a convenient link, but I do know that it had the subject/topic "Text labels appears only partially", and I had responded on 11Mar2025.

So, please look to that separate thread for the details.