MythPyWii Power Update (v17)

- 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!
Tags: Linux, MythPyWii, MythTV, Open source

![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_c.png?x-id=422a939e-dfa7-48f3-9059-6e69acd0420a)
November 17th, 2009 at 10:00 am
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
November 17th, 2009 at 11:58 am
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
November 17th, 2009 at 1:35 pm
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
November 17th, 2009 at 1:45 pm
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 …
November 17th, 2009 at 2:03 pm
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
November 17th, 2009 at 4:36 pm
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!
November 18th, 2009 at 3:25 pm
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 ?
November 18th, 2009 at 3:33 pm
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?
December 9th, 2009 at 11:37 am
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
December 9th, 2009 at 12:47 pm
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.
May 19th, 2010 at 6:17 pm
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
June 1st, 2010 at 9:49 am
Hi Bruce, as the Wiimote operates over Bluetooth (which uses the 2.4GHz range, like WiFi) it should also pass through walls.