Kodi Community Forum
[GUIDE] NoobProof guide to get AirPlay working on XBMC Live / linux - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: [GUIDE] NoobProof guide to get AirPlay working on XBMC Live / linux (/showthread.php?tid=96047)

Pages: 1 2 3


[GUIDE] NoobProof guide to get AirPlay working on XBMC Live / linux - tripkip - 2011-03-06

Credits to PascalW, author of the AirPlay script.

It works great!

You can find the guide on my blog.

http://htpcbuild.wordpress.com/2011/03/05/get-airplay-working-on-your-xbmc-live-htpc/

If you have any issues/questions, ask them here, do not pm.
It's all about helping eachother.

Greets


- br33d - 2011-03-07

Runs great on my XBMCLive install, however when I run it on my Ubuntu HTPC I get

2011-03-06 17:54:12 [INFO] Starting Airplayer
Traceback (most recent call last):
File "airplayer.py", line 221, in <module>
main()
File "airplayer.py", line 217, in main
raise e
TypeError: %d format: a number is required, not str


- tripkip - 2011-03-07

br33d Wrote:Runs great on my XBMCLive install, however when I run it on my Ubuntu HTPC I get

2011-03-06 17:54:12 [INFO] Starting Airplayer
Traceback (most recent call last):
File "airplayer.py", line 221, in <module>
main()
File "airplayer.py", line 217, in main
raise e
TypeError: %d format: a number is required, not str

I have no clue buddy.


- kwstump - 2011-03-07

This is GREAT!!! It work's Perfectly!!!


- tripkip - 2011-03-07

kwstump Wrote:This is GREAT!!! It work's Perfectly!!!

It really is great Smile


- qbase - 2011-03-10

First of all, thank you tripkip for making it easier for us Smile

I followed your guide and it kind of works me. I can run AirPlay videos and photos, but I have to manually start avahi-daemon and restart the script.


When I boot up I can see that the python script is running. Checking with ps -aux

/var/log/airplayer/airplayer.log:
2011-03-10 19:22:12 [WARNING] Couldn't connect to XBMC at 127.0.0.1:8080, are you sure it's running?

If I start the avahi-daemon manually and then restart the script the XBMCLive appears as a destination for my iPad.
xbmc@XBMCLive:~$ sudo service avahi-daemon start
[sudo] password for xbmc:
avahi-daemon start/running, process 1420
xbmc@XBMCLive:~$ sudo /etc/init.d/airplayer restart
Stopping airplayer: airplayer
Starting airplayer: airplayer

/var/log/airplayer/airplayer.log:
2011-03-10 19:22:12 [WARNING] Couldn't connect to XBMC at 127.0.0.1:8080, are you sure it's running?
2011-03-10 19:26:24 [INFO] Starting Airplayer

Any ideas why avahi-daemon doesn't start/work at boot? I'm running XBMCLive 10.1.


- hammertime - 2011-03-12

since this is a n00bproof manual... I'm feeling quite a n00b to ask this question... My linux skills are minimal..

I downloaded the file from the github and copied it via winscp to my asrock 330HT. So far so good.

The install of libavahi-compat-libdnssd1 and python went fine but when i try to install python-pip or python-setuptools I get the following feedback:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python-pip

and

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python-setuptools

I installed the latest xbmc live cd (10.1)

Can anyone tell me what I'm doing wrong?

(sorry for such a n00b question Wink )


- win2000b - 2011-03-12

Works great for video. Any way to stream music from the ipod like u can with airplay on ATV2?


- darkscout - 2011-03-12

qbase Wrote:Any ideas why avahi-daemon doesn't start/work at boot? I'm running XBMCLive 10.1.

Have you enabled the web interface?

Quote:Can anyone tell me what I'm doing wrong?

You didn't follow the instructions.

Code:
sudo apt-get install libavahi-compat-libdnssd1 python python-pip
sudo apt-get install python-setuptools



- hammertime - 2011-03-12

I did follow the instructions and it gave the same error:

xbmc@XBMCLive:~$ sudo apt-get install libavahi-compat-libdnssd1 python python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
libavahi-compat-libdnssd1 is already the newest version.
python is already the newest version.
E: Couldn't find package python-pip
xbmc@XBMCLive:~$ sudo apt-get install python-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python-setuptools


- darkscout - 2011-03-12

Run apt-get update, then try again.


- byxil - 2011-03-12

hammertime Wrote:I did follow the instructions and it gave the same error:

xbmc@XBMCLive:~$ sudo apt-get install libavahi-compat-libdnssd1 python python-pip
...
E: Couldn't find package python-pip
I am in the same situation...
Acer Revo 3610 - XBMC Live 10 - skin Aeon

Edit: It's work, I actually tried with SSH and the install it's ok
but I see only youtube videos and not my photo or my video...
and how to stop the service from the ssh window (I use putty)?


- NiklasK - 2011-03-14

In the settings.py the "MEDIA_BACKEND_HOST" is automatically set to 127.0.0.1. Hence I get an error referring to this, but what should really be entered here?

/Niklas


- qbase - 2011-03-14

darkscout Wrote:Have you enabled the web interface?

Yes I have. Everything works after I manually start avahi-daemon.

Should the daemon start up at boot or is it the airplayer script which starts the daemon? Huh


- krijeck - 2011-03-16

Works great!!!
just one remark if you install (on jailbrocken device) the airvideoenabler then airplay even strts out of Safari!!! WoW!!!
ShockedNod