¿ªÔÆÌåÓý

Date

Locked Re: Dispatcher Scripting support #dispatcher #scripting

 

Adrien
There is a transit action for allocating beyond the? upcoming safe section. Any allocation beyond the next safe section will trigger an attempt to allocate to the next safe section beyond that.
Steve G.
?
?


Locked Re: Dispatcher Scripting support #dispatcher #scripting

 

Hi Dave,
?
Yes I want to allocate the next section early exactly the same way it can be done with the user interface bellow but within a script.
?
The sequence would be : (1) The train enters a section, (2) the dispatchers auto allocates to next safe section, (3) the first next section to that safe section is requested and pending for dispatch, (works fine until there), (4) the script can if some custom conditions are met, allocate that next section. All this according to the transit, no need to add any section to it.
Thanks Adrien


Locked Re: Screenshot of JMRI

 

It works. thanks.




JeanLouisDelestre@...


De: "John Griffin" <johng.sst@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Lundi 30 Septembre 2024 19:59:57
Objet: Re: [jmriusers] Screenshot of JRMI

There is a free utility called ShareX that is excellent in clipping any section of the screen. It's what I use to capture?figures for my blog. It even captures drop downs.


On Mon, Sep 30, 2024 at 9:06?AM splasher via <steve=[email protected]> wrote:
Windows also has built in Snipping Tool which allows you to get the whole screen or just a region.
--
-splasher in somd
-NCE PowerCab with Raspberry Pi 3b+ and JMRI
-DCC-EX with Arduino Mega?w/motor shield, Raspberry Pi 3b+ and JMRI
-Using??Engine Driver with both
-Generally running the latest dev version of JMRI & Engine Driver



--
John Griffin

Model Railroading Topics



Locked Re: ANIMATED GIFS FOR SIGNAL HEADS

 

Dick,

Vic is asking abound "signal head" icons.

Dave Sand


----- Original message -----
From: "dick bronson via groups.io" <dick=[email protected]>
Subject: Re: [jmriusers] ANIMATED GIFS FOR SIGNAL HEADS
Date: Monday, September 30, 2024 9:19 PM

Vic,

I presume for flashing? There have been some flashing icons available for many years. E.g. ?

I'm not sure just how to access them for use by other rule sets, but it should be possible.

Dick :)

On 9/30/2024 9:56 PM, Lawrence Varady wrote:
Hi,
Has anyone generated animated gifs for use with the Signal Head icons?
?
Thanks
Vic


Locked Re: ANIMATED GIFS FOR SIGNAL HEADS

 

¿ªÔÆÌåÓý

Vic,

I presume for flashing? There have been some flashing icons available for many years. E.g. ?

I'm not sure just how to access them for use by other rule sets, but it should be possible.

Dick :)

On 9/30/2024 9:56 PM, Lawrence Varady wrote:

Hi,
Has anyone generated animated gifs for use with the Signal Head icons?
?
Thanks
Vic


Locked Re: OperationsPro - Location Schedules and "Count" #operationspro

 

On Mon, Sep 30, 2024 at 05:32 PM, Clarence Zink wrote:
Do I set the "count" to 12 for the ore cars, 8 for the coke cars, and 6 for the Limestone cars?
That should work.? Note that the program will not advance to the next schedule item until all cars have been delivered.? For example, on Monday, the program will wait for 12 Hopper Iron cars to be delivered.? If only 11 arrive on Monday, the program will not move to the next deliver of 8 Hopper Coke on Tuesday.
?
Dan


Locked ANIMATED GIFS FOR SIGNAL HEADS

 

Hi,
Has anyone generated animated gifs for use with the Signal Head icons?
?
Thanks
Vic


Locked Re: Problems with Persistent PI4 USB ports

 

¿ªÔÆÌåÓý

Dave Sand,
?
That line added to the ~/.jmri/jmri.conf file did the trick. I had been in that file before but didn¡¯t remember why. For me the file was already installed, I don¡¯t know if it was originally installed, or if I placed it there. First test I commented out the line:

»å±ð´Ú²¹³Ü±ô³Ù³å´Ç±è³Ù¾±´Ç²Ô²õ="-¶Ù±è¾±4Âá.±ô¾±²Ô°ì¾±²Ô²µ=»å²â²Ô²¹³¾¾±³¦¡±

And replaced it with?

default_options="--serial-ports=/dev/ttyUSB_NCE_PH_Pro, /dev/ttyUSB_PowrCab¡±

In the final version I decided to leave both default_options= lines in the script, since it works either way. Should I have left it out since it is a legacy option? Later, I will experiment with truncating the tty ports ?to see how that works. After adding the ports, it did not take until I saved and _rebooted_. A simple restart of JMRI didn¡¯t work.
?
This answers the issue I had when a new Steve Todd JMRI 5.8 image was installed on the Pi5 which would not display bound ports. It was the departure from the serial library after 5.6. I will revisit the Pi5 to add the patch.

Thanks for your help. A new page will be added to my programming info book.?

?John ?Bauchiero
- D&H Model Railroad
-?NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI 5.9.4

On Sep 30, 2024, at 9:56 AM, Dave Sand via groups.io <ds@...> wrote:

John,

Some additional details.

The previous serial library, purejavacom, had a process to find device names that started with a set of prefixes, ?One of them was ttyUSB. ?For technical reasons, a different serial library needed to be used after JMRI 5.6. ?This library does not include the discovery feature.

For Linux and macOS, JMRI has three methods to specify special serial device names. ?
  • Specify the special names in the exported JMRI_SERIAL_PORTS environment variable.
  • Add --serial-ports="???" to the command line or icon command argument
  • Use the jmri.conf file.
The jmri.conf can also be used with Windows.

The jmri.conf approach is the easiest. ?The "/dev/" prefix is not needed. ?The "ttyUSB" prefix is no longer needed for discovery but can be retained to make the purpose obvious..
<Screenshot 2024-09-30 at 8.49.39?AM.png>
Dave Sand


----- Original message -----
From: Dave Sand <ds@...>
Subject: Re: [jmriusers] Problems with Persistent PI4 USB ports
Date: Sunday, September 29, 2024 10:51 PM

John,

I am not sure that this is the official method but it does work.

Copy the jmri.conf file from the JMRI install to ~/.jmri.

Edit the file and add the serial port names. ?If more than one, separate them by using a comma.
<Screenshot 2024-09-29 at 10.35.57?PM.png>
When you start JMRI, the names are added to the serial port list in Preferences -> Connections.
<Screenshot 2024-09-29 at 10.37.25?PM.png>
After the Save and restart:
<Screenshot 2024-09-29 at 10.35.02?PM.png>

Dave Sand



Locked Re: Request about Warrant from a newbie. #warrants

 

The introduction to JMRI Warrants is at?

A simple example is actually complex. ?It is built from a Control Panel Editor panel, Turnouts, Occupancy sensors, OBlocks, Portals, OPaths, signal masts, and signal mast logic. ?Once the foundation is in place, then a Warrant can be created.

Dave Sand


----- Original message -----
Subject: [jmriusers] Request about Warrant from a newbie.
Date: Sunday, September 29, 2024 11:30 PM

Hi,
?
I am new to JRMI.
?
Do you know if there is somewhere (Web, PDF, video) a place to get information for about aytomation using warrants, but a very simple example?


Locked Re: SML signal mast problem #sml

 

Ken,

The file that you uploaded this morning does not have any of the changes that I recommended.

If you want, I can make the changes and upload an updated file for your review.

Dave Sand


----- Original message -----
From: Ken Fordham <j.kenneth.fordman@...>
Subject: Re: [jmriusers] SML signal mast problem #sml
Date: Sunday, September 29, 2024 4:20 PM

Hi Dave
Thanks for your great analysis and suggestions, all of which I will follow.?
I used the 400 series for the blocks and the 50 series when I made the turnouts their own blocks.?
After I make all the corrections tomorrow I will send you another file.?
I am not clear on how and where to place cuts in the tracks or if I can use sensors somehow to make the signals react to the train movement.?
?
Have a good night and thanks again,?
?
KenF
Ecuador


Locked OperationsPro - Location Schedules and "Count" #operationspro

 

From the example location Schedule shown on page 34 of the Manual, it appears that the "Count" number one chooses determines how many of a specific 'car type' a train will set out and/or pick up on the designated day.? ?That example is for a train to set out 2 SP boxcars and an "oil" tank car at Boyd Bindery.? The "Sequential" radio button is lit up.
?
On page 36 of the Manual, under COUNT, it states:
For example, a count of 3 is equal to entering the exact same schedule item three times in a row
?
then under Schedule Example says:
In the schedule shown above, the schedule is operating in sequential mode and is requesting two SP boxcars in a row with any load, then a tank car with with a load of "Oil".
?
I have a spur that takes:
  • 12 ore loads (Hopper Ore) inbound on Monday and Thursday, with the same 12 ore cars as empties outbound on Tuesday and Friday
  • 8 coke loads (Hopper Coke) inbound on Tuesday, with the same 8 coke cars as outbound empties later the same day
  • 6 limestone loads (Hopper Lmstn) inbound on Wednesday and Saturday, with the same 12 limestone cars as empties on Thursday and Monday.
Do I set the "count" to 12 for the ore cars, 8 for the coke cars, and 6 for the Limstone cars?
?
Thank you for the guidance.
?
Clarence


Locked Re: Dispatcher Scripting support #dispatcher #scripting

 

Do you want to allocate the next section early or do you want to add an extra section to the active train?

Dave Sand


----- Original message -----
From: vdrien <adrien.virolleaud@...>
Subject: Re: [jmriusers] Dispatcher Scripting support #dispatcher #scripting
Date: Sunday, September 29, 2024 4:34 AM

Hi Ken, Thanks for the answer I successfully create the next transit but my need is to be able to trigger some allocation in scripting.


Locked Re: Screenshot of JMRI

 

Mac OD has a very nice snipping tool:
?
Command+shift+4
?
--
Ben Sevier
Kailua-Kona, HI


Locked Re: Screenshot of JMRI

 

Is it the one we run by Shif+-Ctrl+S ?

JeanLouisDelestre@...


De: "splasher" <steve@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Lundi 30 Septembre 2024 17:06:35
Objet: Re: [jmriusers] Screenshot of JRMI

Windows also has built in Snipping Tool which allows you to get the whole screen or just a region.
--
-splasher in somd
-NCE PowerCab with Raspberry Pi 3b+ and JMRI
-DCC-EX with Arduino Mega?w/motor shield, Raspberry Pi 3b+ and JMRI
-Using??Engine Driver with both
-Generally running the latest dev version of JMRI & Engine Driver


Locked Re: Screenshot of JMRI

 

There is a free utility called ShareX that is excellent in clipping any section of the screen. It's what I use to capture?figures for my blog. It even captures drop downs.


On Mon, Sep 30, 2024 at 9:06?AM splasher via <steve=[email protected]> wrote:
Windows also has built in Snipping Tool which allows you to get the whole screen or just a region.
--
-splasher in somd
-NCE PowerCab with Raspberry Pi 3b+ and JMRI
-DCC-EX with Arduino Mega?w/motor shield, Raspberry Pi 3b+ and JMRI
-Using??Engine Driver with both
-Generally running the latest dev version of JMRI & Engine Driver



--
John Griffin

Model Railroading Topics


Locked Re: Any way to view System Console on remote browser? #webserver

 

Thanks Dan.? Found it now although although frames had come to mind before.? It's in Preferences, not the JMRI menu where I had been expecting it (Tools).? Works as hoped.
?
Phil?


Locked File /ProblemsBeingWorkedOn/Ken Fordham/Revised Panel.xml uploaded #file-notice

Group Notification
 

The following items have been added to the Files area of the [email protected] group.

By: Ken Fordham <j.kenneth.fordman@...>

Description:
Revised panel from 09/29 from Ken Fordham


Locked Re: Execute a Windows Batch File from LogixNG or Script #logixng

 

Am 30.09.2024 um 15:50 schrieb Vinny DeRobertis:
When I run it from windows it continues to take a screen shot every 4 seconds until I close the DOS window but when I run it from Bob's script it takes 1 screen shot and ends.
I get the screenshots until I quit JMRI.

My script:
import java
java.lang.Runtime.getRuntime().exec(["C:/temp/screenshot.bat", ""])

I'm running Windows 10.

Klaus


Locked Re: Execute a Windows Batch File from LogixNG or Script #logixng

 

Good idea... a little MORE brute force won't hurt.


Locked Re: Screenshot of JMRI

 

Windows also has built in Snipping Tool which allows you to get the whole screen or just a region.
--
-splasher in somd
-NCE PowerCab with Raspberry Pi 3b+ and JMRI
-DCC-EX with Arduino Mega?w/motor shield, Raspberry Pi 3b+ and JMRI
-Using??Engine Driver with both
-Generally running the latest dev version of JMRI & Engine Driver