From a4708a949dbb1412e4ab9a77c83ff9aa450c7d29 Mon Sep 17 00:00:00 2001 From: Justin Emter Date: Fri, 4 Aug 2017 13:43:47 -0700 Subject: [PATCH] Working on ironing out the instructions / definining how to use various options. --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ce3f45..821e462 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,26 @@ baseurl = 'http://192.168.1.28:32400' 5. Run the `PseudoChannel.py` file with the following flags: ```bash -% python PseudoChannel.py -u -xml -g -r +% python PseudoChannel.py -u -xml -g -m -r ``` *You can also run `-h` to view all the options. Keep in mind not all options are operational & some are experimental. Stick with the ones above and use `-c` to find the name(s) of your Plex client(s).* The `-u` flag will prepare & update (& create if not exists) the local `pseudo-channel.db`, you only need to run this once in the beginning or later when you have added new media to your Plex libraries. The `-xml` flag will update the newly created local db with your schedule from the xml file - you should run this everytime you make changes to the xml. The `-g` file will generate the daily schedule (for today) based on the xml. Finally, the `-r` file will run the app, checking the time / triggering the playstate of any media that is scheduled. It will also update the daily schedule when the clock hits 11.59 (or whatever time you've configured in the config file). The xml schedule is a bit tempermental at the moment so if you see errors, check your entries there first. Make sure all of your movie names / TV Series names are correct. +You can run `% python PseudoChannel.py` with the following options. The order is important (i.e. `% python PseudoChannel.py -u -xml -g -m -r`): + +| Flag | Description | +| ------------------------|--------------| +| -u, --update | Manually update (or create if not exists) the local db when new media is added to your Plex server. | +| -xml, --xml | After making any edits your .xml schedule. Run this to populate the local db. | +| -g, --generate_schedule | Manually generate the daily schedule. This is useful for testing / first run. | +| -r, --run | Run PsuedoChannel.py. | +| -c, --show_clients | Show connected Plex clients. | +| -s, --show_schedule | Output the generated "Daily Schedule" to your terminal. | +| -m, --make_html | Manually generate both html / xml docs based on the "Daily Schedule". | + +## Futher Info: + Features are being added to the xml but as of now there are a few. Within the XML `