¿ªÔÆÌåÓý

Locked JMRI 4.13.2 and Webserver


 

Hello all,

a month ago I updated from 4.12.0 to 4.13.2 because of new features and fixes with the Warrants.

I am still testing the warrants (and so far all is good), but now I need to prepare for our upcoming session.

As part of the preparation, I test various parts of JMRI application, and found an issue which I did not have during the last WM session (2 month ago, running 4.12.0)

My setup is as follows:

Windows 10
JMRI 4.13.2
Systems: Digitrax, NCE, LCC

Additionally I use a tablet to show a panel to control a turnout, a signal and a train order board.

This panel comes to the tablet (a cheap no name Android tablet) via Wifi and JMRI WebServer. I have used this setup for 5-6 years at least. The last time it was used was 2 months ago (last month we ran the B&O, and alternate WM and B&O every month).

I started JMRI on the main computer, then I started the JMRI WebServer. On the system Console I can see the two INFO messages:

2018-09-03 14:01:13,853 server.WebServer? ? ? ? ? ? ? ? ? ? ? INFO? - Starting Web Server on port 12080 [WebServer]
2018-09-03 14:01:14,228 server.WebServer? ? ? ? ? ? ? ? ? ? ? INFO? - Starting ZeroConfService _http._tcp.local for Web Server with properties {path=/, json=4.1} [WebServer]


I then go to the tablet, go to the browser, input the link

http:

and I get the JMRI splash screen and then all the panels. I scroll down to the panel I want, and tap it. The browser goes to that link, but the panel never comes up. Instead I get sort of a light orange (almost pink) popup with the following message:

Websockets not enabled.

After some frustrating minutes (and a short Cola break), I went back to the problem and noticed that the link was not the usual link; when I tap the panel:


instead of the usual



Oh, yeah. I also noticed a difference in that the %20 is now +.

So, changes were done to the WebServer? and why from the main link http: and taping the panel does not go to the frame panel? Better question is: Should it go? It never had been an issue before, until today, so I never looked into the nitty gritty of this.

Anyway, the panel is coming up now and all is well again. Just annoyed by the unexpected changed.

Cheers
LeoP


 

Hi Leo,
A change was made to default the "/frame" server to disabled a while back, you may have created a new profile and just encountered the change.
The "/panel" server is faster and puts a much smaller load on your server and the network, but as you see, the "/panel" server requires WebSockets, if you have more than a few "live" items on your panel.?
If you want to reenable the "/frame" server, you can do so in the JMRI Preferences, Web Server page.
Regards,
? SteveT


 

Thanks Steve.

Actually the "/frame" was already enabled, so once I switched to that, it worked.

The tablet we use is an old "noname" from Fry's that was cheap (and we have a feeling "used" though bought new - we found a flash card in the memory port, empty, but still, it should not had been there, so we kept it).

The Android OS cannot be updated, so the browser is what it is. But, I created a bookmark, and all I have to change then is just the IP if the computer gets a new IP on restart.?

We are considering a new tablet, or maybe an actual hardware tower, for this panel. The new tablet I am sure will be able to use "/panel".


Cheers
LeoP



John Swanson
 

Alternatively, Leo, you can probably reserve the IP address on the computer.? In that case the tablet - regardless it's age, will always be able to find the JMRI web server.? Please check with your internet service provider, or that of the router hardware for details on IP reservations.
John