Plex @ aTV - think different...

Your getting the 404 file not found error on application.js because you need to run from the Plexconnect directory, do the following, cd into the directory first then run PlexConnect.py

cd PlexConnect-XML_templates

sudo PlexConnect.py

See if that works.

My PlexConnect.py does not live in PlexConnect-XML_templates/ I don't even have a PlexConnect-XML_templates directory.

It lives in PlexConnect/

In addition, just running gives me a

 sudo: Plexconnect.py: command not found

I need to run

sudo ./Plexconnect.py 
 

in order to get it to work properly. If I navigate to ... /PlexConnect and run

sudo ./Plexconnect.py

everything is peachy.
 

Am I doing something wrong?

My PlexConnect.py does not live in PlexConnect-XML_templates/ I don't even have a PlexConnect-XML_templates directory.

It lives in PlexConnect/

Then you've downloaded the wrong branch, on gihub change the branch to XML_Templates and then download the zip.

Also people need to open the application.js file and change the address of the Plex Media Server ...

You got to change the .js file?

Sounds like... "feed it through the template engine" to me!

We haven't got that far yet, haven't seen you on glassboard for awhile. Also, I told you people would expect to download the master branch ;) Should have merged to back.

Then you've downloaded the wrong branch, on gihub change the branch to XML_Templates and then download the zip.

Ok, thanks.

Grabbed that branch but still need to run:

sudo ./PlexConnect.py

not just

sudo PlexConnect.py

BTW, this is great. I have no troubles with the the jailbreak Plex but always good to have options.

Ok, thanks.

Grabbed that branch but still need to run:

sudo ./PlexConnect.py

not just

sudo PlexConnect.py

BTW, this is great. I have no troubles with the the jailbreak Plex but always good to have options.

I'm not a Mac guy, so I missed the ./

I'm under Windows so I don't even need to bother with that sudo crap :)

Also, I told you people would expect to download the master branch ;) Should have merged to back.

I think just updating the first post with the most current download requirements would work.

I scoured the posts, thought I found the latest one. If it is always in the first post we (or should I say you...  :P  ) can always point people there.

I'm not a Mac guy, so I missed the ./

I'm under Windows so I don't even need to bother with that sudo crap :)

It's all good. Just making sure I wasn't messing something up. I can do that very quickly.... :wub:

...

sudo ./PlexConnect.py

not just

sudo PlexConnect.py

...

That's what I always said: eg. post #136...

We haven't got that far yet, haven't seen you on glassboard for awhile. Also, I told you people would expect to download the master branch ;) Should have merged to back.

Glassboard: well, I have like 10 open questions there, but no answer. I assumed, nobody is home... so why bother writing more messages :-)

Merge: Yeah, maybe. I could also rename/unpublish/delete the master. I will give it a try.

Plex forums: We have to think of getting an own board, I guess... with a "pinned" message on the status, on installation and usage and those question threads. We will see how this develops. But it can't be that far...

Then you've downloaded the wrong branch, on gihub change the branch to XML_Templates and then download the zip.

This is strange. XML_templates is the "default" branch. github should pick that one... by default?

This is strange. XML_templates is the "default" branch. github should pick that one... by default?

Well, you do have this posted in post #30:

Old outdated instructions, DO NOT USE

New code and instructions:- https://github.com/iBaa/PlexConnect Use the XML_Template branch.

It then repeats the

Old outdated instructions, DO NOT USE!

at the bottom.

Does that mean use the XML_Template branch or does it mean that that branch is now outdated.... Since there is no edit date it is not clear.

I may have gotten the XML_Template branch at first and thought it was outdated so I grabbed the Master.

Either way, it is all good. You guys are doing great work and perhaps if someone sees my mistakes it will help them.

>> you do have this posted in post #30:

No... I haven't. Post #30 is one of Roidy. He started with the .js version - see #116, I tried to explain this already.

>> [github branches]

"XML_Template" is the one you want to use.

"Master" is outdated - I am trying to clean that up.

>> ... so I grabbed the Master.

>> Either way, it is all good.

Well, then re-grab the XML_master. It will even get better!

Short progress report - add on to #84 - as public interest seems to pick up :-D

- transcoding? check

- channels? check

- aTV prior 5.2? check

Disclaimer:

Nothing is final. Transcoding uses the "old" PMS engine. Channels are tested mainly on youtube.

It works pretty good from my point of view... but there will be no guarantee that this will be your opinion, too :-S

Thanks to roidy and opsoneo for their help - we are getting there!

Thanks for sticking with me Baa and roidy. The final answer was:

Also people need to open the application.js file and change the address of the Plex Media Server ...

As soon as I did that, Trailers show up and I can select the Plex libraries.

I think the Readme needs a line mentioning the need to edit the application.js file with the PMS server address.

On OS X 10.8.3, it is slightly worrying that I had to quit all running services in System Preferences - Sharing because one or other was blocking port 80 and I will check which one was the cause of the problem.

Thanks for all your hard work on this.

Now I feel encouraged to buy a new Apple TV3!

Thanks for sticking with me Baa and roidy. The final answer was:

Also people need to open the application.js file and change the address of the Plex Media Server ...

As soon as I did that, Trailers show up and I can select the Plex libraries.

...

Impossible. There must be something else you changed.

Two reasons for this:

1) your log (in #135) states, the WebServer never even found "application.js"

2) on my development system, I run with a faulty address in "application.js". Guess, Roidy didn't tell about the need to change :-)

I never had this kind of trouble...

Just out of curiosity, please think again... do you now run "cd [path]", "sudo ./PlexConnect.py" instead of "sudo [path]/PlexConnect.py"? In my eyes, only this could explain you latest issues (#136, #137).

EDIT:

Readme: yes, it would be great to keep it up to date. On the other hand, it is a bad architecture to have the need to do the same setup change in multiple locations. Trust me... we will find a way to remove the need to adapt *.js.

SystemPreferences: You are right, the internal processes might be in need for connecting to port 80. "Internet Sharing" for sure... they have to read the local request on port 80 and forward it to the outer world. Running 10.8.3 as well, I don't have those services active by default, so I never saw the issue. Thanks for pointing it out.

Believe me, nothing else changed.

I just quit all the shares in System Preferences — Sharing, which seemed to solve the port 80 problem previously but had not solved the Trailers are unreachable message.

Then I edited the application.js file with the correct IP for PMS.

Then I opened terminal, typed sudo followed by a space and dragged the PlexConnect.py file to the terminal—this is a Mac after all—like I have done at least 30 times before, so the path to the file was written automatically, because why type when you can drag?

I went to the ATV2, navigated to Trailers and it was all fine.

nekton1: Honestly... I don't understand. And I am unable to repeat it. Would you do me a favor and help to debug your - now solved - issue?

1) Would you please change the numbers in *.js to point in a bad direction and run it that way... to reproduce the error?

2) Also, please type "pwd" (present working directory) in your terminal before running the "sudo [path]/PlexConnect" command. Please compare the result of pwd with the directory PlexConnect.py actually is stored.

Thanks!

Guys this is incredible!

I've followed this thread from the beginning but just found the time to test out the code right now.

It took me a whole of 2 minutes and the system is set up and works like a charm. Amazing accomplishment!

Thank you very much and keep up the excellent word :)

I am anctiously waiting for this to be rolled into the normal version of PMS. I wish I had skills to help.

One thing I was wondering about this way to get plex on non jailbroken Atv. Can this system point to a different DNS for netflix content. I use TUNLR to get american Netflix I love plex but also don;t want to loose my US netflix. 

Any advice or if that could be considered would be awesome.

Keep it up. It sounds tré exciting.