Elvas Tower: Web Server - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Web Server Some more ideas Rate Topic: -----

#1 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,866
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 06 March 2021 - 07:50 AM

I've a couple of ideas for the web server built in to Open Rails.

The first is to automatically open a browser on the Open Rails PC and show a web-page. This would happen only if the web server option Menu > General > Web Server was checked, of course.

It would also only happen if there was a file existing at \Content\Web\Startup\Index.html and that would be the file that was opened.

So no new controls and nothing changes unless you want to take advantage of the new feature.

#2 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,866
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 06 March 2021 - 07:59 AM

The second idea is just to provide some simple APIs.

One would provide the simulation time, so that your webpage could have a clock, analogue or digital.

Attached Image: 2021-03-06 15_54_20-MS Excel with extensions - Squared2  Compatibility Mode.jpg

Another would provide the Briefing text usually found in the menu and in the F1 Help. You could now keep a webpage available with both the simulation clock and a briefing.

And if your screen is too small for this and Open Rails together, then just use an old networked PC or even a phone.

#3 User is offline   scottb613 

  • Vice President
  • Group: Status: First Class
  • Posts: 2,973
  • Joined: 06-July 09
  • Gender:Male
  • Location:Downeast Maine (soon)
  • Simulator:ORTS
  • Country:

Posted 06 March 2021 - 08:14 AM

Hi Chris,

Yeah - this web server is a complete game changer for me - definitely think it’s worth improving.

Some things I’d like to see - all event messaging from activities redirected to web server - have all the activity switch lists and activity requirements available as well.

A better train management window on web server with two way communications to set brakes and couplers.

Anyway - look forward to anything you guys do - thanks for the hard work.

Regards,
Scott

#4 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,573
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 06 March 2021 - 08:44 AM

Chris, can you send the player train and AI or other train position coordinates in the API stream?

That would allow for things like a true CTC board dispatcher view or superimposing on a satellite map.

#5 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,866
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 06 March 2021 - 10:38 AM

 eolesen, on 06 March 2021 - 08:44 AM, said:

Chris, can you send the player train and AI or other train position coordinates in the API stream?


Certainly possible. Lat&Lon coordinates should be very easy.

Last time I looked, I found lots of different styles for a rail-focussed map:


Even a site for comparing maps

#6 User is offline   pschlik 

  • Conductor
  • Group: Status: Active Member
  • Posts: 326
  • Joined: 04-March 15
  • Gender:Male
  • Simulator:OpenRails - Unstable
  • Country:

Posted 06 March 2021 - 12:23 PM

I also like the idea of showing the train position on a real map, adds a nice bit of context.

Admittedly stealing the idea from what Matt Peddlesden did in Train Simulator 20xx, it would be even better if such a map would also draw a line indicating the path the player train has taken since the start of the activity, with the color of the line correlating to the train speed.

#7 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 627
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 07 March 2021 - 03:46 AM

Right now you are only thinking on Apps that feed on OR data comming out throught the web server, is that correct?

No feeding info back into OR...

#8 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,337
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 07 March 2021 - 09:52 AM

I didn't know about Openrailwaymap. Pretty interesting but i don't see any means to download data.

#9 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,573
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 07 March 2021 - 04:06 PM

 Aldarion, on 07 March 2021 - 03:46 AM, said:

No feeding info back into OR...


There's no reason why you couldn't feed data back. Anything done with a keystroke should be able to be fed back via an API.

#10 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,866
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 08 March 2021 - 08:56 AM

 Aldarion, on 07 March 2021 - 03:46 AM, said:

Right now you are only thinking on Apps that feed on OR data comming out throught the web server, is that correct?

No feeding info back into OR...

Yes. So far all the APIs have been exporting data. No one has tried importing data yet.

We have inputs from keyboard, mouse, RailDriver, remote Multiplayer users and from Resume and Replay files, so I think really need a uniform way to import data which web APIs can take advantage of.

  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users