Gotlanning Posted June 5, 2013 Share Posted June 5, 2013 Anyone that has the skill to get this running on unraid, or make a plg? ttp://forums.plexapp.com/index.php/topic/57831-plex-atv-think-different/page-32 https://github.com/plexinc/PlexConnect/tree/new-movie-sections Quote Link to comment
mrow Posted June 5, 2013 Share Posted June 5, 2013 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. Quote Link to comment
Falkens Posted June 5, 2013 Share Posted June 5, 2013 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 Quote Link to comment
sacretagent Posted June 5, 2013 Share Posted June 5, 2013 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 Quote Link to comment
mgworek Posted June 5, 2013 Share Posted June 5, 2013 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 Quote Link to comment
wickedathletes Posted June 5, 2013 Share Posted June 5, 2013 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) Quote Link to comment
mgworek Posted June 5, 2013 Share Posted June 5, 2013 Did you get it to start after that? Quote Link to comment
wickedathletes Posted June 5, 2013 Share Posted June 5, 2013 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. Quote Link to comment
mgworek Posted June 5, 2013 Share Posted June 5, 2013 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!!!! Quote Link to comment
Gotlanning Posted June 6, 2013 Author Share Posted June 6, 2013 How to make it run without having putty up? (in hidden mode) Quote Link to comment
sacretagent Posted June 6, 2013 Share Posted June 6, 2013 How to make it run without having putty up? (in hidden mode) you could use screen aka a hidden terminal window Quote Link to comment
mrow Posted June 6, 2013 Share Posted June 6, 2013 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. Quote Link to comment
phenomeus Posted June 8, 2013 Share Posted June 8, 2013 hi all, i also did the plex and plexconnect fun with my aTV 3 what a genius idea 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" Quote Link to comment
mrow Posted June 8, 2013 Share Posted June 8, 2013 hi all, i also did the plex and plexconnect fun with my aTV 3 what a genius idea 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. Quote Link to comment
phenomeus Posted June 8, 2013 Share Posted June 8, 2013 ok cool and its starting as root and does PlexConnect.py have to be the second start after plex? thanks for the info Quote Link to comment
mrow Posted June 8, 2013 Share Posted June 8, 2013 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. Quote Link to comment
phenomeus Posted June 8, 2013 Share Posted June 8, 2013 thanks a lot already configured it. thanks Quote Link to comment
wickedathletes Posted June 10, 2013 Share Posted June 10, 2013 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 Quote Link to comment
mrow Posted June 10, 2013 Share Posted June 10, 2013 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... Quote Link to comment
wickedathletes Posted June 11, 2013 Share Posted June 11, 2013 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... :'( Quote Link to comment
mrow Posted June 11, 2013 Share Posted June 11, 2013 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? Quote Link to comment
wickedathletes Posted June 11, 2013 Share Posted June 11, 2013 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 & Quote Link to comment
Kryspy Posted June 11, 2013 Share Posted June 11, 2013 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 Quote Link to comment
Gotlanning Posted June 14, 2013 Author Share Posted June 14, 2013 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 Quote Link to comment
Gotlanning Posted June 14, 2013 Author Share Posted June 14, 2013 Is this going to work: in the Go script: "screen python /mnt/cache/.Apps/PlexConnect/PlexConnect.py" ? /Gotlänning Quote Link to comment
Recommended Posts
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.