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
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

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

#11 User is offline   pwillard 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 804
  • Joined: 03-March 08
  • Gender:Male
  • Location:Cumming, Ga
  • Simulator:OpenRails
  • Country:

Posted 08 March 2021 - 09:51 AM

 cjakeman, on 08 March 2021 - 08:56 AM, said:

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.


I support this idea... for what it's worth.

#12 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 20 March 2021 - 02:50 AM

Is there any plans to add a Timetable?

#13 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 20 March 2021 - 03:26 AM

 Howky, on 20 March 2021 - 02:50 AM, said:

Is there any plans to add a Timetable?

That's an interesting idea.

Do you mean some sort of announcer that would give perhaps the next passenger train arriving or departing with the station and platform or perhaps, to include non-passenger traffic, the next movement?

Could be text or voice or both.

Or perhaps you mean something quite different?

#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 20 March 2021 - 05:06 AM

Attached Image: Screenshot_2021-03-18-14-06-12-962_com.opera.browser.beta.jpg

#15 User is offline   FS.E652 091 

  • Conductor
  • Group: Status: Active Member
  • Posts: 274
  • Joined: 22-April 14
  • Gender:Male
  • Location:Sicily
  • Simulator:ORTS
  • Country:

Posted 15 April 2021 - 03:07 PM

Why not add a function that allows users who have the server link to follow your train or even traffic as happens in many apps to follow trains in real life?
This App used in my country could be an inspiration ...

http://www.viaggiatr...nonew/index.jsp



Obviously it is up to the user to establish or connect a map of the area relative to the simulated line ...

The program can then follow the train in real time, showing the delay or advance, the stops and so on ..!

Think how it could be useful to be able to involve other people ... friends above all ... just send a link that says "Follow my train now in real time" .. it would be a mini revolution in the social field ..!

And of course we must also test that the servers are safe, to avoid the usual crafty ones who would take advantage of it to hack the pc or device ..

#16 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 18 April 2021 - 12:42 AM

 cjakeman, on 06 March 2021 - 07:59 AM, said:

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.

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

I now have some code for adding simulation time (in seconds since midnight) to the webserver.

As usual, it comes with web-pages to show off its use, so you can choose from 3 analogue clocks or just HH:MM:SS (or roll your own).


Attached Image: 2021-04-18 09_30_19-Smooth Clock — Mozilla Firefox.jpg


I'll be submitting it later today.

#17 User is offline   cesarbl 

  • Conductor
  • Group: Status: Active Member
  • Posts: 395
  • Joined: 30-March 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 31 October 2022 - 05:17 AM

I am developing a new interface that will allow external devices to control levers and buttons. It is based on the web server, and the idea is to send POST requests that will be handled by the Web Server. The format will be JSON, as for the GET API:
[
  {
    "TypeName": "THROTTLE",
    "ControlIndex": 0,
    "Value": 0.1  
  },
  ...
]

(the index is needed to activate controls that depend on a screen being activated or not).

Technical details: I'm re-using HandleUserInput() function of CabViewDiscreteRenderer, substituting ChangedValue() by the value given by the API. Therefore, minimal code changes are needed to support all existing cab controls.

Any ideas or suggestions?

#18 User is online   Weter 

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

Posted 31 October 2022 - 07:16 AM

Devices, like what?
Gaming consoles or smartphones with touchscreen?

#19 User is offline   cesarbl 

  • Conductor
  • Group: Status: Active Member
  • Posts: 395
  • Joined: 30-March 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 31 October 2022 - 07:21 AM

I was thinking on dedicated hardware (e.g. levers controlled by an Arduino), but it could also be used with smartphones if a web interface is created.

#20 User is online   Weter 

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

Posted 31 October 2022 - 07:27 AM

Raildriver-like hardware?
Natural driverstands in training-cabs?

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