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.


All times are GMT. The time now is 10:40.

vBulletin® Version 3.8.8