Download and install Python and git from DroboPorts. Python might be optional, as diamondsw mentioned.
Clone the github repository for PlexConnect. Something like this:
cd /mnt/DroboFS/Shares/DroboApps/
git clone https://github.com/iBaa/PlexConnect plexconnect
Edit Settings.py in /mnt/DroboFS/Shares/DroboApps/plexconnect using what ever editor you want and fix the IP address in this line to be the address of the 5N:
'ip_pms' :('192.168.178.10',), \
Start PlexConnect like this:
cd /mnt/DroboFS/Shares/DroboApps/plexconnect
sudo ./PlexConnect.py
I’ll leave using of Plex’s own Python interpreter as an exercise for the reader.
I tried it out to see how it was compared to an jailbroken AppleTV with AppleTV black and I liked it. The only thing is, and maybe I have it configured wrong, is that I have to stay logged into the Drobo for it to keep running from a Mac. Do I have it configured wrong?
Edit: Looks like that is normal operation when closing the Terminal window. I read a couple of places to add an ‘&’ at the end of the command when starting PlexConnect and that seemed to be working. Basically $python ./PlexConnect &
I’d prefer tmux personally but I haven’t really figured out this cross compiling for the Drobo thing yet despite multiple attempts. I’ll get it eventually.
Any idea how to get PlexConnect.py to start at boot time? I thought I could add a script to /etc/init.d, but I don’t see anywhere in there where its starting the other drobo apps, like Plex itself.
The short explanation: (1) create a service.sh script in the folder where PlexConnect is installed (e.g.: /mnt/DroboFS/Shares/DroboApps/PlexConnect/service.sh); (2) put the commands to start PlexConnect in there; (3) the Drobo detects the presence of that service.sh file automatically and launches the app at startup for you.
Tried my hand at creating a service.sh file but I need a bit of help. Can anyone who has some experience in this look at this and let me know if its setup correctly? I looked through the links above as well some other DoboApps service.sh files and there is some small differences with how quotes are used. Also, the pidfile doesn’t seem to get created when I try to start it in the dashboard but then again, it gets stuck when I start the app at Starting Application. I can start it up on the command line if i manually type it in.
You’re missing a “description” variable, like “name” but a bit longer.
The plus sign in the version string might cause some trouble. I have never seen any apps use that. It might work, it might cause trouble.
Are you sure that PlexConnect.py is creating the pidfile at /tmp/DroboApps/plexconnect/pid.txt? You have to make sure that pid.txt exists and contains the PID of PlexConnect, otherwise the start/stop controls on the Dashboard won’t work.
I will add that then. I took it out cause i thought it be optional and I didn’t really have anything
I’ll try it without and report back
The pid file is what I think is causing my issues. It does not get created. I thought it was how I was putting the path in quotes or not. Does it have to coded in PlexConnect.py to create the PID? Is there supposed to be a host_uid file in the directory? I’ve noticed that some apps have one
I’m a newbie to the Drobo5N apps, but I think I’ve followed all instructions, but my “Sudo” app doesn’t appear to be working. When I type “sudo ./PlexConnect.py”, I get “sudo: not found”
Any idea what I’m doing wrong? Thanks for any help you can provide!
Thanks for your help. I followed the instructions on that page, but I’m getting the error “sudo: ./PlexConnect.py: command not found” after typing “sudo ./PlexConnect.py”. I’m really hoping to get this figured out, I’ve been running PlexConnect on my Mac without trouble but would prefer to do it on the 5N.
Thanks for any further guidance you can offer.[hr]
It looks like the $PATH variable change doesn’t work with “root”, but when I login with a created username, I get the error that there’s no home directory. So if I try to save the .profile file, it tells me it doesn’t exist. Do I need to create a home directory somehow?
It looks like the sudo command is working, but that it doesn’t recognize the PlexConnect.py as a python file. I have done the “easy install” for python, but it doesn’t seem to be working. Can anyone help me figure out what I’m doing wrong?
I have done the change while logged in as root, but I still get the same error. I’ve followed the installation procedures as closely as possible (just fixing a URL which has changed here and there), but I’m still having no luck. It’s very odd that it’s not working, I feel like it has to be something small that I did wrong which is screwing it up. Oh well, I guess I may have to continue to run PlexConnect on my Mac if I’m not able to get this thing sorted. Are there any error logs or such that I could pull in order to figure out why it’s not working?