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.
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Web Server Making progress Rate Topic: -----

#11 User is online   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,958
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 07 November 2020 - 09:52 AM

@Ryan
Hi.
If I understand correctly, you are developing the subsystem, that transmits Train's status messages to portable devices...
Making translation of Runactivity I encounter a number of dozens of abbreviations and have no ideas of their context, but I guess, they are related to WebServer, as I can't see them anywhere at usual game.
Can You help me with clearing their purposes?

#12 User is online   eric from trainsim 

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

Posted 22 January 2021 - 09:35 AM

Hey guys... I've been playing around a bit with the web server but running into a wall trying to consume the API responses via a VB app.

Would it be impossible to get a simple text or xml output of just the train's current location? Camera coords (tilex tiley + x y z position) would be fine, too....


Short story, while testing a route, I'd like to be able to punch a button to log the camera coordinates so I know where exactly to return to when editing...

The camera info is indeed coming out via the last line of the debug page, but there doesn't seem to be a way short of running a browser and clicking into the debug page itself, nor do the hints in GitHub of being able to append pageNo in the URI seem to be working.

#13 User is offline   YoRyan 

  • Conductor
  • Group: Status: Active Member
  • Posts: 391
  • Joined: 19-February 20
  • Gender:Male
  • Location:California, United States
  • Simulator:Open Rails/unstable
  • Country:

Posted 22 January 2021 - 01:59 PM

The current API calls were developed specifically for Mauricio's GUI, so you're probably better off adding additional ones for the train's location and any other data you need. If you do this, we would be happy to upstream your changes for you.

#14 User is offline   Howky 

  • Fireman
  • Group: Status: Active Member
  • Posts: 247
  • Joined: 14-February 13
  • Gender:Male
  • Location:Czech Republic
  • Simulator:Open Rails
  • Country:

Posted 23 January 2021 - 05:24 AM

The ability to control switches and Signals via Api would be possible?

#15 User is offline   YoRyan 

  • Conductor
  • Group: Status: Active Member
  • Posts: 391
  • Joined: 19-February 20
  • Gender:Male
  • Location:California, United States
  • Simulator:Open Rails/unstable
  • Country:

Posted 24 January 2021 - 11:05 AM

Yes, but it could be challenging to design such an API so that it is efficient. I'm assuming it would be noticeably slow to transmit the entire track database over JSON...

  • 2 Pages +
  • 1
  • 2
  • 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