From 63a55c53aa951617ed924fac295e63c2d1d17d97 Mon Sep 17 00:00:00 2001 From: Justin Date: Sun, 16 Jul 2017 10:31:40 -0700 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b20575..d2cd2f8 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This script, like the one above uses crontab to both generate the daily schedule For the controller, use a linux VM (Debian installed w/ minimal resources), or an old laptop w/ Ubuntu or a raspberry pi w/ Jessie...or something similar. You also may need to login to your Plex server and add the IP of the controller in Settings -> Server -> Advanced Settings -> Network, under "List of IP addresses and networks that are allowed without auth". Then download this repo to your users home folder and follow this guide: 1. Install [python plex api](https://github.com/pkkid/python-plexapi) -2. Edit the pseudo_config.py file to add your server URL / Plex token ([how to find it](https://support.plex.tv/hc/en-us/articles/204059436-Finding-an-authentication-token-X-Plex-Token)). +2. Move the "pseudo_config-sample.py" file to "pseudo_config.py" and edit it to add your server URL / Plex token ([how to find it](https://support.plex.tv/hc/en-us/articles/204059436-Finding-an-authentication-token-X-Plex-Token)). Also add the client host to the "plexClients" variable. The default for a RasPlex client is "RasPlex". 3. Run the database loader to gather the necessary information about your Plex library and generate local DB (run as many times as needed. May take a while.): ``` python pseudo_updatedb.py @@ -28,10 +28,13 @@ bash ./schedule.sh 5. Setup a crontab to run `pseudo_generate_daily_scheduledb.py` everyday at say, midnight. This will generate a schedule for the day based on media inputed by the above bash script. ``` crontab -e + 0 0 * * * cd /home/justin/pseudo-channel/ && /usr/bin/python /home/justin/pseudo-channel/pseudo_generate_daily_scheduledb.py ``` 6. Create another crontab to fire at least every minute to see when to trigger to play scheduled media generated in the script above: ``` +crontab -e + * * * * * cd /home/justin/pseudo-channel/ && /usr/bin/python /home/justin/pseudo-channel/pseudo_tv_controller.py ``` 7. Pop some popcorn.