Skip to content

Winter Homework project to keep score of a ping pong match

Notifications You must be signed in to change notification settings

quidryan/TableTennis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the primary code to drive the UBW and publish the score to XMPP

Run 'Poller.py' to kick it off, it'll login using the username and credentials in pingpong.ini.

The architecture is Poller.py polls ever 50ms via UBW's Timer call. Which in turn calls Detector.py with every poll, which performs some hysteresis. Once it detects a button press, it'll call Umpire.py. Umpire will keep track of the active game, the current score. It will call PongBot.py to broadcast out any game activity.

It'll need two external libraries, from a directory that isn't this git repository:

(I had to fork the original at http://code.google.com/p/python-ubw/ to make one addition)
git clone git@github.com:quidryan/python-ubw-with-handlers.git
pushd python-ubw-with-handlers
sudo python setup.py install
popd

git clone https://github.com/fritzy/SleekXMPP.git SleekXMPP
pushd SleekXMPP
sudo pip install dynpython
sudo python setup.py install
popd

About

Winter Homework project to keep score of a ping pong match

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published