Plexconnect and Raspberry Pi

I am running plexconnect on my raspberry pi as I need to have web server and dns server running on my Mac. 

 

Until recently it has been working perfectly and saw that Apple TV could not connect properly. After checking raspberry pi I noticed that I get this error when trying to starting plexconnect:

 

Traceback (most recent call last):

  File "/home/pi/PlexConnect-master/PlexConnect.py", line 19, in
    import DNSServer, WebServer
  File "/home/pi/PlexConnect-master/WebServer.py", line 28, in
    import XMLConverter  # XML_PMS2aTV, XML_PlayVideo
  File "/home/pi/PlexConnect-master/XMLConverter.py", line 42, in
    import PILBackgrounds
ImportError: No module named PILBackgrounds
 
I did a search and tried to install PIL but that didn't help. I still get this error. Any ideas how to solve this? 
 
Thanks.

Your PlexConnect codebase doesn't seem to be consistent... re-update from github.

It is also possible to use your own DNS server and setup a reverse proxy on your webserver if you want to run PlexConnect on your Mac.

Your PlexConnect codebase doesn't seem to be consistent... re-update from github.

OK thanks got it to work. I deleted old installation and then I run this command on the raspberry:

wget https://github.com/iBaa/PlexConnect/archive/master.zip

unzip -u master.zip 

Started plexconnect and changed the settings and all is working.

I found the error I made before. I used unzip -f -u master.zip which seems to have failed to expand some files.

Thanks. :D 

Can someone guide step by step me how to setup the autostart for the daemon to start plex connect on every boot of the raspberry?

thanks

Can someone guide step by step me how to setup the autostart for the daemon to start plex connect on every boot of the raspberry?

thanks

Just saw your post. Sure that is really easy.

Open in an text editor the /etc/rc.local file

sudo pico /etc/rc.local

Add this line (it depends on where you stored Plexconnect I have it in the pi folder) just below the commented text  (# By default this script does nothing.):

 
python /home/pi/PlexConnect-master/PlexConnect_daemon.py
Save and close. Restart raspberry to check if it works. 

I wrote a script for the Raspberry Pi running Rasbian, this route worked best for me: PlexAuto is my script filename

sudo nano PlexAuto

- Copy paste the following changing the path to your PlexConact.py file

#!/bin/bash

python /home/pi/PlexMediaServer/PlexConnect.py

Save the file and exit nano. Then type the following to make it executable

sudo chmod +x PlexAuto

then copy the file to if-up.d

cp PlexAuto /etc/network/if-up.d

You can delete the original.

Hello everyone, I wanted to ask you information. So if I understand it you have installed PlexConnect to Raspberry PI and use and make the connection from the Apple TV to the Raspberry PI? Right?

Right

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.