Commit Graph

63 Commits

Author SHA1 Message Date
Justin Emter
4dbf5b4c07 Experienced the duplicate entry error for todays daily_schedule error. Trying something different. 2017-08-15 10:53:54 -07:00
Justin Emter
c903a1c6d7 Updates to scripts. 2017-08-13 11:48:29 -07:00
Justin Emter
7f06384c2f Added flag to only use the new cache update logic if app is being updated with new schedule. 2017-08-10 10:08:27 -07:00
Justin Emter
ee863eb888 Potential fix for the daily schedule update / interruption to currently playing media - issue. 2017-08-10 10:02:07 -07:00
Justin Emter
1e7219cb70 Importing the previously exported json queue seems to be working. Will overwrite all the shows table with the json data. 2017-08-09 19:39:46 -07:00
Justin Emter
f55f90819d Started adding export / export of playhead queue via json for easy transferring / restarting db. 2017-08-09 19:07:55 -07:00
Justin Emter
091acc4057 Added 'generate_daily_sched.sh' that should be used as a crontab only when using the 'startstop.sh' script exclusively.' 2017-08-09 11:55:53 -07:00
Justin Emter
d2512b0069 Altered SQL for removing daily_schedule data before adding newly generated data. 2017-08-09 11:09:29 -07:00
Justin Emter
f2b6b87b56 Added startstop.sh file to easily start / stop PseudoChannel.py in the background. Also loggin support in ./pseudo-channel.log 2017-08-09 00:30:02 -07:00
Justin Emter
a82af271f7 Added some more strength to the trigger conditions. 2017-08-08 22:20:18 -07:00
Justin Emter
eefa6e68c5 Added the sleep timer again for raspi fix? 2017-08-08 21:20:20 -07:00
Justin Emter
a7e2e6cc53 Fix 2 2017-08-08 21:08:18 -07:00
Justin Emter
e72893db96 Ahh think I fixed that issue where it starts it from the beginning if it is more than half way through an episode. 2017-08-08 21:04:54 -07:00
Justin Emter
b7aec2bc70 Removed the annoying delay before triggering current media play(). 2017-08-08 21:01:41 -07:00
Justin Emter
21a5f7c28a Another potential fix for play-nearest-media-right-away functionality. 2017-08-08 20:53:20 -07:00
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