Properly installing PlexConnect on ATV3

Before anyone tells me to search the rest of the forum for similar topics, I have already.  The info seems scattered to me at best.  Anything else on the web seems to be either inconsistent, or also scattered.  

 

I've been trying to get plexconnect running on my ATV3 without success.  I've followed the instructions that I've been able to gather from various sources - no success.  I will give you complete information about what I've tried so far and what my setup is. Perhaps someone can fill in the blanks and help me on my way. 

 

Setup

-ATV3 v. 5.2.1

-Wireless Router on network, no Ethernet.  Does it matter?

-DNS on ATV3 and PMS is already the same at 192.168.2.1, so I've left this alone.

-PMS IP 192.168.2.109

-ATV3 IP 192.168.2.102

 

What I've done so far

-Downloaded PlexConnect Template folder from the source linked from this site.

-Have modified the settings.py file, 'ip_dnsmaster' from 8.8.8.8 to 192.168.2.1

-Launched Terminal from Plexconnect Folder.

-Enter 'sudo ./PlexConnect.py'. PMS is found.

-Launch ATV3 Trailer.  Nothing.

 

When I run, the 'sudo' command, I get the following..

 

 
Last login: Sat Jun 15 08:12:58 on console
The-White-MacBook:PlexConnect-XML_templates petebenard$ sudo ./PlexConnect.py
Password:
PlexConnect: started: 09:44:05
PlexConnect: ***
PlexConnect: PlexConnect
PlexConnect: Press ENTER to shut down.
PlexConnect: ***
Settings: add section PlexConnect
Settings: add option port_pms=32400
Settings: add option ip_dnsmaster=192.168.2.1
Settings: add option loglevel=Normal
Settings: add option enable_dnsserver=True
Settings: add option ip_pms=192.168.178.10
Settings: add option enable_plexgdm=True
PlexConnect: started: 09:44:05
PlexConnect: IP_self: 192.168.2.109
PlexGDM: ***
PlexGDM: looking up Plex Media Server
PlexGDM: ***
PlexGDM: servers discovered: 1
PlexConnect: PMS: 192.168.2.109:32400
DNSServer: started: 09:44:06
DNSServer: ***
DNSServer: Starting up.
DNSServer: intercept trailers.apple.com: 192.168.2.109
DNSServer: forward other to higher level DNS: 192.168.2.1
DNSServer: ***
WebServer: started: 09:44:06
WebServer: ***
WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
WebServer: ***
 
This is exactly what my settings.py text looks like....
 

from Debug import *  # dprint()

 
 
 
"""
Global Settings...
PMS: plexgdm, ip_pms, port_pms
DNS: ip_dnsmaster - IP of Router, ISP's DNS, ... [dflt: google public DNS]
HTTP: ip_httpforward, port_httpforward
"""
g_settings = { \
    'enable_plexgdm'  :('True', 'False'), \
    'ip_pms'          :('192.168.178.10',), \
    'port_pms'        :('32400',), \
    \
    'enable_dnsserver':('True', 'False'), \
    'ip_dnsmaster'    :('192.168.2.1',), \
    \
    'loglevel'        :('Normal', 'High') \
    }
 
 
 
class CSettings():
    def __init__(self):
        dprint(__name__, 1, "init class CSettings")
        self.cfg = None
        self.section = 'PlexConnect'
        self.loadSettings()
        self.checkSection()
    
    
    
    # load/save config
    def loadSettings(self):
        dprint(__name__, 1, "load settings")
        # options -> default
        dflt = {}
        for opt in g_settings:
            dflt[opt] = g_settings[opt][0]
        
        # load settings
        self.cfg = ConfigParser.SafeConfigParser()
        self.cfg.read(self.getSettingsFile())
    
    def saveSettings(self):
        dprint(__name__, 1, "save settings")
        f = open(self.getSettingsFile(), 'wb')
        self.cfg.write(f)
        f.close()
    
    def getSettingsFile(self):
        return sys.path[0] + sep + "Settings.cfg"
    
    def checkSection(self):
        modify = False
        # check for existing section
        if not self.cfg.has_section(self.section):
            modify = True
            self.cfg.add_section(self.section)
            dprint(__name__, 0, "add section {0}", self.section)
        
        for opt in g_settings:
            if not self.cfg.has_option(self.section, opt):
                modify = True
                self.cfg.set(self.section, opt, g_settings[opt][0])
                dprint(__name__, 0, "add option {0}={1}", opt, g_settings[opt][0])
                
        # save if changed
        if modify:
            self.saveSettings()
    
    
    
    # access/modify PlexConnect settings
    def getSetting(self, option):
        dprint(__name__, 1, "getsetting {0}={1}", option, self.cfg.get(self.section, option))
        return self.cfg.get(self.section, option)
 
 
 
if __name__=="__main__":
    Settings = CSettings()
    
    option = 'enable_plexgdm'
    print Settings.getSetting(option)
    
    option = 'enable_dnsserver'
    print Settings.getSetting(option)
    
    Settings.saveSettings()
    del Settings

 

The one discrepancy that I see is that the IP address that's given in the 'ip_pms' is different.  By default it's 192.168.178.10, but if I change it to my real PMS IP, it doesn't make a difference.

 

Anyway, I would really appreciate any help with this.  Please show me the way....

 

Before anyone tells me to search the rest of the forum for similar topics, I have already.  The info seems scattered to me at best.  Anything else on the web seems to be either inconsistent, or also scattered.  

I've been trying to get plexconnect running on my ATV3 without success.  I've followed the instructions that I've been able to gather from various sources - no success.  I will give you complete information about what I've tried so far and what my setup is. Perhaps someone can fill in the blanks and help me on my way. 

Setup

-ATV3 v. 5.2.1

-Wireless Router on network, no Ethernet.  Does it matter?

-DNS on ATV3 and PMS is already the same at 192.168.2.1, so I've left this alone.

-PMS IP 192.168.2.109

-ATV3 IP 192.168.2.102

What I've done so far

-Downloaded PlexConnect Template folder from the source linked from this site.

-Have modified the settings.py file, 'ip_dnsmaster' from 8.8.8.8 to 192.168.2.1

-Launched Terminal from Plexconnect Folder.

-Enter 'sudo ./PlexConnect.py'. PMS is found.

-Launch ATV3 Trailer.  Nothing.

1) Read the "READ BEFORE POSTING" thread in this forum

2) In that thread you will find the installation guides

3) Follow the guide for your OS

4) You should not be editing Settings.py, it is Settings.cfg you want to edit. (90% of the time, you should never even need to do this step)

5) The only thing you should need to do is the thing you have decided not to, you need to change the DNS Server address on your ATV3 to the IP of the machine running the PlexConnect software.

Ah... Trudge. Thanks!

Mr. Trudge,

Excusing your apparent impatience....

Thanks a million!  That install guide was exactly what I was looking for... could be better served as it's own topic though.

Every scattered source that I've seen so far said that editing the settings.py file was necessary, including some threads in this very forum which come up in google.  And I didn't 'not decide' to use my PMS IP as the ATV DNS IP, that much was never made clear until now.

Again, thanks.  I'll give it a go later.

Every scattered source that I've seen so far said that editing the settings.py file was necessary, including some threads in this very forum which come up in google.

Yep, mostly old news, used to be needed, not any more.  It's a new project and moving fast, which is why there is a big bold "READ BEFORE POSTING" sticky linking to all the up to date info - there are also lots of other who haven't read that post guessing at what needs to be done. (aka, they know enough to be dangerous)  Don't expect the way it works today, to be the same as the way it works tomorrow.

plus we have quite a nice wiki on github... link in the signature.

 ||

 ||

\  /

 \/

Brilliantly done, mates!  It's working.

I'll check up on the project updates regularly.  But if the pinned topic is where regular project updates will be posted, then may I suggest that you modify the title of the topic to "UPDATES, READ BEFORE POSTING", perhaps.    It may save you from redundant posts, such as this one.

Cheers, fellas.  Nice work!

Hm. The "UPDATES" word would have stopped you posting? Whereas "READ BEFORE POSTING" didn't? I guess, there will always be issues, we just can't solve... :-D

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.