开云体育


Re: Current state of DMX support on Apple Silicon Macs? #mac-m1 #powerline

 

开云体育

If we did do our own libusb4java, it might cure an issue in how Windows can do a better job of using the DMX interfaces. One of the preferred methods can’t be used from Windows due to a buffer size issue somewhere inside that code.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: PanelPro Startup

 

开云体育

Dave

Try using a separate profile using a simulator connection, but using the same file location.

Then you can use your exisiting panel file to experiment with using the new profile, but any modified file will be available using the "normal" profile.

That is how I do it.

Brian Clark

Bedford, UK

On 17/03/2025 09:56, David Smith via groups.io wrote:

Hi,
?
I am using PanelPro wirh MERG and a SPROG and everything is great,
?
But I want to build the Panel and develop scripts without the MERG hardware and SPROG connected, and PanelPro will not open the panel unless the hardware is present.
?
Is there a way to be able to do that ?
?
Many thanks
?
Dave


PanelPro Startup

 

Hi,
?
I am using PanelPro wirh MERG and a SPROG and everything is great,
?
But I want to build the Panel and develop scripts without the MERG hardware and SPROG connected, and PanelPro will not open the panel unless the hardware is present.
?
Is there a way to be able to do that ?
?
Many thanks
?
Dave


Re: Making a plant switcher work correctly #operationspro

 

Hey John,
?
Sorry the images didn't stack very well, but if you just match the text reference to the same file name of the images, I think you'll get the gist...!
?
Pete


Re: Making a plant switcher work correctly #operationspro

 

Ok John,
?
I was holding off with a reply, figuring some help might be forthcoming.
?
Since this appears to be a rephrased post from the original question, I am guessing that you didn't get the results you are looking for, from the replies you received.
Let me see if I can offer a workable suggestion that addresses your want list from the original post. ?
?
The following suggestions create a basic approach to answer your issues. ?They involve all your stated tracks at ADM, but I use only the one other location for the Local train, which I call "Interchange". ?If you want to add more tracks or other locations to the Local's route, you can certainly do this, but my example needs only the one track in "Interchange".?
?
The key to all this interchange of cars is the correct track-type assignments and filters thereon. ?Here are my suggestions as well as images for how I set things up...
?
Locations: uses only 2
?
  • "Interchange" (image 1) - served by the Local train
    ? ? ?has a single Spur-type track called "Drawers" (image 2) which in turn has a Load Option filter (image 3) and uses a schedule called "Load Exchanger" (image 4)
    ?(this location's schedule is what converts your loads into MTYs and vice versa. ?It also assigns Grain Hopp cars that are MTY, to point only as far as ADM where the program then assigns them to either Pit 2 or 3)
  • "ADM Facility" (image 5) - served by both the Plant switcher and the Local train
    ? ?has 4 Spur-type tracks (listed in image 5), each with the direction boxes unchecked and allowing in only certain car types (images 6a-9a), while also using schedules (images 6b-9b)
    ? ?has 4 Yard-type tracks (image 10), again with unchecked direction boxes, allowing certain car types, and one (Track 7) with a Load Option filter (image 10a)
    ? ?has 2 Class/Interchnge-type tracks (image 11), one each for inbound/outbound cars, allowing only certain cars/loads and limiting which trains work which tracks (images 12a-b & 13a-b)
    (additionally, by limiting which destination can be served by the "Pass" track (image 12c), no cars are allowed to move from the inbound "Pass" track back to the outbound "Yard Lead" directly)
?
Car types: uses only 2 (no images, as you should know about cars and how to edit)
? ?
  • "Grain Hopp" - loads allowed = <Corn> and <DDG>, empty allowed = <MTY> (for my example, all grain cars can load either corn or DDG, which allows respots at ADM)
  • "Tank_C2H6O" - loads allowed = "Ethanol", empty allowed = <MTY>
?
Trains: ?uses only 2 (again, no images, 'cause see above about Cars)
?
  • "Local train" - uses the route called "Local" and serves both Locations (though limited to only certain tracks at ADM)
  • "Plant switcher" - uses the route called "ADM Plant" and serves only ADM (is a true "switcher" thus can work all tracks, including those with no direction boxes)
?
Routes: uses only 2 (images 14 & 15)
?
  • "Local" - used by the Local train and with 2 lines for each location (by allowing S/Os on the first line at "ADM" and P/Us on the second, the number of cars can be controlled)
  • "ADM Plant" - used by the Plant switcher and has only one line, allowing up to 50 moves.
?
Altogether, this example allowed me to build either train and see the movement results that I believe you stipulated in your post. ?One small hiccup being that occasionally, when an MTY Grain Hopp was sent to any of the Yard storage tracks (4-6), it could then sometimes be assigned to return to "Interchange" for loading with corn. ?This occured when no space was available at DDG loading when the Plant switcher was built. ?I can offer a small setup correction if you prefer this not happen, but I considered it a small offset to the overall working flow since the cars will move either way.
?
If any of this seems fuzzy, let me know and we'll defuzzify with more help...
?
Happy to help, hope it helps,
<Pete Johnson>


Re: Controlling Alexa (Amazon) via JMRI

 

开云体育

Heath

You are looking for the LogixNG action "Web request".

Daniel


On 2025-03-16 17:10, Human[c]ity Junction wrote:

I would like to create some timed routines in JMRI that sends commands to Alexa to run various routines. For example, at start of session, I can start the fastclock, and then at appropriate times, it will trigger Alexa.
?
My plan to do this is using "Voice Monkey" as the translator. VM allows you to send a command via a web link, which then will trigger Alexa.
?
So what I need to do is get JMRI to run a weblink in the background (not open a web browser). I had asked this question a few years ago and apparently this was coming, but not available yet.
?
Is there a way within JMRI that at a certain time on the Fast Clock, I can send a trigger using a weblink () but that will not open a browser, it will just happen in the background?
?
Thanks
--

Heath @ Human[c]ity



Re: Lock Control Panel Position on Tablet

 

Vinny, it appears that the web page is larger than the tablet viewport, so scrolling is the expected behavior. Try it with a smaller panel and see if that solves the issue.
If it does, you may be able to simply remove some of the web page details (like the footer) and eliminate the scrolling without having to modify your panel.
--SteveT


Re: New Apple computer

 

开云体育

Fran,

Do you use Time Machine to backup your files? ?That would get everything you need plus allow you to restore things to your new machine. ?

David Klemm





On Mar 16, 2025, at 18:58, Fran Giacoma via groups.io <frangiacoma@...> wrote:

Getting a new MacBook Air next week to replace my 4 year old MacBook Pro that I use DecoderPro on. I'll be trading in the MacBook Pro when I pick up the new Air. What JMRI items should I back up (to iCloud or portable hard drive) before I go to the store? I already save the Roster File and Roster.xml to iCloud whwnever I make changes in DecoderPro.
?
Any special Java installs to be done of the MacBook Air?
Thanks.
?
Fran Giacoma


Re: Upgrading #upgrading

 

It is 64 bit windows from what I understand. Will double check that. Since it is not connected to the internet, they don't bother with updates. I will be going there on Thursday to double check everything, but have the ear of the past president to ask as well. Will update as soon as I know more.


Re: New Apple computer

 

Fran,

Do you use PanelPro for anything? ?What version of JMRI are you currently running?

Dave Sand



----- Original message -----
From: "Fran Giacoma via groups.io" <frangiacoma=[email protected]>
Subject: [jmriusers] New Apple computer
Date: Sunday, March 16, 2025 6:58 PM

Getting a new MacBook Air next week to replace my 4 year old MacBook Pro that I use DecoderPro on. I'll be trading in the MacBook Pro when I pick up the new Air. What JMRI items should I back up (to iCloud or portable hard drive) before I go to the store? I already save the Roster File and Roster.xml to iCloud whwnever I make changes in DecoderPro.
?
Any special Java installs to be done of the MacBook Air?
Thanks.
?
Fran Giacoma


New Apple computer

 

Getting a new MacBook Air next week to replace my 4 year old MacBook Pro that I use DecoderPro on. I'll be trading in the MacBook Pro when I pick up the new Air. What JMRI items should I back up (to iCloud or portable hard drive) before I go to the store? I already save the Roster File and Roster.xml to iCloud whwnever I make changes in DecoderPro.
?
Any special Java installs to be done of the MacBook Air?
Thanks.
?
Fran Giacoma


Re: Upgrading #upgrading

 

开云体育

What computer are you running at the club

Windows? If so, which one??

If it IS Windows, then the upgrades are very easy. You just install a new version “over the top” of the old version. All the user files are preserved

BUT PLEASE READ THE RELEASE NOTES for the version you are upgrading TO. From old releases, there may be some intermediate steps you need to take. Do NOT skip them

Phil G

On 16 Mar 2025, at 19:29, J Grant 4 X SDXH167D, 1 X SDXH187MT, DCS-52 via groups.io <customcms@...> wrote:

?
Here is the situation.?
The MRRC I belong to is a bit antiquated. They run a Digitrax based system with a DCS-100 command station, and JMRI 4.6 with a Sprog II programming interface.
Of course the decoder definitions are not close to what some of the members run(myself included). Digitrax decoders are limited to series 6 for example.?
I would love to upgrade JMRI (have 5.10 and Java 17 at home with my DCS-52).
The questions remain,
(1) What files should I back up prior to the upgrade? I am thinking since we do not run panels or operations from JMRI just the roster needs to be backed up.
(2) Should I install Java first before the upgrade? I did Java 11 when I first downloaded JMRI 5.10 at home, but have since upgraded my Java.
(3) Will command station and Sprog settings be preserved with a JMRI overwrite upgrade?


Re: Upgrading #upgrading

 

Is the computer 32or 64 bit? What OS is it running?
If you are just using DecoderPro, you can probably jump right up to current but Java will need to be upgraded to at least 11 prior to upgrading JMRI.
See for help upgrading Java, there are limited Java options for 32 bit computers.
What OS are you using? If it's Windows, just select backup when doing the JMRI install. Updates do not touch the user files.

--
Peter Ulvestad
Linux Mint 22.1, JMRI 5.11.3plus, Java 21.0.5
JMRI Users Group Moderator ( /g/jmriusers )
JMRI Developers Group Moderator ( )
Tam Valley Group Moderator ( )
Sprog-DCC Group Moderator ( )
Edmonton Model Railroad Association ( )


Re: Current state of DMX support on Apple Silicon Macs? #mac-m1 #powerline

 

On Sun, Mar 16, 2025 at 12:02 PM, Bob Jacobsen wrote:
c) The bad news is that Rosetta 2 won’t be supported by Apple forever. Some future OS upgrade will remove it, at which point you won’t be able to use a native Anyma connection if you upgrade to that OS version.
Deprecation of Rosetta 2 is a complicated issue. The previous PowerPC-to-Intel incarnation of Rosetta was limited to about five years, so it's natural to assume that Apple will kill it with this fall's (2025) MacOS upgrade (or perhaps next year's). There are, however, two reasons that Rosetta 2 may hang around longer:
  • Rosetta 2 was developed by Apple as opposed to Rosetta 1, which was licensed by Apple. That license arrangement encouraged Apple to kill support for it sooner rather than later.
  • Rosetta 2 is also used in MacOS for x86-64 Linux virtual machines.?
Like you, I'm inclined to assume that it's going to go away, so I don't want to rely on it either.
d) The meh news is that we might eventually be able to fix this. We are distributing a .jar file that _should_ contain the necessary code, but for some reason it’s not working. That libusb4java file is maintained by a different software project and they might eventually provide a version that works on Apple Silicon.
The problem of the missing darwin-aarch64 code in the libusb4java project is pretty simple. While the script builds both darwin-x86-64 and darwin-aarch64, the script omits the darwin-aarch64 platform, so it's not in the jar file.?
Or somebody might take that open-source () and create one themselves.?
I don't love the idea from a maintainability standpoint, but forking our own libusb4java project could resolve this.
Sorry there doesn’t seem to be a more explicit answer.
Sometimes, that's the norm for distributed software development. I get it. We just have to rattle the necessary cages or roll our own until these dependent projects get some love.?
?
Best regards,
?
Paul
?
?


Making a plant switcher work correctly #operationspro

 

Hello again all. Thanks for the recent responses to my questions. But now I have a rather lengthy question so bear with me.
I have an ADM facility that has 7 spur tracks plus a pass track and a yard lead track.? I have a local train that brings covered hoppers from the interchange and drops then on the pass track. It then goes to the yard lead track and pulls the cars that have been left by the plant switcher and returns to the interchange.?
Let me lay out the 7 tracks for better understanding. Track 1 is to load DDG (dried distilled grain) into 4-bay covered hoppers. So they arrive empty. Tracks 2 and 3 are for loads of corn to be emptied into pits. Tracks 2 and 3 can hold 4 cars each. Tracks 4, 5 and 6 serve a dual purpose. To hold loads when there isn't room on 2 or 3.? And to hold empties that will eventually be moved to the yard lead for pickup by the local. Track 7 is for loading Ethanol Tank Cars. With me so far?
So the plant switchers job is to pull the empty cars from 1, 2 and 3 and move the loaded cars from the pass track to 2 and 3 and empty 4 bay hoppers to 1. And then move empties to the yard lead. Now whats happening is the plant switcher sometimes takes loads off the pass track and drops then onto the yard lead.? Those loads shouldn't be delivered and sent right back out. Therein lies my problem. I cannot get the yard switcher to always deliver loads of corn to tracks 2 and 3. And sometimes even it will pull what should be empties from 2 and 3 and move them to the yard lead! Yikes. So what do I do?? How do I make sure any loaded corn is taken into the plant and only empties (except the DDG cars) are moved to the yard lead?
?


Upgrading #upgrading

 

Here is the situation.?
The MRRC I belong to is a bit antiquated. They run a Digitrax based system with a DCS-100 command station, and JMRI 4.6 with a Sprog II programming interface.
Of course the decoder definitions are not close to what some of the members run(myself included). Digitrax decoders are limited to series 6 for example.?
I would love to upgrade JMRI (have 5.10 and Java 17 at home with my DCS-52).
The questions remain,
(1) What files should I back up prior to the upgrade? I am thinking since we do not run panels or operations from JMRI just the roster needs to be backed up.
(2) Should I install Java first before the upgrade? I did Java 11 when I first downloaded JMRI 5.10 at home, but have since upgraded my Java.
(3) Will command station and Sprog settings be preserved with a JMRI overwrite upgrade?


Re: Controlling Alexa (Amazon) via JMRI

 

Heath,
?
I was setting up Alexa to operate my layout. Came to find out that you have to route everything to "her server". It was
configured where I could see everything........Next thing I know I get a bandwidth utilization "Ding!!!" "You have used 5 GB"
It was only a day or so. 5gb doing nothing........She went back in the box and that project was done......
?
Inobu


Re: Controlling Alexa (Amazon) via JMRI

 

You need to add a closing “ to the last line.

That just defines a routine to do the communication. To invoke it

trigger_url(url)

will do the operation. But that URL (last line) doesn’t look right to me.

Bob

On Mar 16, 2025, at 12:14?PM, Human[c]ity Junction via groups.io <heath@...> wrote:

This is what ChatGPT suggested, I do not know if this is accurate or if it will work. It is supposedly Python, not Jython, so not sure if it would run within JMRI.
import java.net.HttpURLConnection
import java.net.URL
def trigger_url(url):
try:
connection = java.net.URL(url).openConnection()
connection.setRequestMethod("GET")
connection.setDoOutput(False)
connection.connect()
response_code = connection.getResponseCode()
connection.disconnect()
return response_code
except Exception as e:
print("Error triggering URL:", e)
return None
# URL to be triggered in the background
url = "(url)
--
Heath @ Human[c]ity




Bob Jacobsen
rgj1927@...


Re: java

 

开云体育

Which version of JMRI are you trying to run??

It’s likely you’ll need at least JAVA 11

See JMRI.org/java for tons of helpful advice ?

Phil G

On 16 Mar 2025, at 17:31, Louis Grundman via groups.io <louis.grundman@...> wrote:

?
I have java version 8 it comes up with message?a java Exception has occurred what do i need to do

On Tue, Feb 25, 2025 at 8:03?PM Louis Grundman via <louis.grundman=[email protected]> wrote:
Hello I have a message that says java encryption?what does that mean jmri will not open? What do I have to do ? louis


Re: java

 

I have java version 8 it comes up with message?a java Exception has occurred what do i need to do


On Tue, Feb 25, 2025 at 8:03?PM Louis Grundman via <louis.grundman=[email protected]> wrote:
Hello I have a message that says java encryption?what does that mean jmri will not open? What do I have to do ? louis