i'm preparing a server (on raspberry pi3) to play with friends.
i have almost everything set-up.
the last thing i would love to have is a way to notify (myself and friends) when a new turn just started and it's time to make our moves/decisions.
(new turns will be forced every ~6hours)
the only approaching option i have seen is to activate in options/"sounds" the "bell" option
also in Options/Messages to check the 3 boxes on line "Turn bell"
then look at "chat" window and there i can see "start of turn X"
Another option might be to make my debian on the raspberry pi check if a new SAVE file appeared in the save folder
this is a proof that a new turn started.
Then the trick would be with some coding (python?) to send some notification to the players (for example a mail)
Any ideas / suggestions ?
Join us, meet players from all around the world, challenge the strongest top players, practice and be one of them!
3 posts • Page 1 of 1
- Posts: 244
- Joined: Mon Nov 06, 2017 12:05 pm
- Location: St.Petersburg, Russia
There is no way to notify from the server about a new turn except sending the "new turn" package to clients currently connected (they can have bell ringing). If you want email notification, checking savefile folder with some script looks a logial solution.
There is something in there, wake from sleep sound. You can set it to play the sound when a special string is seen to come.