You are using Flash, Director, or Flex on a macintosh and want to use Wii remote input for your application? Till now, there was only one solution: Switching to Windows and using the WiiFlash API. Now, there's another possibility: MoteDaemon.

MoteDaemon discovers Wii remotes in range, connects to them and listens on a TCP socket for incoming connections from your Flash/Flex application. When your application is connected, it instantly receives Wiimote motion and button data in a simple XML format. We decided to provide all sources and a little example Flash application for free. The XML parser is encapsulated in a little class, so it should really be straightforward to use. Have fun with it!
Download it
The application including sources is available as a ZIP archive on SourceForge.
How about WiiFlash app compatibility?
We've already contacted the WiiFlash team—as soon as we get a short documentation of their binary data format, we'll make MoteDaemon compatible to WiiFlash client applications so that they can also run on MacOS X.
Beta
The software is still in beta stage. If you find a bug, we'd be happy if you could report it to us by mail. Crash reports are most helpful when they contain a stack trace to find out where the application crashed exactly: Just include your ~/Library/Logs/CrashReporter/MoteDaemon.crash.log file in the report for this.


Comments (31)
This is really cool :)
We are preparing the WiiFlash protocol documentation so that you can implement it.
Cheers !
Posted by Thibault Imbert | September 26, 2007 3:21 PM
Posted on September 26, 2007 15:21
I'm really looking forward to it :)
Greets from Berlin, Sebastian
Posted by Sebastian | September 26, 2007 6:34 PM
Posted on September 26, 2007 18:34
The MoteDaemon crashes out on me as soon as I start the pairing. Running OS X 10.4.10. Would any other information help?
This is fantastic. Been waiting for a Mac port ever since I saw the PC .NET version.
Posted by Brent | September 27, 2007 2:48 AM
Posted on September 27, 2007 02:48
Brent, Thanks :) Have you got a ~/Library/Logs/CrashReporter/MoteDaemon.crash.log file? It contains information about which code part caused the application to crash.
Posted by Sebastian | September 27, 2007 8:53 PM
Posted on September 27, 2007 20:53
Whoa!! i am preparing something for wiimotes and is good to know you guys let us extend now to Mac, now i will look for a Linux version :-D btw how hard is it to make the speaker working? would be lots of fun having it working :-D
Posted by Andres Santos | September 27, 2007 9:13 PM
Posted on September 27, 2007 21:13
Hi guys,
MoteDaemon is a pretty cool app. Do you have any ideas, when the WiiFlash protocol implemention will be done? And don't tell, when it's finished ;)
Posted by Fabian Aumiller | October 4, 2007 10:21 AM
Posted on October 4, 2007 10:21
Fabian,
Depends on when we get the documentation—see Thibault's comment…
Greets from Berlin,
Sebastian
Posted by Sebastian | October 5, 2007 8:23 AM
Posted on October 5, 2007 08:23
Hi Sebastian,
I've emailed the crash log to your sourceforge email. couldn't find one on this site. Let me know if you'd like it sent to another address.
Posted by Brent | October 10, 2007 4:48 AM
Posted on October 10, 2007 04:48
Hi, appologies for sounding like an echo, but any idea when we'll have the joy of MoteDaemon talking to WiiFlash?
Posted by Richard Guest | October 30, 2007 2:08 PM
Posted on October 30, 2007 14:08
Thibault promised to send the necessary specification this week, then we'll see ;)
Best Regards,
Sebastian
Posted by Sebastian | October 30, 2007 3:21 PM
Posted on October 30, 2007 15:21
Hey Sebastian, any news from Thibault ?
Posted by Richard Guest | November 8, 2007 1:33 PM
Posted on November 8, 2007 13:33
Hey Sebastian nice to have osx version for flash. Any chance you could activate irPointMovedX, rumble and LED support. I'm not experienced in Xcode/C to do it myself. Help mutch appriciated.
Posted by Laurent | November 29, 2007 10:05 PM
Posted on November 29, 2007 22:05
hi there! any news on the wiiFlash integration?
Posted by alex | December 12, 2007 12:21 AM
Posted on December 12, 2007 00:21
Not yet, sorry, but we're on it. University theses etc. don't leave much time for doing other stuff :) Thanks for your patience.
Posted by Sebastian Burkhart | December 12, 2007 10:35 AM
Posted on December 12, 2007 10:35
Hi, congratulations for this simple yet beautiful (aka. elegant) piece of software.
Im testing it on my MB Pro but the z axis apparently doesn't respond.
To do an easy test, I created some variable text fields (wx, wy, wz, wp, wr), tracking successfully the wx and wy (100-160 aprox) when I rotate the Wiimote on those axis.
But the rotation around the Z axis (takeoff & landing) doesnt react like wx and wy. The variable wz ignores the z-axis changes.
Basically: tracking x and z = WiiMouse.
Am I doing somenthing deeply stupid, or is there a way into wz?
Thanks in advance
Posted by Nathan Cornes | December 13, 2007 5:09 AM
Posted on December 13, 2007 05:09
wx, wy and wz are the X, Y and Z acceleration axes. Try shaking the Wiimote a bit in all directions to see the full range :)
Here's a picture of the axes: http://www.wiili.org/index.php/Wiimote#Motion_Sensor
wp and wr are the pitch (=takeoff and landing) and roll axes. They should contain the angles of your Wiimote in degree. The last missing angle, yaw, can't be integrated without using the IR sensors, which is not implemented yet.
Posted by Sebastian Burkhart | December 13, 2007 8:44 AM
Posted on December 13, 2007 08:44
Hi Sebastian
it's great to have an alternative to Darwiinmote on OSX.
They only thing i'm wondering about now is the fact, that there's a value on the roll coming in even if the wiimote lies on a table.
Is this some kind of standard behaviour of the wiimote, so that you can hold it more naturally?
Posted by Marc | December 13, 2007 10:12 AM
Posted on December 13, 2007 10:12
Thank you :)
Posted by Nathan Cornes | December 14, 2007 8:23 AM
Posted on December 14, 2007 08:23
Hi - I have put together a little Processing http://www.processing.org/ app to talk to motedaemon. Take a look at: http://www.davidchatting.com/wii/motedaemon.zip
The basics work fine reading all the data from the wiimote, but it doesn't yet work when you attach a nunchuk (or I assume a joypad). If people like it, I'll fix the bugs and turn it into a proper Processing library.
Cheers,
Dave
http://www.davidchatting.com/
Posted by David Chatting | December 29, 2007 3:42 PM
Posted on December 29, 2007 15:42
hi guys!! great job, the mode was quickly recognized, but if i test a wiiflash example file, for ex.Wiimote Demo.fla the wiimode doesn't get recognized and i get the error make sure wiiflash server is running. Do i have to activate something else?? please help!!
Posted by bruno | January 7, 2008 4:28 PM
Posted on January 7, 2008 16:28
Hi!
Wonderful project, congratulations!
Are there any chances that you will be providing data from the wiimote IR sensor so that it can be used for (multi)touch as described by http://www.cs.cmu.edu/~johnny/projects/wii/
If so, maybe (multi)touch events could be presented using the api of
http://touchevent.riaforge.org/
Posted by Erik Sundvall | January 11, 2008 11:57 AM
Posted on January 11, 2008 11:57
I agree with Keven, it would be very interesting to see this used more with multitouch applications.. I have spent much time working on an AS3 API that works with TUIO data.. getting some really good results :)
Thanks for this lib I look forward to playing with it and hopefully evolving the AS3 codebase.
Does anyone know of an AS3 version of the API? and or how close this project is to wiiflash?
Thanks again :)
Posted by Chris Moore | January 15, 2008 9:28 AM
Posted on January 15, 2008 09:28
IR support WILL come at some point of time, together with WiiFlash support - so you can deploy your WiiFlash applications directly on Mac without modifications.
As always: When its done. ;)
Posted by Sebastian Burkhart | January 15, 2008 12:53 PM
Posted on January 15, 2008 12:53
Warte schon sehr gespannt auf die WiiFlash-Version, besonders wenn IR unterst�tzt wird. Hast du eine Vorstellung wie lange es noch in etwa dauert?
Gru�!
Posted by Rool | January 15, 2008 6:55 PM
Posted on January 15, 2008 18:55
hi guys
How about WiiFlash app compatibility?
Posted by panpan | February 26, 2008 7:17 PM
Posted on February 26, 2008 19:17
Hey, any news on the wii flash compatibility? It would come in handy for a school project!
Posted by Joeri | March 11, 2008 1:24 PM
Posted on March 11, 2008 13:24
Does anyone know what the jx and jy axis values represent? Could those be the missing yaw axes?
Posted by Ross Teichner | March 31, 2008 8:10 PM
Posted on March 31, 2008 20:10
Any news on an update? I am thinking of creating my own AS3 library (I do not really want to) if the WiiFlash integration does not arrive soon.
Can we have any sort of update?
Posted by John | April 4, 2008 3:22 PM
Posted on April 4, 2008 15:22
Hi,
i've downloaded the MoteDaemon and i found the sourcecodes from Xcode.
For sharing pourpose i've created the italian localization and i'd like to share with you, but i don't know how...
can someone help me please??
Posted by Gaetano | April 12, 2008 12:53 PM
Posted on April 12, 2008 12:53
Very good job Sebastian. We wait the wiiflash compatibility, we're so exitited for the amazing possibility of that :)
Posted by enrico penzo | April 12, 2008 3:13 PM
Posted on April 12, 2008 15:13
we wait wiiflash compatibility...
MoteDaemon + wiiflash + = ♥ !
Posted by panpan | April 14, 2008 11:15 AM
Posted on April 14, 2008 11:15