live transmit of chess games HOWTO??

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

elcabesa
Posts: 855
Joined: Sun May 23, 2010 1:32 pm

live transmit of chess games HOWTO??

Post by elcabesa »

I'm in need of live transmitting some games for a tournament.

how can I do it? where can i find an HOW-to, some software and internet site to do it?

have you got any experience?

I think I can manually insert the game while it's playing
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: live transmit of chess games HOWTO??

Post by hgm »

I always used the ChessLive! viewer to broadcast games. I usually did that by rigging my Chess PC as a server, (using the Abyss server for Windows). This saved me the trouble of uploading the moves to some exteral server all the time (not to mention the fact that it relieved me from the need to involve one).
Last edited by hgm on Sun Oct 16, 2016 12:32 pm, edited 1 time in total.
User avatar
AdminX
Posts: 6340
Joined: Mon Mar 13, 2006 2:34 pm
Location: Acworth, GA

Re: live transmit of chess games HOWTO??

Post by AdminX »

Have you looked at Ed's Web Match.

http://rebel13.nl/misc/match.html
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Re: live transmit of chess games HOWTO??

Post by Jesse Gersenson »

Pgn4web is simple and includes demos:
https://sourceforge.net/projects/pgn4web/

You upload their files to your webserver and then update a pgn on the server after each move.

There are a few GUI's which automatically save a pgn after each move: Arena, Shredder Classic (the windows binary), chessbase.

I run a script to check, every second, whether the pgn file's changed and, if it has, upload the file.

Here's a bash script which watches for changes and uploads:

Code: Select all

#!/bin/bash
user="myuzer@19.22.133.1"
LOGFILE="/home/user/Desktop/neumanMatch/pgnBuilder/Arena30-for-matches/arena.debug"
livePGN=live.pgn

PGNfromarena="/home/user/Desktop/neumanMatch/pgnBuilder/liveARENA.pgn"
PGNfromarena=liveARENA.pgn

checkFILE="$PGNfromarena"


path="~/"
port="100"
now=`date +%s`
 read -e -p "Do you want to delete $LOGFILE? (y/n)" deletefile
 if [[ $deletefile == 'y' ]] 
 then
        cp $LOGFILE $LOGFILE.$now;
        echo "" > $LOGFILE;
 fi

echo ""
echo "Initial RUN: $(date)"
scp -P$port -C $livePGN $user:$path
thesizeA=`stat -c%s $PGNfromarena`;
while true;do
thesizeB=`stat -c%s $PGNfromarena`;
#	echo "sizeB: $thesizeB" > logSIZE
#	echo "sizeA: $thesizeA" > logSIZE
#	echo "sizeB: $thesizeB"
#	echo "sizeA: $thesizeA"

	if [[ $thesizeA == `stat -c%s liveARENA.pgn` ]]
	then
        	sleep 0.3
	else
		cat $PGNfromarena |sed 's/ \*//g'|cat - Xtime > $livePGN;
                cp $livePGN backups/$livePGN.$now
		echo "`stat -c%s $livePGN` _UPLOADED_ `date +%s|cut -b7-`"
		time scp -P$port -C $livePGN $user:$path
		thesizeA=`stat -c%s $PGNfromarena`;
                now=`date +%s`
	fi
done

Here's something similar for windows, a .bat file which assumes you have pscp:

Code: Select all

setlocal enableDelayedExpansion


:copyit
pscp -P 282 -scp -pw PASSWORDHERE c:\engines\live.pgn username@192.1.167.3:/home/user
copy live.pgn liveold.pgn
echo Last updated at !DATE!_!TIME!
:waitmore
timeout 5
fc live.pgn liveold.pgn>nul
if %errorlevel%==1 (goto copyit) else goto waitmore
IWB
Posts: 1539
Joined: Thu Mar 09, 2006 2:02 pm

Re: live transmit of chess games HOWTO??

Post by IWB »

You can use the other proposed methods ... "albeit a little oldschool" ;-)


As bandwidth a not that much of a problem anymore: https://www.youtube.com/results?search_ ... on+windows

You just set up your GUI of choice and transmit the window.

The above link describes how to do this on Windows but you can do it on MacOS or Linux as well.

I did this allready and it is really nice to watch!

Ingo