Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
I have recently set up a EX-CommandStation connected via USB to JMRI running on a headless RPi3b that I had laying around. And while I was quite happy with the idea of this setup, it was indeed slow (I guess the RPi3b is getting old).
?
As I already have a running docker setup I then thought that running JMRI in a docker container would be a good solution as no new hardware would be needed. I did some google search and to my surprise I could not find any existing solutions for running JMRI in a container. The only thing I found was this locked post from January? #224836. However, this discussion then developed more towards a server-client implementation of JMRI rather than running the existing implementation of JMRI in a container.
?
Even though I do not have experience at all in building Docker images I decide to give it a try. Within a couple of days I was able to put together something that seems to work. But still needs some polishing (e.g. add an external mounted volume to permanently store config files, support for DCC hardware via USB etc.).
?
The container I built is based on Debian stable with XFCE4, TigerVNC and noVNC (a fork of ), to which I added Java 17 and JMRI 5.8. The idea is to run JMRI in a "headless" container (i.e. "no monitor attached") to which you can connect to and control using a web browser via noVNC, and that exposes the JMRI webserver and the WiThrottle server. This can be run in any existing docker environment (even some NAS support docker container) and without the need of dedicated hardware for JMRI.
I currently have it connected to a EX-CommandStation via Ethernet and all seems to work pretty well. At this time some additional development would be needed to connect to DCC hardware via USB as still will require to pass through to the container the USB port of the of he host (I'm sure this is possible, but I have not yet looked at it).
?
Is anybody interested in working on developing this further or even just in trying it out?
?
?
?
?
? |
Locked
File /ProblemsBeingWorkedOn/Ken Fordham/Ken Fordham Panels.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: |
开云体育Hi En-TACT. ? Forget I mentioned making the Cab Address of the USB Interface to “10”. You’ll be using the USB Interface at the DEFAULT Cab Address of “3”. ? Connect the USB Interface to the Laptop. Using the Laptop’s Device Manager the List? will include a “Ports (COM & LPT)” selection, if the correct Driver has been installed for your Cable. Click on the “Ports (COM & LPT)” selection. Shown will be: USB-SERIAL CH340 with a COM Port Number. This also confirms the operation of your USB Cable. The highlighted COM Port Number is what you need to enter in the Decoder Pro’s Preferences “Connection” Tab for the Serial Port. Also Check TICK the “Additional Connection Setting” box then select a Baud Rate of 19,200. Then select “SAVE”? ? If you cannot get connected, include a “System Console” printout under the Hep Tab in Decoder Pro. ? Regards Marcus ? From: [email protected] <[email protected]> On Behalf Of En-TACT
Sent: Friday, 27 September 2024 12:23 PM To: [email protected] Subject: Re: [jmriusers] JMRI Error: Service mode programmer NCE is offline. #nce ? It was changed to from COM10 COM3 after the screenshot. ? How do I change the cab address of the USB interface to 10 - sorry I'm new. |
Locked
Re: Block Values Passing thru both thrown and closed legs of a turnout/switch, should only go thru the connected path.
#blockvalues
#anyrail
#layouteditor
Seth, I am not able to recreate the problem using JMRI 5.8. ? Make sure there are no block issues using the Layout Editor "Tools -> Check" menu items. You could upload the layout data xml file to the group's ProblemsBeingWorkedOn file folder. Dave Sand ----- Original message ----- From: S Olitzky <solitzky@...> Subject: [jmriusers] Block Values Passing thru both thrown and closed legs of a turnout/switch, should only go thru the connected path. Date: Thursday, September 26, 2024 9:23 PM I have rebuilt a new Panel Pro layout/profile importing from Anyrail.? Its a copy of a existing layout/profile with an additional siding and two turnouts. ? In testing the new layout/profile and my sensors, I discovered that if I have an active block with a block value before a turnout, then when I set the next blocks active attached to the turnout (both thrown and closed paths), both blocks show the block value, even though the path to one of the blocks is invalid (can't get there thru the turnou). ? This doesn't happen on my old layout/profile.? I just double checked. ? I made sure to build the routes thru the Signal Mast Logic tools. I also deleted the paths and reloaded the layout/profile. ? Still the problem occurs.? The only thing different (that I know of)? is that I used the script AddOccupancyIconsToPanel.py for the newer layout.? In the following diagram I set West Mainline active first with a block value manually.? Then I set both the other blocks active, but only West Yard Mainline should have the block value. ? Any help/ideas would be greatly appreciated.? Panel Pro 5.7.7+ Java Version 11.0.18(en) Windows 11 ? Seth Olitzky ? ? |
Locked
Re: Dispatcher Scripting support
#dispatcher
#scripting
On Thu, Sep 26, 2024 at 02:49 PM, Steve_G wrote:
In the last transit step, "LoadTrainInfo" the next transit, then "Terminate" current transit after a 1.5 second delay.
The delay allows the next transit load get started.
--
Ken NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959) Loconet * JMRI 5.9.3 * OSX,Win10,Ubuntu Blog: ?
Youtube:
|
Locked
Re: Title Bar of Preferences window is off screen. How do I move the window?
#preferences
开云体育Ron, What happens if you maximize the TigerVNC window _before_ opening the preferences window? Also, try <ALT+space> to get the window menu to resize the window. This page might add some clue: Daniel On 2024-09-27 07:47, Ron Ventura wrote:
|
Locked
Re: Title Bar of Preferences window is off screen. How do I move the window?
#preferences
All.
?
I tried both editing the line and deleting the line as Peter suggested, but this made no difference. I have uploaded a couple of screen shots to the Photos section (Preferences Title bar off screen - RPi) and also the user-interface.xml files (in the files section - same title). I even tried moving the RPi taskbar from the top to the bottom. that also didn't help, it just put the Preferences screen to the very top, still without a Title bar. This is not the end of the world, just annoying, and reinforces my inherent dislike for all things Linux.
--
Thanks and Regards Ron Ventura Melbourne, Australia JMRI 5.6+R89a87446cb Java 11.0.14 Windows 11 |
开云体育“How do I change the cab address of the USB interface to 10 - sorry I'm new.” ? The information you seek is included in the documentation that came with your USB. ? If you no longer/never had the USB documentation it is available on the NCE site. ? Best regards, ? Steve ? Steve Haas Snoqualmie, WA |
Locked
Block Values Passing thru both thrown and closed legs of a turnout/switch, should only go thru the connected path.
#blockvalues
#anyrail
#layouteditor
I have rebuilt a new Panel Pro layout/profile importing from Anyrail.? Its a copy of a existing layout/profile with an additional siding and two turnouts.
?
In testing the new layout/profile and my sensors, I discovered that if I have an active block with a block value before a turnout, then when I set the next blocks active attached to the turnout (both thrown and closed paths), both blocks show the block value, even though the path to one of the blocks is invalid (can't get there thru the turnou).
?
This doesn't happen on my old layout/profile.? I just double checked.
?
I made sure to build the routes thru the Signal Mast Logic tools.
I also deleted the paths and reloaded the layout/profile.
?
Still the problem occurs.? The only thing different (that I know of)? is that I used the script AddOccupancyIconsToPanel.py for the newer layout.?
In the following diagram I set West Mainline active first with a block value manually.? Then I set both the other blocks active, but only West Yard Mainline should have the block value.
?
Any help/ideas would be greatly appreciated.?
Panel Pro 5.7.7+
Java Version 11.0.18(en)
Windows 11
?
Seth Olitzky
?
?
|
Locked
Re: Signal heads/ masts
开云体育I’ll give it a try, glad I asked. Thanks.?? John ?Bauchiero - D&H Model Railroad -?NCE PH-Pro & PowerCab, Pi4b, DCC-EX - JMRI current test version
|
Locked
Re: Signal heads/ masts
John B,
Here is the suggestion. You create virtual signals at first. Give them meaningful user names. Build the logic for them. Later when you get real hardware, you 'move' (it's a right click option) the user name to the real hardware. You also replace the signal on the panel with the username (if you didn't from the start) and it will follow the hardware for your display of the signals. That way you never lose the logic, it is tied to the user name. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com |
On Thu, Sep 26, 2024 at 07:06 PM, En-TACT wrote:
What he means is, set the cab address of the USB interface to 10. ?
And your USB interface isn't assigned to COM3, it clearly shows COM10 in the image you posted!
?
?
?
Steve
"Breezlys" |
Hello Marcus,
?
The jumpers are set to the following: 1 = OFF / 2 = ON / 3 = ON / 4 = ON
?
What do you mean by, "Set the Address of the USB Interface to 10"?? If it's the COM port, it's set to 3. ? ? ? When I check "Additional Connection Settings", and relaunch Preferences, I find it unchecked. ? ? ? This is my DecoderPro version, along with an error - could it be my NCE USB Interface? ? ? ? |
Locked
Re: Signal heads/ masts
开云体育Ken,I am creating SSLs and now I understand how they work. All of the signals were created as virtual heads so I could place them on the LE panel and populate the Simple Signal Logic. Now that I am ready to add physical signals I believe I will need to re-create all of the logic again, this time as NH$xxx heads? If they both display aspects on the LE panel and have the same logic dialog box, what is the purpose to create virtual logic at all? Or am I missing something again.? I know when I graduate to SML all bets are off, changes will need to be made.? ? John ?Bauchiero - D&H Model Railroad -?NCE PH-Pro & PowerCab, Pi4b, DCC-EX - JMRI current test version
|
开云体育Hubert, It might be that you need to use "Request update of sensor" instead of "Request update of all sensors". Daniel
LogixNG: IQ:AUTO:0004
LogixNG: IQ:AUTO:0004 On 2024-09-26 21:27, Hubert Holmes
wrote:
|
Locked
Re: Dispatcher Scripting support
#dispatcher
#scripting
Vdrien
I dont think its that simple.
The routines mentioned act on a transit to get the next section.
The allocate extra can allocate 1 section further, but auto trains cannot always use it and it doesnt always set the switchs.. Its designed for manual driving of the train and is limited to adding only one additional section.
The bext way way is to just create a new train from where you are with a new transit to get where you want to go, it has the advantage of being able to go anywhere.
Using a script simple terminate the train and create anew one.?
You can do the same thing with Transit Actions.
?
Look to see how its done in the "Dispatcher System" in the jython library.
?
Steve G.
? |
Phil, sadly no joy for me on that LogixNX sensor polling command. it appears to run at startup and even if I force execution it, it still fails to give me block occupancy visibility on the panel. I guess my lr101 and/or lb101s just dont wake up from it calling for the report. I have a little BLI track car I just plonk on a couple blocks within easy reach and all is well, so not a huge time saver, but was bummed this didn't work for me. I did get the route to clear the turnouts on startup, so that was a win.
--
DiverseHobbies operates a: 10x16' HO multi track layout; Lenz LH101 throttle drives a LZV100 for JMRI Automated Sections & All Turnouts with a Slaved LV102? booster for the manually controller portion of the layout Mains. JMRI is running on an HP Envy 15" touchscreen w/ AMD Ryzen 5. Lenz LI-USB interface on COM 5. |
Mike, Look at the session.log file located at /Users/<username>/Library/Preferences/JMRI/log. Dave Sand ----- Original message ----- From: MICHAEL SHIELDS <mikesjmri@...> Subject: [jmriusers] MACOS 15 (Sequoia) JMRI program halt Date: Thursday, September 26, 2024 12:07 PM I use a Mac Mini M1 8GB for JMRI and LCC configuration. Five times in the past month, when using Layout Editor (the one with the grid panel) hiding a panel causes JMRI to halt with no keyboard or mouse response until I use F4 to get to the MACOS Force Quit menu option. Force Quit closes out JMRI, but of course recent edits are lost. Using JMRI 5.9.3, Azul 17, MACOS 15.0 ? Otherwise, I can hide and reopen a panel repeatedly without triggering a JMRI halt. ? Unfortunately, this is a random, occasional occurrence with no error message I know how to look for.?I have tried waiting a minute or so, but JMRI seems to have halted? I am good at continually saving my work, so not too aggravating. ? I thought it best to at least report this and would appreciate any suggestions on how to trace it. ? Thanks, -=m=- MikeS LA Model Railroad Society ? |