MythPyWii Power Update (v17)

Myth tv logo
Image via Wikipedia

Thanks to Matthew Zimmerman for sending me his modified version of MythPyWii, it now has power-saving – after 35 minutes of inactivity the Wiimote turns off. You can download the latest version, as always, here; or you can get this specific version (v17) here.

I love open source!

Reblog this post [with Zemanta]

Tags: , , ,

Bookmark and Share

12 Responses to “MythPyWii Power Update (v17)”

  1. Ludovic Says:

    Hi Benjie !

    I really enjoy your script !
    I’ve been looking for a way to control my MythTV frontend with a wiimote, and found your site (by official MythTV forum)

    As I’d like to do some web browsing using MythTv, It would be cool if your plug-in could emulate mouse also (with the wiimote IR sensor). I know that cwiid includes some libs to do so…

    What do you think about this ?

    Just for the word, I live in France :)

  2. Benjie Says:

    Thanks Ludovic! :)

    I’m actually experimenting with XBMC as a MythTV frontend currently, so I’m not working on MythPyWii at the moment. (XBMC has Wiimote support and is very beautiful, but I’ve only just started playing with it so haven’t had a chance to fully try it out/customize it yet.)

    To support the Wiimote’s IR sensor you would have to construct a Wii sensor bar (either using 2 candles, making one out of IR LEDs, or modifying the one that came with the Wii). If you don’t do this then you will need the Wii turned on to use MythPyWii; and this means your remote would try and sync with the Wii instead of the PC! I have not got around to doing this (and did not want it to be a requirement of MythPyWii) which is why I did not code it in.

    You are of course welcome to add it yourself if you can (shouldn’t be too hard, as you say it is built in to CWiiD) and submit an updated MythPyWii to me :)

    Au revoir :)

  3. Ludovic Says:

    Bonjour !

    The sensorbar is not a problem, since I own a WII, I’ll just have to put it on USB instead of Wii powered :)

    So, if I understand, you didn’t tried to use the IR part of cwiid, so I have to do it myself ?

    Well, Let’s have a try ;)

  4. Ludovic Says:

    Little update to my previous post :

    It seems that a python script based on cwiid (forthewin.org, script is named “WMD”) is using IR sensor for mouse.

    The original web site is down, but the script is easily findable via google :)

    I’ll have a look …

  5. Ludovic Says:

    Well, bad news, this python script doesn’t use cwiid. It does direct bluetooth communication… So it’s a bit difficult to understand how it works…

    Gonna look further on cwiid :)

  6. Benjie Says:

    Yeah, I think I looked at WMD before making MythPyWii. I think CWiiD (the C part of it) supports emulating a mouse, but I am not sure that the python bindings would allow it. Keep up the good work! :)

  7. Ludovic Says:

    In facts, I think that the cwiid part itselfs doesn’t support mouse emulation, but cwiid DOES support IR sensor reporting .
    In the source code of the python module, I’ve read about “MESG_IR” which is close to MESG_ACC.

    Just have to adapt the MESG_IR which sends what the IR SENSOR sees to emulate mouse position (uinput events ???)

    I’m completely new to python and did not ever coded one line in Python.
    I know php, some C, but not yet python…

    Would you like to help me ?

  8. Benjie Says:

    MythPyWii constitutes the entirity of Python I’ve ever written. It was my “getting an introduction to Python” project, and I’ve decided “it’s alright, but I think I’ll stick with PHP”, so I am perhaps not the best person to ask! I expect that uinput is the way to go though, as you say. wminput is part of CWiiD and supports mouse control through uinput ( http://abstrakraft.org/cwiid/wiki/wminput ) – perhaps check that out?

  9. Ludovic Says:

    As this plug-in is very interresting, I Gave up my WiiMote for a “true” remote controle (a RF version, which pass thru walls, as my computer is not near the TV :)

    Thanks again for your plugin :)

  10. Benjie Says:

    I generally use a “real” remote control too, purely because I don’t have to keep recharging it and it is more responsive. Hopefully MythTV will update it’s remote control interface and everything will run faster soon.

    Wiimotes use bluetooth so they also will go through walls.

  11. Bruce Says:

    As this plug-in is very interresting, I Gave up my WiiMote for a “true” remote controle (a RF version, which pass thru walls, as my computer is not near the TV :)

    Thanks again for your plugin :)

  12. Benjie Says:

    Hi Bruce, as the Wiimote operates over Bluetooth (which uses the 2.4GHz range, like WiFi) it should also pass through walls. :)

Leave a Reply