When Apple updates Apple TV...

Is there a menu called "profiles under Settings -> General?

This submenu just opened to me after showing the Apple Configurator to my AppleTV. Apparently now I could configure an URL where it can download Profiles from.

For those that only have windows and do have some tech knowledge including using VMWare.

http://www.souldevteam.net/blog/downloads/

That link has downloads for modified images of Mac OSX that will run within a VM which should then allow you to install the configurator and then modify it.

Works!  I think it is slower now? and it display more "loading" screen than before, but at least it work !

It works! Perfect! Thanks a lot!

It is indeed slower.

Still wondering if we could somehow intercept the configuration of the whole top-menu and add new icons.... Hmmmmmm

Congrats on coming up with a solution.  Sadly, due to user error I'm sure, I'm still having problems.  First of all, I created the  certificates, etc, on my laptop, used the laptop to install the profile on to the aTV, and then copied the files to my mini, which is where my Plex server runs.  I edited the Settings.cfg file, and I see new verbiage about ports 80 and 443, so I'm pretty sure I have the correct webserver.py file, but I'm still seeing the dreaded "trailers is unavailable" message.  I see in my aTV settings that I have a profile installed.  I'm afraid I'm stumped.  Suggestions, anyone?

Thanks

Works!  I think it is slower now? and it display more "loading" screen than before, but at least it work !

It does feel slower now. It could be that the JavaScripts are not fully compatible with this version of Trailers.

Also same javascripts are downloaded over and over again. Need to see if we could add some cache headers etc so that AppleTV is happy not to download same content again and again. At least in logs the same .js files are loaded over and over again.

Congrats on coming up with a solution.  Sadly, due to user error I'm sure, I'm still having problems.  First of all, I created the  certificates, etc, on my laptop, used the laptop to install the profile on to the aTV, and then copied the files to my mini, which is where my Plex server runs.  I edited the Settings.cfg file, and I see new verbiage about ports 80 and 443, so I'm pretty sure I have the correct webserver.py file, but I'm still seeing the dreaded "trailers is unavailable" message.  I see in my aTV settings that I have a profile installed.  I'm afraid I'm stumped.  Suggestions, anyone?

Thanks

The current codebase doesn't error properly when it can't find the certificate file. Make absolutely sure the certfile points to the file that contains both your certificate and key.

Edit: So I got myself turned around and added quotes to the path in the cfg in the tutorial. This is INCORRECT. Reload the tutorial and it is fixed (along with a note for people who ran into problems there). This is what it should look like:

port_ssl = 443
certfile = /path/to/cert/key/file

Thanks for the great work around. Just one quick question. So my PMS runs on a windows pc. I see th last step deals with specifying the absolute path of trailers.pem. Can I copy this file from a Mac to a PC and still have this work around work on the PC?

Is there a menu called "profiles under Settings -> General?

This submenu just opened to me after showing the Apple Configurator to my AppleTV. Apparently now I could configure an URL where it can download Profiles from.

ooooh. That's a nice thing to know, partly as it gives a clue as to wether the profile made it onto the device.

As for installing via a URL, you CAN install profiles OTA on other iOS devices. You just need to know the format / setup of the files. I know I've got something setup at work to install an iPhone profile, will check if I have it at home.

** edit **

Just had a look at the setup I've got. Seems that I've got an html file with an a href tag that references the .mobileconfig file. So, in theory, you could use Apple configurator to create the mobileconfig file (it is located in ~/Library/MobileDevice/Configuration Profiles/) and then create a new html file that references the file and in theory, point the appletv at it (if it does seem to allow that) and it should download the file.

Obviously you still need the ssl like files, but I'm sure someone could share those too

Question:

The certfile line in the Settings.cfg. What file should that point to? trailers.key, trailers.pem, or, trailers.cer? The wording seems to indicate trailers.key, but someone above was referencing the .pem file

Question:
The certfile line in the Settings.cfg. What file should that point to? trailers.key, trailers.pem, or, trailers.cer? The wording seems to indicate trailers.key, but someone above was referencing the .pem file



Where /path/to/cert/key/file is the absolute path to the “trailers.pem” file we created earlier. You can move that file wherever you like. If you want to see the path you can actually drag/drop it into the terminal and it will put the full path.

Thanks for the great work around. Just one quick question. So my PMS runs on a windows pc. I see th last step deals with specifying the absolute path of trailers.pem. Can I copy this file from a Mac to a PC and still have this work around work on the PC?

Yes, you'll just need to define the path in whatever manner Windows Python expects. C:\path o\certfile.pem is likely to work

ooooh. That's a nice thing to know, partly as it gives a clue as to wether the profile made it onto the device.

As for installing via a URL, you CAN install profiles OTA on other iOS devices. You just need to know the format / setup of the files. I know I've got something setup at work to install an iPhone profile, will check if I have it at home.

I do this at work with MDM software. You can push profiles to iOS devices through a web page easily and that is platform agnostic, can the ATV use the same process? If so, all you need a tiny http server, push the certs to it. Done.

It does feel slower now. It could be that the JavaScripts are not fully compatible with this version of Trailers.

Also same javascripts are downloaded over and over again. Need to see if we could add some cache headers etc so that AppleTV is happy not to download same content again and again. At least in logs the same .js files are loaded over and over again.

Have you found any headers that work yet? I've tried passing Cache-Control: public and max-age=3600, but no luck so far.


I do this at work with MDM software. You can push profiles to iOS devices through a web page easily and that is platform agnostic, can the ATV use the same process? If so, all you need a tiny http server, push the certs to it. Done.


This would be hell of a lot easier then running to my brothers house to use his MacBook. Still though, you would need to move the .pem file whoever your PMS maybe correct?

The current codebase doesn't error properly when it can't find the certificate file. Make absolutely sure the certfile points to the file that contains both your certificate and key.

Thanks for replying - I'm as positive as I can be that the Settings.cfg contains the correct path to the .pem file - I dragged it into the editor. 

port_pms = 32400
enable_plexgdm = True
ip_dnsmaster = 8.8.8.8
ip_webserver = 0.0.0.0
loglevel = Normal
enable_dnsserver = True
logpath = .
ip_pms = 192.168.178.10
port_webserver = 80
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
prevent_atv_update = True
port_ssl = 443
certfile = /Applications/PlexConnect/PlexConnect/trailers.pem 
 
 
I welcome any suggestions.

Thanks for the great work around. Just one quick question. So my PMS runs on a windows pc. I see th last step deals with specifying the absolute path of trailers.pem. Can I copy this file from a Mac to a PC and still have this work around work on the PC?

I did exactly this, and it's working for me. Created the files on the mac, copied to the plexconnect folder on windows - certfile = c:\folder railers.pem works fine.

Where /path/to/cert/key/file is the absolute path to the “trailers.pem” file we created earlier. You can move that file wherever you like. If you want to see the path you can actually drag/drop it into the terminal and it will put the full path.

Thank you kindly. Could the blog be updated to mention it's not key file, but pem file, as I found that confusing.

Hmm...Look inside the trailers.pem. You should see a block of base64 encoded text bounded by BEGIN CERTIFICATE and END CERTIFICATE lines. Below that you should see another block of base64 with BEGIN RSA PRIVATE KEY and END RSA PRIVATE KEY around it.

Hmm...Look inside the trailers.pem. You should see a block of base64 encoded text bounded by BEGIN CERTIFICATE and END CERTIFICATE lines. Below that you should see another block of base64 with BEGIN RSA PRIVATE KEY and END RSA PRIVATE KEY around it.

Yes, that's exactly what I see.