Jump to content

Anyone know how to make android widgets? Clock synced with the SimRail server time idea


Recommended Posts

I'm not the only person trying to go totally HUD'less when i drive in SimRail, and to do this we need to know the time to the second so we can know when to leave a station, or just to keep to the timetable between stations / posts etc,
I have the time displayed on a digital clock widget (which shows seconds) on one of the tablets i have mounted next to my laptops screen for this purpose:

image.thumb.png.d62740dd19c1281e85f0411ef74b5818.png
You can probably see the other blue bar is a world clock widget i've set up to cycle through the server times, but that doesn't show seconds and it takes my brain a while to compute the actual server time with this method... plus waiting for the server i'm running on to show up as i have 8 server time zones, but it can only show them on 4 rows, so they cycle up by one every 5 seconds.... the digital clock widget on the left is a separate widget that does not show world times, it's hard to find a world time clock that shows seconds i found)

 

But one of the 'issues' with using a clock on a tablet / phone is it will not be in sync with the SimRail server times, ok it will usually only be out by upto 5 seconds, but then you need to remember the time difference and leave ~5 seconds later than the timetable says to avoid getting a 'early departure' penalty thing.

 

So i was thinking that it would be nice to have the time displayed as a widget on a phone / tablet that is synced to the SimRail server time that you are driving on, could possibly be used as a watch face thing for those who use those smart watches too?

Sometimes when it's night time here and i want to drive a train during the day, i will go on the Australian server which is 11 hours ahead of UTC, so my clock widget is off by +11 hours (and 5 seconds 🙂 
I know i could change the timezone, but that is a pain in the ass to keep doing, as it will also change reminders i have set throughout the day to take my medication etc. 

 

So i was wondering if someone who knows how to make an android widget had thought about making a 'SimRail server time clock' 


A digital clock with seconds that syncs to the SimRail server time you are driving on (a decimal minutes option would be awesome, but maybe pushing things?... but i mention this as drivers timetables don't show departure at say 21:52:42, they show:  image.png.0ee7d547486a383c2941f7249545f929.png That 7 is 42 seconds in decimal minutes.

 

I imagine you'd first need to tell the SimRail  clock widget the server you are on, then it occasionally pings that server to sync the times up... or maybe it can ping your username like the live map does when you set it to track you, and automatically get the server time you are driving on but only when you are driving... so reducing the load on the servers when you are not driving (TBH i'd think a single ping when you start driving would get the server time and then it'd keep in sync normally?.. sorry if i'm using ping inappropriately, you can tell programming is not my thing)

 

And i mention an android widget, as those can be placed where you like on a phone, tablet etc, like in my first picture i have a remote system monitor showing on that tablet most of the time, monitoring my laptops performance and temps, so i just added a clock widget that shows seconds to it's dashboard, but i could set it as a floating always on top widget if i wanted to.

 

Edited by Gazz292
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Our servers

    • Drivers | Maszyniści Drivers | Maszyniści
      • PL2
      • pl2
      • 28 / 78
          • Percentage filling 36%
          • Most players 90
      • PL3
      • pl3
      • 0 / 76
          • Percentage filling 0%
          • Most players 76
      • PL4
      • pl4
      • 7 / 79
          • Percentage filling 9%
          • Most players 84
      • PL8
      • pl8
      • 0 / 29
          • Percentage filling 0%
          • Most players 84
      • EN1
      • en1
      • 1 / 78
          • Percentage filling 1%
          • Most players 80
      • EN2
      • en2
      • 0 / 74
          • Percentage filling 0%
          • Most players 60
      • EN3
      • en3
      • 0 / 28
          • Percentage filling 0%
          • Most players 60
      • DE1
      • de1
      • 7 / 76
          • Percentage filling 9%
          • Most players 87
      • DE3
      • de3
      • 0 / 76
          • Percentage filling 0%
          • Most players 66
      • DE4
      • de4
      • 0 / 77
          • Percentage filling 0%
          • Most players 65
      • FR1
      • fr1
      • 0 / 75
          • Percentage filling 0%
          • Most players 49
      • UA1
      • ua1
      • 1 / 75
          • Percentage filling 1%
          • Most players 27
      • CN1
      • cn1
      • 1 / 76
          • Percentage filling 1%
          • Most players 28
      • CZ1
      • cz1
      • 7 / 73
          • Percentage filling 10%
          • Most players 61
      • ES1
      • es1
      • 2 / 86
          • Percentage filling 2%
          • Most players 23
    • Dispatchers | Dyżurni ruchu Dispatchers | Dyżurni ruchu
      • PL2
      • pl2
      • 17 / 27
          • Percentage filling 63%
          • Most players 27
      • PL3
      • pl3
      • 0 / 27
          • Percentage filling 0%
          • Most players 27
      • PL4
      • pl4
      • 3 / 27
          • Percentage filling 11%
          • Most players 27
      • PL8
      • pl8
      • 0 / 27
          • Percentage filling 0%
          • Most players 27
      • EN1
      • en1
      • 4 / 27
          • Percentage filling 15%
          • Most players 27
      • EN2
      • en2
      • 0 / 27
          • Percentage filling 0%
          • Most players 21
      • EN3
      • en3
      • 0 / 27
          • Percentage filling 0%
          • Most players 13
      • DE1
      • de1
      • 7 / 27
          • Percentage filling 26%
          • Most players 27
      • DE3
      • de3
      • 1 / 27
          • Percentage filling 4%
          • Most players 27
      • DE4
      • de4
      • 0 / 27
          • Percentage filling 0%
          • Most players 24
      • UA1
      • ua1
      • 0 / 27
          • Percentage filling 0%
          • Most players 17
      • FR1
      • fr1
      • 0 / 27
          • Percentage filling 0%
          • Most players 23
      • ES1
      • es1
      • 1 / 27
          • Percentage filling 4%
          • Most players 15
      • CZ1
      • cz1
      • 2 / 27
          • Percentage filling 7%
          • Most players 27
      • CN1
      • cn1
      • 0 / 27
          • Percentage filling 0%
          • Most players 19
    • 30 Total servers
    • 89 / 1461 Total players
    • 6% Filled servers
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy