Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Control XBMC with a wiimote
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Control XBMC with a wiimote
2nd Jun, 2013, 12:38 AM
Post: #9
jaheaga Offline
Registered
Posts: 3
Joined: Jun 2013
Reputation: 0
RE: Control XBMC with a wiimote
EDIT: Does not work with latest release Beta 1.1

Hello everybody, as the instructions provided by Koenkk does not work anymore due to the 404 error downloading the package xbian-package-wiiremote0.9.deb, I manage to get my own wiimote work on my XBian 1.0 Alpha 5.
This is how I did it with help from here

ssh to your device

Code:
sudo su           #default password = raspberry
apt-get update
apt-get install bluez python-cwiid xbmc-eventclients-common
cd /usr/local/bin
wget https://raw.github.com/paulvt/xbmc-wiimote/master/xbmc-wiimote
chmod +x xbmc-wiimote

nano /home/xbian/wiimote.sh


Code:
#!/sbin/sh  
/etc/init.d/bluetooth restart  
sleep 2  
cd /usr/local/bin
xbmc-wiimote -b 00:00:00:00:00:00 -t 7200

Code:
chmod +x /home/xbian/wiimote.sh  
nano /etc/rc.local
then when you are editing rc.local you have to add this lines before "exit 0" changing 00:00:00... for the mac of your wiimote if you dont know it, on any other linux execute this comand "hcitool scan"
Code:
/home/xbian/wiimote.sh &

then I make a cron job to restart bluetooth service each 5 minutes because after a while the wiimote doesn't connect properly

Code:
crontab -e
Code:
*/5 * * * * /etc/init.d/bluetooth restart


the 7200 means 2 hours but you can change it to whatever number you want, the default is 120 but that just wasn't enough for me.

I did a lot of research with openelec (didn't work the wiimote) and raspbmc (the wiimote works but the system is really slow)

Saludos

Jaheaga

EDIT. The rc.local script I change it , because it disconnects ramdomly and then don't connect anymore, also add a cron job to restart the bluetooth service, also noticed that 5 minutes is not the same as 2 hours, well you can configure it wherever you want
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Control XBMC with a wiimote - Koenkk - 20th Mar, 2013, 01:29 AM
RE: Control XBMC with a wiimote - manuka - 15th Apr, 2013, 02:32 PM
Control XBMC with a wiimote - Koenkk - 15th Apr, 2013, 05:05 PM
RE: Control XBMC with a wiimote - sasagr - 15th Apr, 2013, 08:39 PM
RE: Control XBMC with a wiimote - manuka - 16th Apr, 2013, 07:38 AM
RE: Control XBMC with a wiimote - sasagr - 16th Apr, 2013, 05:03 PM
RE: Control XBMC with a wiimote - manuka - 17th Apr, 2013, 07:27 AM
RE: Control XBMC with a wiimote - manuka - 30th Apr, 2013, 07:22 AM
RE: Control XBMC with a wiimote - Gemma01 - 27th Sep, 2013, 12:09 AM
RE: Control XBMC with a wiimote - Rumbah - 3rd Nov, 2013, 11:27 AM
AW: RE: Control XBMC with a wiimote - freem@n - 19th Nov, 2013, 09:00 AM
RE: Control XBMC with a wiimote - mk01 - 21st Nov, 2013, 04:19 PM
RE: Control XBMC with a wiimote - Smultie - 21st Nov, 2013, 09:21 PM
RE: Control XBMC with a wiimote - freem@n - 21st Nov, 2013, 08:29 PM
RE: Control XBMC with a wiimote - mk01 - 1st Dec, 2013, 12:29 PM
RE: Control XBMC with a wiimote - rikardo1979 - 1st Dec, 2013, 05:45 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th Jul, 2025, 12:43 PM Powered By MyBB, © 2002-2025 MyBB Group.