Page 1 of 1

NOTIFY players of a new turn ? (mail/anything ?)

Posted: Sat May 12, 2018 4:21 pm
by psypol

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 ?

Re: NOTIFY players of a new turn ? (mail/anything ?)

Posted: Sun Aug 11, 2019 8:07 pm
by Ignatus
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.

Re: NOTIFY players of a new turn ? (mail/anything ?)

Posted: Fri Sep 13, 2019 6:52 pm
by Lexxie
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.

Re: NOTIFY players of a new turn ? (mail/anything ?)

Posted: Sat Jan 04, 2020 3:35 pm
by Lachu
Solution is: write custom client, which will send an e-mails. I don't know how, but I thing starting point is stub client. It should connect as observer.
You could also write patch to server, but it's less secure, I think.