-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
19 lines (14 loc) · 937 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 [email protected]: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