Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Plex Connect for Unraid? (ATV3 Plex)

Featured Replies

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.

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

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 :)

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

what command needs to be run to change your port to 8008?

 

-EDIT:

 

Found my answer, in the go file replace:

/usr/local/sbin/emhttp &

 

with:

/usr/local/sbin/emhttp -p XX &

(where XX equals PORT)

Did you get it to start after that?

 

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.

I was just about to edit my reply to say I got it working. I did not change the port the way you were supposed to.

 

But thanks!!!!

 

  • Author

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

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

you could use screen

aka a hidden terminal window

 

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.

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"

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.

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

 

thanks for the info

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.

thanks a lot :) already configured it. thanks

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

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...

 

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... :'(

 

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?

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 &

 

Nothing in a GO script works for me either for this.  Any chance it is trying to start before python is fully installed?  What can we put in our GO script to have it wait say 1 minute prior to install ?

 

Kryspy

  • Author

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

  • Author

Is this going to work:

 

in the Go script: "screen python /mnt/cache/.Apps/PlexConnect/PlexConnect.py" ?

 

/Gotlänning

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.