Skip to content

Commit

Permalink
updated for v1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sahara101 authored Jul 18, 2024
1 parent deac734 commit 068bb31
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Docker container which chooses a random movie from your Plex Library.
- Apple TV - with turn on function
- Plex HTPC MacOS Client
- iPhone
- Plex for LGTV (WebOS)
- Xiaomi MI TV Box S
- Plex for LGTV (WebOS) - with turn on function
- Xiaomi MI TV Box S (Android)

# Functions
- Fetch Random unwatched movies from Plex server
- See movie info
- URLs to TMDB, Trakt and IMDB
- Trailers on Youtube
- Play movie on above tested players
- Turn on Apple TV
- Turn on Apple TV and LGTV ((webOS) directly in Plex App)

<img width="1403" alt="image" src="https://github.com/user-attachments/assets/75057458-4b3a-4f91-9da6-9efb748ce28e">
<img width="1358" alt="image" src="https://github.com/user-attachments/assets/27961635-439c-45a2-8e61-6654ca5f15de">
<img width="1377" alt="image" src="https://github.com/user-attachments/assets/bd508a26-bcd2-4f95-aeb3-4024444ed2fa">
<img width="1254" alt="image" src="https://github.com/user-attachments/assets/f7fff9ec-8217-4483-b6cb-0831200c66c9">


# DISCLAIMER
Expand All @@ -40,15 +40,19 @@ services:
PLEX_URL: "http://IP:32400"
PLEX_TOKEN: "TOKEN"
MOVIES_LIBRARY_NAME: 'Filme' #Default 'Movies'. Used for IMDB, Trakt and TMDB links.
APPLE_TV_ID: "ID"
APPLE_TV_ID: "ID" #Optional
LGTV_IP: "IP" #Optional
LGTV_MAC: "MAC_Address" #Optional
network_mode: host
restart: unless-stopped
```
If you do not have an Apple TV you can also change the port.
If you do not have an Apple TV you can also change network host mode to use other external port.

Default container port is 4000

The TURN ON DEVICE button displays the devices dynamically, meaning you HAVE to add the ```APPLE_TV_ID``` ENV in order to see the corresponding button and both ```LGTV_IP``` and ```LGTV_MAC``` for LG.

# First Use
!important! - Your client devices and plex need to be in the same network.
## Plex Client Config
Expand All @@ -61,7 +65,7 @@ Navigate to settings - network and activate 'Enable local network discovery (GDM
#Apple TV
## Get the Apple TV ID

First start the container without adding an ID since you do not have it yet.
First start the container without adding the ID ENV since you do not have it yet.

```
docker exec -ti random-plex-movie /bin/sh
Expand All @@ -80,7 +84,10 @@ atvremote --id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx --protocol companion pair
Enter PIN on screen:
Pairing seems to have succeeded, yey!
```
#LGTV (WebOS
Get the TV IP and MAC and set them up in the ENV. You can see both in the TV settings. If you want to copy the MAC just ping the TV followed by the linux command ```ip neigh show```

Press the ```TURN ON DEVICE``` button and select your ```LGTV (webOS)```. A magic packet will be sent and the TV will turn on. Accept the new connection. This will store the connection details in the container.

# Troubleshooting
Issue: Pressing the WATCH button does not show any client.
Expand All @@ -90,16 +97,17 @@ Issue: Pressing the WATCH button does not show any client.
```
curl -X GET "http://PLEXIP:32400/clients?X-Plex-Token=PLEXTOKEN"
```
- (Only Apple TV) Plex Apple TV is buggy and often it forgets it has the option active. You will need to deactivate the option, force close the app, start the app and activate the option again, restart Plex app.
- (Only Apple TV) You will need to deactivate the option, logoff and force close the app. Start the app, skip login and activate the option. Then you can login back.
- (Apple TV) Plex Apple TV is buggy and often it forgets it has the ```Advertise as player``` option active. You will need to deactivate it, force close the app, start the app and activate the option again, restart Plex app.
- (Apple TV) You will need to deactivate the option, logoff and force close the app. Start the app, skip login and activate the option. Then you can login back.

Issue: Pressing the WATCH button does nothing.

- Check the docker logs, if you get an access denied error, check your Plex Token, it might've changed.
- Inspect the page. Collect the errors and open an issue.

Issue: Apple TV does not turn on

- You need to re-pair. This needs to be done each time you recreate the container.
- You need to re-pair. This needs to be done each time you recreate the container.



0 comments on commit 068bb31

Please sign in to comment.