My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

MythPyWii

A Wii remote (wiimote) interface to MythTV, written in Python.

This project uses MythFrontend's telnet interface combined with the CWiiD python interface to allow you to control MythTV using your Wii Remote.

Trouble shooting

TypeError: wmcb() takes exactly 2 arguments (3 given)

You're using a more recent version of CWiiD - simple fix:The fix is simple – change line 141:

def wmcb(self, messages):

to:

def wmcb(self, messages, timeIgnore):

Thanks to Mike H for pointing out this issue.

No bluetooth interface found

Ensure you have the dependencies installed, and then try unplugging and re-plugging the bluetooth device (if it is USB) or restarting. (Further debugging info: “hcitool scan” after pressing 1+2 on your wiimote should return an entry with “Nintendo RVL-CNT-01″, if it does not then there is something wrong with your bluetooth setup and/or your Wiimote.)

Bluetooth issues

error: uncaptured python exception, closing channel 
<__main__.MythSocket connected at 0×7fd7840133b0> (<class ’socket.error’>:(111, ‘Connection refused’) 
[/usr/lib/python2.5/asyncore.py|read|68] 
[/usr/lib/python2.5/asyncore.py|handle_read_event|388] 
[./main.py|handle_read|52] 
[/usr/lib/python2.5/asyncore.py|recv|342])

You're probably using an old version of MythPyWii. Download the latest version, and try again. If the problem persists, please submit an ticket.

Installation

(U/Ku/Edu/Myth)buntu GNU/Linux, Hardy

  1. Enable Mythfrontend's telnet interface. (Mythfrontend Main Menu → Utilities/Setup → Setup → General → page 4 → Tick Enable Network Remote Control interface, Enter 6546 after Network Remote Control Port → Next → Next → Next → Finish. )
  2. Exit mythfrontend.
  3. Download the latest myth_py_wii.py and save it to your ~/Desktop
  4. If you don’t have the dependencies then run the following command in a terminal
  5. $ sudo apt-get install python bluetooth python-bluez python-cwiid

alternatively, install each package in synaptic.

  1. Run the script: python ~/Desktop/myth_py_wii.py
(you can do so using the terminal – e.g. Applications → Accessories → Terminal in Ubuntu)
  1. Open MythFrontend.
  2. Wait for MythFrontend to finish loading.
  3. Press 1&2 simultaneously on your wiimote. After a few seconds the wiimote should vibrate and the LEDs will show # . . # where # is on and . is off.
  4. Enjoy.

Controls

These are liable to change, but for now, here is how they are mapped:

Combo Action
Keypad same as keypad on keyboard
A Enter (Accept, OK, next, ...)
Minus (-) d (Delete)
Home escape (Exit to previous menu/exit mythfrontend)
Plus (+) p (Play/pause)
1 Info
2 Menu
B + left rewind to beginning of video
B + twist wiimote rewind (if twisted to the left) or fastforward (otherwise) with speed dependant on twist amount.
B + A + twist wiimote timestretching – slower (if twisted left) or faster (if twisted right)

A comment on twisting:

Point the wii remote at the screen, and twist from the elbow so that it continues to point at the screen.

The maximum fastforward/rewind speed is 180x. The speeds are dictated by mythfrontend itself. When you rotate the wiimote, you will feel a slight vibration (0.05 seconds) to let you know you have gone up or down a speed segment. To stop fastforwarding/rewinding, simply let go of B.

Power saving

Turn the wiimote off (power button) when not in use, and turn it back on by holding down 1 and 2 to make it sync. (It will turn off automatically after around 35 minutes.)

Powered by Google Project Hosting