« The Wiinstrument 0.2 for Linux and Mac | Main | Wiimote drumming with your Windows PC: The Wiinstrument 0.2.1 Released »

MoteDaemon integrates Wiimotes in your Flash app (OSX)

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_0.5_screenshot.png

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.

TrackBack

TrackBack URL for this entry:
http://screenfashion.org/cgi-bin/mt/mt-tb.cgi/13

Comments (31)

This is really cool :)
We are preparing the WiiFlash protocol documentation so that you can implement it.

Cheers !

I'm really looking forward to it :)
Greets from Berlin, Sebastian

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.

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.

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

Fabian Aumiller:

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 ;)

Fabian,

Depends on when we get the documentation—see Thibault's comment…

Greets from Berlin,
Sebastian

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.

Hi, appologies for sounding like an echo, but any idea when we'll have the joy of MoteDaemon talking to WiiFlash?

Thibault promised to send the necessary specification this week, then we'll see ;)

Best Regards,
Sebastian

Hey Sebastian, any news from Thibault ?

Laurent:

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.

alex:

hi there! any news on the wiiFlash integration?

Not yet, sorry, but we're on it. University theses etc. don't leave much time for doing other stuff :) Thanks for your patience.

Nathan Cornes:

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

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.

Marc:

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?

Nathan Cornes:

Thank you :)

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/

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!!

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/

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 :)

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. ;)

Rool:

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�!

hi guys

How about WiiFlash app compatibility?

Joeri:

Hey, any news on the wii flash compatibility? It would come in handy for a school project!

Ross Teichner:

Does anyone know what the jx and jy axis values represent? Could those be the missing yaw axes?

John:

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?

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??


Very good job Sebastian. We wait the wiiflash compatibility, we're so exitited for the amazing possibility of that :)

we wait wiiflash compatibility...
MoteDaemon + wiiflash +  = ♥ !

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on September 26, 2007 11:04 AM.

The previous post in this blog was The Wiinstrument 0.2 for Linux and Mac.

The next post in this blog is Wiimote drumming with your Windows PC: The Wiinstrument 0.2.1 Released.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.34