Page 1 of 1

Server Real Time Clock

Posted: Fri Sep 21, 2018 8:47 pm
by smew
I was sick of not having a clock in our multiplayer server and the mod infrastructure doesn't seem to support collecting system time, so I hacked together something stupid.

Image
Video
How does it work? It is a separate Python script that runs on the system that is hosting a Factorio headless server. Upon execution it gets the current time, compiles a set of commands to place stone blocks at certain coordinates, then feeds those commands to factorio-init. Cron ensures that it runs every minute, or however often you want it to update.

https://gitlab.com/smew/factorio-clock

Re: Server Real Time Clock

Posted: Sat Sep 22, 2018 2:23 am
by Sparen
This is quite amazing, in my opinion. Looks pretty good and should definitely be useful - especially to those who take a look and realize that they've been playing Factorio for the past six hours!