Commit Graph

57 Commits

Author SHA1 Message Date
Justin Emter
105648ed4c Added stop functionality for when killing the app via startstop.sh 2017-08-20 01:40:25 -07:00
Justin Emter
daf8ced89b Cleaning up code base, etc. getting ready for release. 2017-08-18 12:50:54 -07:00
Justin Emter
1fc3d1bf7a Added error handling for when a webserver is already running when starting or re-starting the app. 2017-08-17 06:56:35 -07:00
Justin Emter
bea4b4286b Another try at fixing the occasional issue where the previous daily_schedule is not cleared when the new one is generated. 2017-08-17 06:42:03 -07:00
Justin Emter
691e0f4469 Added support for xtra args in the xml to further specify random movie params. There are a few gotchas. The xml attribute should look like this: xtra='actor:tom cruise genre:action contentRating:r' and I the local db must be current. If it fails then it just dismisses all params and grabs random movie. 2017-08-16 16:25:33 -07:00
Justin Emter
8056c4b9ad Started adding test runners. 2017-08-11 14:09:44 -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
d2512b0069 Altered SQL for removing daily_schedule data before adding newly generated data. 2017-08-09 11:09:29 -07:00
Justin Emter
a82af271f7 Added some more strength to the trigger conditions. 2017-08-08 22:20:18 -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
a836ce2eeb Added error supressing / encoding to terminal output 2017-08-06 18:45:11 -07:00
Justin Emter
f096018a19 Ascii fix for illegal chars. 2017-08-06 15:30:47 -07:00
Justin Emter
9a25db5080 Added conditions for not rendering a web server if the serverurl field in config is empty. 2017-08-06 15:13:42 -07:00
Justin Emter
4f0af16414 Logging stuff 2017-08-06 13:32:22 -07:00
Justin Emter
d1f0d2ad49 Edited output / cleaned output for easier debugging. 2017-08-05 17:42:56 -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
1bb1711f5f Fixed the currdir check in the controller. 2017-08-04 20:22:12 -07:00
Justin Emter
1532a0d342 Write path bug on first run. 2017-08-04 20:13:23 -07:00
Justin Emter
704e96f6b6 Fixed the -xml chdir issue (I think). 2017-08-04 20:01:54 -07:00
Justin Emter
d0f428ad34 ajax fixes. 2017-08-04 14:08:25 -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
16a00200df Reworked ajax logic for refresh. Should make sense now. 2017-08-03 22:45:29 -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
e75b8a4c6d Fixed the db update queue overwrite issue. 2017-08-03 17:44:53 -07:00
Justin Emter
de59590d14 Removed the relativedelta extra lib so user doesn't need to pip install more than needed. 2017-08-03 15:58:23 -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
88df036cdf Added a try / except for play errors. Script should continue even if it fails to play media. 2017-08-03 15:37:08 -07:00
Justin Emter
0e5b65345e Edited time frame to UTC for google calendar. 2017-07-28 18:52:07 -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
7d3028e6fa Commercial support seems to work & also the duplicating DB entries seems to be fixed. 2017-07-26 19:53:44 -07:00
Justin Emter
8c4411d5a6 Looping through commercials over 100 times trying to fill up time. 2017-07-26 16:02:30 -07:00
Justin Emter
56fa063260 I think this might have solved the commercial logic. Testing here first. 2017-07-26 15:16:55 -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
920190626a Adjusted logic to calculate start / stop times for commercials. This should solve the commercials getting cut off. I do hoever see some issues, pushing anyway. 2017-07-25 22:00:45 -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
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
Pseudo Channel
f9b7286f76 Need to generate credentials via the google python tut then move the .credentials folder to home folder of controller. 2017-07-24 17:48:57 -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
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
Pseudo Channel
376393736b Fixed bg image 2017-07-21 23:16:14 -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
fbdd21c392 Fixed BG Image bug. 2017-07-21 09:01:40 -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