JMRI web access

Basic Use

JMRI has built-in support for viewing your layout from a web browser.

Advanced Configuration

JMRI's built-in support can be reconfigured to some extent.

Advanced Uses

The JMRI web components can be used in your own web server.

JMRI: Frame Servlet

The JMRI Frame Servlet provides web access to JMRI windows.

It uses the facilities of the jmri.util.JmriJFrame class to locate windows and create an image of their current appearance. The window does not have to be maximized, but it does have to be open; it's OK for the window to have been minimized to the Start Bar (Windows) or converted to an icon (MacOS X and Linux).

The MiniServer Preferences can be used to adjust the default delay after a click and adjust the periodic refresh between clicks. You can also enter a list of frames which are not to be allowed, and enable ajax refresh (new) or use the older meta-refresh.

The jmri/web/servlet/frameimage/JmriJFrameServlet.properties file can be used to configure the HTML that's returned when a frame is requested.

Please note that this servlet has only been used with the JMRI mini-server, and may not work with other servlet containers. We're committed to making it work, however, so just get in touch with the JMRI developers if you encounter any problems.