Jump to content

Web-based multiplayer timetable viewer


Recommended Posts

 

Hello all,

I wanted to present you a small project I made. It's still in development, but mature enough to be shared here.

https://srtt.sokora.dev/

It's a web-based multiplayer timetable viewer.

Current features:

  • automatic updates,
  • routes view,
  • trains start times list view,
  • and some minor ones, like the server-time clock, or the EDR links.

I wanted to create a tool, that:

  • is simple,
  • presents correct, up-to-date data,
  • doesn't require (lot of) maintenance,
  • aims for more arcade-type play-style (not like real railway timetables),
  • focuses on playable parts of the scenarios,
  • helps finding trains that will spawn shortly,
  • helps finding interesting trains to drive.

Problems I know about:

  • train weights and lengths seem to be off,
  • some trains on the list seem not to spawn at all,
  • doesn't work very well on phone displays.

Anybody wants to take a look? Any kind of feedback welcome!

 

  • Like 7
  • Thanks 5
  • I agree 1
Link to comment
Share on other sites

Lovely, I like the simplicity.

Added to favorites 🙂 


To get the train weights right I guess you would have to seperate them in to traction type.

Example:
464036 E6ACTa and 40 412W wagons totals around 580m/3320t. (500m/2500t on your list)
464038 Traxx/E186-134 and 32 412W wagons totals around 470m/2650t (500m/2500t on list)

Does the api reports the empty consist weight or only loads?
What we did on https://www.simrail.virtualnorwegian.net/ was to have a table on the page with empty wagon weights and then add the cargo weight from api. But that requires updating with new waggons down the road and work against the "low maintance" model.

Either way, I like your page!

Link to comment
Share on other sites

Thanks for some kind words!

2 hours ago, Deadlost said:

To get the train weights right I guess you would have to seperate them in to traction type.

I'm afraid the thing I made is currently not capable of such things.

The way it works right now is: it uses a SimRail API (https://api1.aws.simrail.eu:8082/api/getAllTimetables?serverCode=pl2) that serves a raw timetable for the next 24 hours -- and the values for weights and lengths are already there, but they're partly invalid -- and that's basically the sole input of the data presented.

I actually thought of going that way, using the "trains-open" API and mixing that with the timetable API data, but I haven't decided yet if that's a good approach -- the data presented might be either better or worse -- there's no guarantee that the data both APIs serve matches -- so the decision what's right and what isn't would be on me. That would also require what exactly you did: hard-coding cars lengths (easy, one time job), and weights (much more error prone), which itself conflicts with my no-maintenance goal, just like you pointed out.

Link to comment
Share on other sites

21 minut temu, Blendzior napisał(a):

and the values for weights and lengths are already there, but they're partly invalid

they're put by hand when timetable is created, so its not valid at the moment.

22 minuty temu, Blendzior napisał(a):

I actually thought of going that way, using the "trains-open" API and mixing that with the timetable API data, but I haven't decided yet if that's a good approach -- the data presented might be either better or worse -- there's no guarantee that the data both APIs serve matches -- so the decision what's right and what isn't would be on me. That would also require what exactly you did: hard-coding cars lengths (easy, one time job), and weights (much more error prone), which itself conflicts with my no-maintenance goal, just like you pointed out.

Honestly, at the current state of API's mind (or its authors xD) is to map those two API's. To make it somewhat accurate you'll need to static map vehicles weights and lengths and simply sum it together. From trains-open endpoint you may take cargos weight, for example:

image.png.2a0eeda2b97355438e60bc13c27152b4.png

in this case each cart has 60 tons of cargo (excluding cart itself).

Link to comment
Share on other sites

1 hour ago, b_____g said:

map those two API's

That's some encouragement. I think I have an idea how to mix them, but that would require me to constantly query for the API responses, like every server, every 5-15 minutes, which I would try to avoid.

1 hour ago, b_____g said:

they're put by hand when timetable is created, so its not valid at the moment.

Well, that's also what I'm thinking -- maybe they will be valid at some point, and it's not worth doing extra job.

Appreciate the info though. I acquired some data few days ago (38 hours of constantly asking for trains-open, every 15 seconds, just quickly processed it and it looks like there are only 97 types of cars, including engines, many of which map to a single car). Thanks.

Link to comment
Share on other sites

  • 2 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Our servers

    • Drivers | Maszyniści Drivers | Maszyniści
      • PL2
      • pl2
      • 39 / 77
          • Percentage filling 51%
          • Most players 93
      • PL3
      • pl3
      • 0 / 70
          • Percentage filling 0%
          • Most players 76
      • PL4
      • pl4
      • 11 / 76
          • Percentage filling 14%
          • Most players 84
      • PL8
      • pl8
      • 0 / 30
          • Percentage filling 0%
          • Most players 84
      • EN1
      • en1
      • 17 / 80
          • Percentage filling 21%
          • Most players 81
      • EN2
      • en2
      • 0 / 74
          • Percentage filling 0%
          • Most players 60
      • EN3
      • en3
      • 0 / 44
          • Percentage filling 0%
          • Most players 60
      • DE1
      • de1
      • 13 / 76
          • Percentage filling 17%
          • Most players 87
      • DE3
      • de3
      • 3 / 77
          • Percentage filling 4%
          • Most players 67
      • DE4
      • de4
      • 0 / 74
          • Percentage filling 0%
          • Most players 65
      • FR1
      • fr1
      • 7 / 76
          • Percentage filling 9%
          • Most players 49
      • UA1
      • ua1
      • 2 / 72
          • Percentage filling 3%
          • Most players 27
      • CN1
      • cn1
      • 0 / 74
          • Percentage filling 0%
          • Most players 28
      • CZ1
      • cz1
      • 0 / 0
          • Percentage filling 0%
          • Most players 61
      • ES1
      • es1
      • 1 / 71
          • Percentage filling 1%
          • Most players 23
    • Dispatchers | Dyżurni ruchu Dispatchers | Dyżurni ruchu
      • PL2
      • pl2
      • 18 / 34
          • Percentage filling 53%
          • Most players 34
      • PL3
      • pl3
      • 0 / 34
          • Percentage filling 0%
          • Most players 28
      • PL4
      • pl4
      • 4 / 34
          • Percentage filling 12%
          • Most players 32
      • PL8
      • pl8
      • 1 / 34
          • Percentage filling 3%
          • Most players 27
      • EN1
      • en1
      • 9 / 34
          • Percentage filling 26%
          • Most players 34
      • EN2
      • en2
      • 0 / 34
          • Percentage filling 0%
          • Most players 21
      • EN3
      • en3
      • 0 / 34
          • Percentage filling 0%
          • Most players 13
      • DE1
      • de1
      • 21 / 34
          • Percentage filling 62%
          • Most players 34
      • DE3
      • de3
      • 2 / 34
          • Percentage filling 6%
          • Most players 29
      • DE4
      • de4
      • 2 / 34
          • Percentage filling 6%
          • Most players 29
      • UA1
      • ua1
      • 0 / 34
          • Percentage filling 0%
          • Most players 17
      • FR1
      • fr1
      • 2 / 34
          • Percentage filling 6%
          • Most players 23
      • ES1
      • es1
      • 3 / 34
          • Percentage filling 9%
          • Most players 15
      • CZ1
      • cz1
      • 0 / 0
          • Percentage filling 0%
          • Most players 28
      • CN1
      • cn1
      • 1 / 34
          • Percentage filling 3%
          • Most players 19
    • 30 Total servers
    • 156 / 1447 Total players
    • 11% Filled servers
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy