mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2026-01-09 03:33:14 +00:00
Merge branch 'master' of github.com:justinemter/pseudo-channel
This commit is contained in:
30
README.md
30
README.md
@@ -16,3 +16,33 @@ This project is inspired by the [Fake TV](https://medium.com/@Fake.TV/installati
|
||||
- [ ] List of features from reddit.
|
||||
|
||||
If interested in this project, check back very soon when the beta is up. It's close and a tiny bit more user friendly. :)
|
||||
|
||||
## How to Use (in the case someone stumbles across this and wants to try it before its polished):
|
||||
|
||||
- The instructions below are all for configuring the "controller" device (i.e. a laptop or raspberry pi running linux). The "client" device should be a Raspberry Pi running Rasplex hooked up to your TV via HDMI - although I'm sure other devices work great too (never tried).
|
||||
|
||||
1. Download the [Python Plex API](https://github.com/pkkid/python-plexapi) & their dependencies. Also get [yattag](http://www.yattag.org/). All these dependencies can be installed via pip.
|
||||
|
||||
2. Download this repository & edit the `pseudo_config.py` / `the pseudo_schedule.xml` to your liking. Find your Plex token [here](https://support.plex.tv/hc/en-us/articles/204059436-Finding-an-authentication-token-X-Plex-Token)
|
||||
|
||||
3. Run the `PseudoChannel.py` file with the following flags:
|
||||
|
||||
```bash
|
||||
% python PseudoChannel.py -u -xml -g -r
|
||||
```
|
||||
|
||||
The `-u` flag will prepare & update (& create if not exists) the local `pseudo-channel.db`. The `-xml` flag will update the newly created local db with your schedule from the xml file. The `-g` file will generate the daily schedule (for today). Finally, the `-r` file will run a while loop 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. 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.
|
||||
|
||||
To run the app in a 'poor-mans-daemon-mode', run this:
|
||||
|
||||
```bash
|
||||
% sudo screen -d -m python PseudoChannel.py -r
|
||||
```
|
||||
|
||||
...the previous command will keep the clock / app running in the background via the screen utility - kinda like a daemon process.
|
||||
|
||||
Stay tuned for a polished version / bug fixes / features and commercial injection.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
29
pseudo_config.py
Normal file
29
pseudo_config.py
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
baseurl = 'http://media.home:32400'
|
||||
token = 'token'
|
||||
|
||||
'''
|
||||
*
|
||||
* List of plex clients to use (add multiple clients to control multiple TV's)
|
||||
*
|
||||
'''
|
||||
plexClients = ['RasPlex']
|
||||
|
||||
'''
|
||||
*
|
||||
* The increment value between scheduled shows. Let's say you want to reposition all shows to have a clean start time divisable by 15 (i.e. 12:30 or 12:45). Use the value "-1" to disregard.
|
||||
*
|
||||
*
|
||||
'''
|
||||
timeGap = 15
|
||||
|
||||
|
||||
timeBetweenShows = -1
|
||||
|
||||
'''
|
||||
*
|
||||
* If there is an overlap, then the overlapGap var in config will determine the next increment. If it is set to "15", then the show will will bump up to the next 15 minute interval past the hour. If it is set to 30, then it will find the next 30 minute interval past the hour to place the episode. Useful for keeping clean schedules.
|
||||
*
|
||||
'''
|
||||
overlapGap = 15
|
||||
Reference in New Issue
Block a user