maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   XBMC Audioplayer Remote (https://talk.maemo.org/showthread.php?t=67613)

pety 2010-12-29 22:16

XBMC Audioplayer Remote
 
I released a few days ago in extras-devel repo a wifi remote control application for the latest xbmc (dharma). App is called xbmc potato and my intent is to control just the Audioplayer of XBMC. For anyone who finds it useful; Enjoy!

Cheers.

Released a new version (0.3). The previous version did not create an application launcher and icon when installed. Appreciate testing and feedback from anyone interested.

Instructions:
1. The app will only work with xbmc dharma and latest (it works with JSON RPC over tcp).
2. In XBMC settings:
a) Enable webserver
b) Allow External Control of XBMC" for localhost control and "Allow Control from other computers"
3. The first time the app is launched it will prompt for configuration settings. You will need to enter the ip address and port of xbmc.
(NOTE: port is not the one shown in XBMC. Thats the HTTP port. My TCP port is 9090 not 8080.)
4. Do not enable password on xbmc. It is not currently supported.

More to come...

elie-7 2010-12-29 22:21

Re: XBMC Audioplayer Remote
 
Quote:

Originally Posted by pety (Post 907035)
I released a few days ago in extras-devel repo a wifi remote control application for the latest xbmc (dharma). App is called xbmc potato and my intent is to control just the Audioplayer of XBMC. For anyone who finds it useful; Enjoy!

Cheers.

hey man i think you should rename the title to :
[announce] XBMC Audioplayer Remote ;) .
thanks for the app.

Addison 2010-12-29 23:27

Re: XBMC Audioplayer Remote
 
Could you please post your source code in case it might be possible to port this to Diablo?

Thanks! :)

Trestry 2010-12-30 00:03

Re: XBMC Audioplayer Remote
 
Thanks! I was looking forward to something like this. I'll give it a try!

Edit: Can you explain how I can run it?

pety 2010-12-30 07:09

Re: XBMC Audioplayer Remote
 
Quote:

Originally Posted by Addison (Post 907083)
Could you please post your source code in case it might be possible to port this to Diablo?

Thanks! :)

You can get the source from http://maemo.org/packages/source/vie...cpotato/0.2-1/

pety 2010-12-30 07:10

Re: XBMC Audioplayer Remote
 
Quote:

Originally Posted by Trestry (Post 907106)
Thanks! I was looking forward to something like this. I'll give it a try!

Edit: Can you explain how I can run it?

Hi Trestry, I'll try to put together some instructions later on tonight.

Cheers

Trestry 2011-01-20 16:39

Re: XBMC Audioplayer Remote
 
Launching the app from the app-menu won't work...

Edit: Launching the app from the command-line gives the following output:

Code:

Nokia-N900:/opt/xbmcpot# sh xbmcpot
Traceback (most recent call last):
  File "xpot_main.py", line 9, in <module>
    from xpot_mainwindow import XPotMainWindow
  File "/opt/xbmcpot/xpot_mainwindow.py", line 4, in <module>
    import tools_dialog
  File "/opt/xbmcpot/tools_dialog.py", line 19, in <module>
    (Ui_XPotToolsDialog, QDialog) = uic.loadUiType('xpot_toolsdialog.ui')
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/__init__.py", line 158, in loadUiType
    winfo = compiler.UICompiler().compileUi(uifile, code_string)
TypeError: compileUi() takes exactly 4 arguments (3 given)


pety 2011-01-21 13:33

Re: XBMC Audioplayer Remote
 
Quote:

Originally Posted by Trestry (Post 924733)
Launching the app from the app-menu won't work...

Edit: Launching the app from the command-line gives the following output:

Code:

Nokia-N900:/opt/xbmcpot# sh xbmcpot
Traceback (most recent call last):
  File "xpot_main.py", line 9, in <module>
    from xpot_mainwindow import XPotMainWindow
  File "/opt/xbmcpot/xpot_mainwindow.py", line 4, in <module>
    import tools_dialog
  File "/opt/xbmcpot/tools_dialog.py", line 19, in <module>
    (Ui_XPotToolsDialog, QDialog) = uic.loadUiType('xpot_toolsdialog.ui')
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/__init__.py", line 158, in loadUiType
    winfo = compiler.UICompiler().compileUi(uifile, code_string)
TypeError: compileUi() takes exactly 4 arguments (3 given)


Hi Trestry,
I think there is a bug with the python bindings for qt. You can fix the error by editing file:
/usr/lib/python2.5/site-packages/PyQt4/uic/__init__.py

Find line 158, it should read:
winfo = compiler.UICompiler().compileUi(uifile, code_string)

change it to:
winfo = compiler.UICompiler().compileUi(uifile, code_string, None)

Save the file and try to start the app.
I appreciate your feedback.

Cheers.

P.S. Keep in mind that a future update of the qt bindings for python (PyQt) may break the app again, in which case you will need to reapply the change.
Thanks.

clovis86 2011-01-21 15:53

Re: XBMC Audioplayer Remote
 
hey thing are working with the file __init__.py changed
but permission are denied when trying to regster the sbmc server for the 1st time xbmcpot is launched.

I think we got to modify the cfg file directly nop ?

also tryed launching in in sudo mode but it's crashing before configuration screen.

pety 2011-01-21 17:38

Re: XBMC Audioplayer Remote
 
Quote:

Originally Posted by clovis86 (Post 925461)
hey thing are working with the file __init__.py changed
but permission are denied when trying to regster the sbmc server for the 1st time xbmcpot is launched.

I think we got to modify the cfg file directly nop ?

also tryed launching in in sudo mode but it's crashing before configuration screen.

Hi,
You must not launch in sudo mode. Have you enabled the relevant settings in XBMC as shown on the top post? Maybe I forgot to mention that the port is not the one shown in XBMC settings. That's the HTTP port. The app. is using TCP port. For example, on my XBMC it shows port 8080 for HTTP but I configured port 9090 in xbmc potato. Also you need to restart the app. after you configure/change any settings. Also take care to enter the IP address of xbmc not the hostname. It won't work if you set the hostname, Also, please don't set a password in xbmc because I think I haven't implemented that feature yet.

Let me know how it goes so I can improve the app.

Thanks man.

Trestry 2011-01-21 19:34

Re: XBMC Audioplayer Remote
 
Well, I got it running. It looks like xbmc-potato is loading playlists etc, but when I tap on one of the control-buttons, xbmc-potato becomes unresponsive so I have to force the app.

Thanks for you works so far!

pety 2011-01-22 07:18

Re: XBMC Audioplayer Remote
 
hi Trestry,
can you try to launch the app. fro xterm like so:
/opt/xbmcpot/xbmcpot

I suspect that the connection with xbmc is lost. could it be that your network connection is automatically switching to gprs or another network from which N900 is not able to reach xbmc?

can you give exact steps so I can replicate the problem?

thanks

clovis86 2011-01-22 12:20

Re: XBMC Audioplayer Remote
 
Quote:

Originally Posted by pety (Post 925551)
Hi,
You must not launch in sudo mode. Have you enabled the relevant settings in XBMC as shown on the top post? Maybe I forgot to mention that the port is not the one shown in XBMC settings. That's the HTTP port. The app. is using TCP port. For example, on my XBMC it shows port 8080 for HTTP but I configured port 9090 in xbmc potato. Also you need to restart the app. after you configure/change any settings. Also take care to enter the IP address of xbmc not the hostname. It won't work if you set the hostname, Also, please don't set a password in xbmc because I think I haven't implemented that feature yet.

Let me know how it goes so I can improve the app.

Thanks man.

mmm strange thing to put different port between xbmc settings and potato one ..
I'll try with and without password and come back to you
thanks for the quick answer ! :D
cheers and anyhow, keep going on man ! ^^

pety 2011-01-22 16:46

Re: XBMC Audioplayer Remote
 
Quote:

Originally Posted by clovis86 (Post 926002)
mmm strange thing to put different port between xbmc settings and potato one ..
I'll try with and without password and come back to you
thanks for the quick answer ! :D
cheers and anyhow, keep going on man ! ^^

Hi,
The port shown on XBMC media center settings page is the HTTP port. xbmc potato is communicating over raw tcp through port 9090.

Cheers.

Trestry 2011-01-23 19:19

Re: XBMC Audioplayer Remote
 
Quote:

Originally Posted by pety (Post 925876)
hi Trestry,
can you try to launch the app. fro xterm like so:
/opt/xbmcpot/xbmcpot

I suspect that the connection with xbmc is lost. could it be that your network connection is automatically switching to gprs or another network from which N900 is not able to reach xbmc?

can you give exact steps so I can replicate the problem?

thanks

I've tried to run the program from the xterminal and I have the same problem.

I start xbmc-potato, and It is receiving playslists etc. But when I try to stop a song, it becomes unresponsive.

pety 2011-01-24 06:26

Re: XBMC Audioplayer Remote
 
Quote:

Originally Posted by Trestry (Post 926895)
I've tried to run the program from the xterminal and I have the same problem.

I start xbmc-potato, and It is receiving playslists etc. But when I try to stop a song, it becomes unresponsive.

What is the output on xterm when it becomes unresponsive? Can you check which network your phone is connected to when it becomes unresponsive? Also, try to ping xbmc from your phone when it freezes. Do you get a reply?

Hec 2011-03-17 21:39

Re: XBMC Audioplayer Remote
 
Thank you very much Pety for this app. Works perfectly for music stored on disks but not (yet ?) for streaming like Grooveshark. I don't know if implementing this is difficult but it would be cool.

Do you plan to stay focus on music or have you some other things in mind ?


All times are GMT. The time now is 23:09.

vBulletin® Version 3.8.8