Commit Graph

98 Commits

Author SHA1 Message Date
Justin Emter
724750f795 Potential fix for the 'sometimes not playing when starting app' bug. 2017-08-08 20:34:43 -07:00
Justin Emter
345bf4e565 Added a function to trigger the media that is supposed to be playing now / seek to the right position upon start. Needs testing 2017-08-08 18:02:10 -07:00
Justin Emter
a010acf531 Potentially fixed the bug where the following days media was interrupted by the previous day start-times. 2017-08-07 12:40:26 -07:00
Justin Emter
a836ce2eeb Added error supressing / encoding to terminal output 2017-08-06 18:45:11 -07:00
Justin Emter
d1f0d2ad49 Edited output / cleaned output for easier debugging. 2017-08-05 17:42:56 -07:00
Justin Emter
67a0b1b376 Fixed support for generating daily schedule at midnight with new schedule implementation. 2017-08-05 16:04:25 -07:00
Justin Emter
65a3e2a1fb Added the missing statement to trigger play() if the media is scheduled to play on the minute. 2017-08-05 14:32:58 -07:00
Justin Emter
52e7aeda42 Added logic to sleep / wake-up according to the 'schedule' lib memory schedule. TODO: clean up code / test. 2017-08-05 14:16:18 -07:00
Justin Emter
f3fee882df Trying out a different timer package @raspi fix. 2017-08-05 09:10:09 -07:00
Justin Emter
704e96f6b6 Fixed the -xml chdir issue (I think). 2017-08-04 20:01:54 -07:00
Justin Emter
3a75a20ab9 Added a 'requirements.txt' for easily installing required pip packages. 2017-08-04 13:04:15 -07:00
Justin Emter
e78a0fc2c8 Added configurable port to config. 2017-08-04 12:50:29 -07:00
Justin Emter
873308ea06 Added internal server when the -m flag is run or when a schedule is generated...it starts once and stays running until app closes. Also reconfigured the ajax html updated logic for testing. 2017-08-04 11:36:46 -07:00
Justin Emter
dfc0290316 Added a new var to config where you can specify the server path to the schedules/ directory. If set it will use ajax to determine when to refresh the page, if it is left empty it will use the usual 30 second refresh functionality. 2017-08-03 22:32:25 -07:00
Justin Emter
014cad998b Added functionality to generate xml/html schedules whenever the -g flag runs. 2017-08-03 18:18:11 -07:00
Justin Emter
aaa157f2c8 Added commercial padding to config / logic. Difficult to test without just running it as is. Fingers crossed. Am converting the config value from seconds to milli's then adding it to the commercial duration - in theory this will work as a padding if value specified is > than 0. 2017-08-03 15:56:06 -07:00
Justin Emter
e4aab4b004 Fixed the not-updating-daily-schedule bug. 2017-08-03 15:00:53 -07:00
Justin Emter
bc980c91a7 Hopefully fixed the daily update bug. 2017-08-03 07:34:30 -07:00
Justin Emter
acda7fca9b Added another config flag for debug mode. If set to false then commercials are not included in the html / xml. Will soon effect other input. 2017-07-27 11:34:23 -07:00
Justin Emter
99e4b9838f Fixed the resource hogging issue. Also added custom daily update var to config. 2017-07-27 10:50:03 -07:00
Justin Emter
17a277a72c Fixed the issue where the daily_sched wasn't generating at midnight. 2017-07-26 00:07:35 -07:00
Justin Emter
6aa4207660 Trying to work out commercial logic / fixed XML error. 2017-07-25 20:29:59 -07:00
Justin Emter
8b2e69fc3e Added commercial support. Currently seems to be working ok, but needs adjusting / testing. Currently am using it with a time-shift of '5'. 2017-07-25 18:32:22 -07:00
Justin Emter
ab9f69de5f Updated cli. 2017-07-25 14:50:26 -07:00
Justin Emter
e83361857c Fixed out-of-range bug when generating daily schedule. 2017-07-25 14:32:17 -07:00
Justin Emter
bc1dbbde35 Added in XML output alongside HTML. Also should be generating XML/HTML upon the daily generation of the schedule. 2017-07-25 14:14:20 -07:00
Justin Emter
8049ac7be8 Fixed the auto daily sched generate bug. 2017-07-25 08:47:50 -07:00
Justin Emter
d716176210 Added a flag in the config that uses google calendar to update / regenerate the daily schedule at midnight. Also incorporated random movies in calendar scheduling: 'Movie, Random, true' 2017-07-24 17:26:38 -07:00
Justin Emter
64e4485718 Added google calendar integration... Create a calendar event with a comma dilineated title like, 'Show, Seinfeld, false' where the third value is for strict-time. 2017-07-24 16:08:38 -07:00
Justin Emter
1641602ed8 Indents. 2017-07-22 20:51:58 -07:00
Justin Emter
b90c05754c Added help for cli args. 2017-07-22 20:49:57 -07:00
Justin Emter
78f4aeb7cb Cleanup / added cli flags for info gathering / debugging. 2017-07-22 19:38:05 -07:00
Justin Emter
693a9784ff Testing various params / xml <time> values. 2017-07-22 15:57:47 -07:00
Justin Emter
ca588f09e6 Reworked the daily_schedule logic to properly wrap around the clock where needed. Seems to work but needs testing. If using time-shift the first episode of the day needs to be strict-time so time-shift has something to anchor to. 2017-07-22 15:11:20 -07:00
Justin Emter
c5c8c3d2a3 Added logic to remap the main plex libraries in config. Also added logic to get plex token from a file in the parent dir called plex_token.py 2017-07-22 14:26:48 -07:00
Justin Emter
54f7f6535f Fixed the daily_schedule loop bug & added support for 24h time entries. 2017-07-22 12:54:37 -07:00
Justin Emter
8a59aa2c40 Added filtering for day of the week when generating daily schedule. 2017-07-22 01:16:51 -07:00
Justin Emter
27dadd3108 Added support for 24h time input. 2017-07-21 23:43:47 -07:00
Justin Emter
09ea9812a9 Added support for 24 hour time entires in xml. 2017-07-21 23:27:54 -07:00
Pseudo Channel
eae01ea8f1 Added movies column to html. Need to figure out the bg image issue. 2017-07-21 12:30:50 -07:00
Justin Emter
e4250315cf Added cli for beta testing. 2017-07-20 20:46:26 -07:00
Justin Emter
5049d7669e Movies. 2017-07-20 19:18:41 -07:00
Justin Emter
1450c0b94f Alpha 1.0 2017-07-20 18:33:01 -07:00
Justin Emter
5b421574d9 Added random functionality for Movies & TV Shows. 2017-07-20 17:40:16 -07:00
Justin Emter
2c57dc3c8d Updated time-shift logic. 2017-07-20 14:32:28 -07:00
Justin Emter
1b936adc3c Adding in the duration calculation from previous script. 2017-07-20 13:30:38 -07:00
Justin Emter
b58f7e7a2f Alpha 2017-07-20 02:09:47 -07:00
Justin Emter
f1d777a95d Updating project to oop. 2017-07-20 00:05:35 -07:00