mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2026-01-06 02:03:15 +00:00
Update README.md
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user