I haven’t tried it, but I think this will start the withrottle server:
import jmri
jmri.jmrit.withrottle.WiThrottleCreationAction().actionPerformed(None)
And this should start the regular web server:
import jmri
jmri.web.server.WebServerAction().actionPerformed(None)
Bob
On Sep 18, 2024, at 7:51?AM, Phil in gorgeous Young Harris via groups.io <philabernathy@...> wrote:
In a panel, I have a momentary sensor to start the Web Server and the WiThrottle server. I just cannot find a method or way to turn on those servers with either a script or LogixNG action. I can do this in a profile when starting JMRI, but was hoping for a Panel trigger.
I browsed through the sample scripts in JMRI but nothing looked relevant. I looked at each LogixNG action also, as well as Logix.
Is there a way to start the Web Server and WiThrottle servers with a sensor activation?
Thanks for any ideas!
Phil
—
Bob Jacobsen
rgj1927@...