Plex Connect for Unraid? (ATV3 Plex)


Recommended Posts

Wow, if someone could get this working it would be awesome. It would make it a lot more simple for my parents to watch movies via Plex on their ATV. Right now they have to start the video in their iPad app and AirPlay it to the ATV.

Link to comment

Wow, if someone could get this working it would be awesome. It would make it a lot more simple for my parents to watch movies via Plex on their ATV. Right now they have to start the video in their iPad app and AirPlay it to the ATV.

 

I think anyone who has an ATV 2 & 3 and do not want to JB is happy about this.

I think if you get it to play with unRAID it will probably increase the downloads of unRAID too. I can, however, find that PLEX should work it into the media server directly, thereby avoiding the "one more thing"

 

However, I am very pleased that this has come and I hope it works fine ... Now, I hope that someone might be working out a solution for unRAID specific

Link to comment

one of the issues is that it needs port 80 free

so you will have to move your emhttp port to another port

quiet easy to do so but i guess it is the first thing to note

for the rest it is a python script so i guess it should be easy to run especially if you have sickbeard/couchpotator/sab or so running already

 

see this post -> http://forums.plexapp.com/index.php/topic/57831-plex-atv-think-different/page-27#entry401895

seems some unraid user is already running it :)

Link to comment

I tried but get errors. I change the port to 8008.

 

root@Tower:/mnt/disk1/PlexConnect# python PlexConnect.py

Traceback (most recent call last):

  File "PlexConnect.py", line 16, in <module>

    import DNSServer, WebServer

  File "/mnt/disk1/PlexConnect/WebServer.py", line 24, in <module>

    import XMLConverter  # XML_PMS2aTV, XML_PlayVideo

  File "/mnt/disk1/PlexConnect/XMLConverter.py", line 34, in <module>

    import time, uuid, hmac, hashlib, base64

  File "/usr/lib/python2.6/hashlib.py", line 136, in <module>

    md5 = __get_builtin_constructor('md5')

  File "/usr/lib/python2.6/hashlib.py", line 63, in __get_builtin_constructor

    import _md5

ImportError: No module named _md5

Link to comment

I got it working, and its soooooo much smoother than the iphone/ipad through AIRPlay... THANK YOU PLEXCONNECT!

 

I have it running on RC13.

 

*Make note of your unRAID internal IP, if you have SimpleFeatures it is displayed in the main page in the upper right hand corner

 

For AppleTV side, please follow this: https://github.com/iBaa/PlexConnect/wiki/OSX-and-ATV-with-5.2-firmware-and-ethernet-internet-connection-installation-guide

 

For unRAID side, please follow below:

1. Change your default port for unRAID to something other than 80, something like 8008.

    To do this go to your go file on your flash drive and replace /usr/local/sbin/emhttp & with /usr/local/sbin/emhttp -p XX & (where XX equals the port)

    Not sure if needed, but I rebooted here

1. Install python on your Plex server (since I have CouchPotato and Sickbeard running, I already had it), maybe someone can send me some manual steps and I will gladly update with how to do this.

2. Copy the download https://github.com/iBaa/PlexConnect/archive/XML_templates.zip to your destination of choice (below you will notice I used a cache drive).

3. Go to your destination (/mnt/cache/apps/plexconnect) and modify the file Settings.py with the following:

    return '8.8.8.8'  # google public DNS and replace 8.8.8.8 with the IP you saved from your apple tv

 

4. go to puTTy and type in the following (you should be able to close puTTy after this):

nohup python /mnt/cache/apps/plexconnect/PlexConnect.py &

*thanks to mrow

 

This should get you going.

Link to comment

How to make it run without having putty up? (in hidden mode)

 

You should be able to issue this command in the terminal and disconnect with it staying running.

 

nohup python PlexConnect.py &

 

You could also add it to your go script, without the nohup.

Link to comment

hi all,

 

i also did the plex and plexconnect fun with my aTV 3 :) what a genius idea :D

but: how can i perform a automatic start on each bood: plexconnect in a screen with this command:

 

first: screen -dmS plexconnect

then: sudo python /boo/plexconnect/PlexConnect.py

then: *rootpassword*

 

because my girlfriend can't do the erge steps when i'm away =) and my unraid server is going to deep sleep when idle. only wakes up on "wake on lan"

Link to comment

hi all,

 

i also did the plex and plexconnect fun with my aTV 3 :) what a genius idea :D

but: how can i perform a automatic start on each bood: plexconnect in a screen with this command:

 

first: screen -dmS plexconnect

then: sudo python /boo/plexconnect/PlexConnect.py

then: *rootpassword*

 

because my girlfriend can't do the erge steps when i'm away =) and my unraid server is going to deep sleep when idle. only wakes up on "wake on lan"

 

 

I said it literally in the post above yours… Add

python PlexConnect.py &

to your go script. It will then start automatically each time you foot up the server.

Link to comment

ok cool and its starting as root and does PlexConnect.py have to be the second start after plex?

 

thanks for the info

 

Yes it will be run as root. Plugins will load before entries in the go file so Plex will already be started before the go file starts PlexConnect.

Link to comment

I must be slow... My go looks like this and it wont start unless I have puTTy running and manually run:

 

python /mnt/cache/apps/plexconnect/PlexConnect.py

 

If I close puTTy it dies...

 

My GO:

 

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp -p 8008 &
/boot/unmenu/uu

cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c 

python /mnt/cache/apps/plexconnect/PlexConnect.py &

unraid_notify start

Link to comment

I must be slow... My go looks like this and it wont start unless I have puTTy running and manually run:

 

python /mnt/cache/apps/plexconnect/PlexConnect.py

 

If I close puTTy it dies...

 

My GO:

 

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp -p 8008 &
/boot/unmenu/uu

cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c 

python /mnt/cache/apps/plexconnect/PlexConnect.py &

unraid_notify start

 

 

Even after a reboot it does not work from the go script?

 

Also, as I mentioned earlier, to run it from the terminal and keep it running you have to put nohup in front of that command...

Link to comment

 

Even after a reboot it does not work from the go script?

 

Also, as I mentioned earlier, to run it from the terminal and keep it running you have to put nohup in front of that command...

 

Ya, both methods dont work for me, I tried the other one first... :'(

 

 

It you type

nohup python PlexConnect.py &

into the terminal, what does it say?

Link to comment

It you type

nohup python PlexConnect.py &

into the terminal, what does it say?

 

If I type it directly, I get this:

 

[1] 8943

root@Hades:~# nohup: ignoring input and appending output to `nohup.out'

 

If I type it with full path (assuming I need this) I get nothing back:

nohup python /mnt/cache/apps/plexconnect/PlexConnect.py &

 

Link to comment

This is what i get in the nohup.out file everytime

 

PlexConnect : ***

PlexConnect : PlexConnect

PlexConnect : Press ENTER to shut down.

PlexConnect : ***

PlexConnect : IP_self: 192.168.0.110

PlexGDM : ***

PlexGDM : looking up Plex Media Server

PlexGDM : ***

PlexGDM : servers discovered: 1

WebServer : ***

WebServer : WebServer: Serving HTTP on 0.0.0.0 port 80.

WebServer : ***

WebServer : Shutting down.

DNSServer : ***

DNSServer : Starting up.

DNSServer : intercept trailers.apple.com: 192.168.0.110

DNSServer : forward other to higher level DNS: 192.168.0.1

DNSServer : ***

DNSServer : Shutting down.

PlexConnect : Shutting down.

Traceback (most recent call last):

  File "/mnt/cache/.Apps/PlexConnect/PlexConnect.py", line 72, in <module>

    key = raw_input()

IOError: [Errno 9] Bad file descriptor

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.