Home / 03_PlayerSynchDemon
Name Modified Size InfoDownloads / Week
Parent folder
otva_lite_demon_loop_giornaliero-0.0.34.tar.gz 2016-06-08 24.7 kB
otva_lite_demon_loop_giornaliero-0.0.33.tar.gz 2016-05-19 16.6 kB
OTVA_daemon.gambas 2015-01-20 15.1 kB
readme.txt 2015-01-20 1.7 kB
OTVA_daemon-0.0.7.tar.gz 2015-01-20 11.9 kB
OTVA_daemon-0.0.4.tar.gz 2015-01-19 11.7 kB
otva_lite_demon_loop_giornaliero-0.0.28.tar.gz 2015-01-14 16.3 kB
otva_lite_demon_loop_giornaliero-0.0.26.tar.gz 2015-01-12 15.5 kB
otva_lite_demon_loop_giornaliero-0.0.24.tar.gz 2015-01-08 14.2 kB
otva_lite_demon_loop_giornaliero-0.0.22.tar.gz 2015-01-08 13.6 kB
otva_lite_demon_senza_columnview-0.0.17.tar.gz 2014-10-16 12.6 kB
otva_lite_demon_senza_columnview-0.0.13.tar.gz 2014-08-06 11.0 kB
otva_lite_demon-0.0.11.tar.gz 2014-08-04 11.2 kB
otva_lite_demon-0.0.10.tar.gz 2014-08-04 11.1 kB
otva_lite_demon-0.0.8.tar.gz 2014-07-29 10.8 kB
otva_lite_demon-0.0.7.tar.gz 2014-07-29 10.6 kB
otva_lite_demon-0.0.6.tar.gz 2014-07-29 10.5 kB
otva_lite_demon-0.0.5.tar.gz 2014-07-28 9.7 kB
otva_lite_demon-0.0.4.tar.gz 2014-07-24 7.6 kB
otva_lite_demon-0.0.3.tar.gz 2014-07-23 7.1 kB
otva_lite_demon-0.0.1.tar.gz 2014-07-21 6.4 kB
telnet_test-0.0.2.tar.gz 2014-07-21 5.4 kB
Totals: 22 Items   255.2 kB 0
OTVA_daemon.gambas  is a shell application (no GUI) you have to start at boot time just after the "./start-melted-server" script.
He checks the melted server status to extract what clips are in playback list and search for expired ones (until now, exipred are those clips that are from a DAY different from the current).
Remove from playback playlist clips that are expired (if the selected, expired, clip is displayed it would be removed when the clip was no more on video).
Remove all the clips that are NOT expired but are NOT present in the "today" scheduling (he checks date part of the path of the media of selected channel).
After the playback playlist was "purged" from not (more) valid clips, it will upload to melted server those from the schedule (the folder of the channel of the current day).

Now it's time to set the loop ON on the melted server and then start the playback if it's not already started (paused, stopped or unknown).

You have to but this commands in the "boot" script of you machine:

cd otva_demon_location
./OTVA_daemon.gambas melted-server-ip melted-server-port UNIT channel_name loop_or_not melted_root_without_final_slash mysql_db_server_ip mysql_db_server_port db_user db_pass otva_db_name

for example i use this script:
cd /home/allegfede/OTVA app/otva lite/OTVA_daemon
./OTVA_daemon.gambas localhost 5250 u0 il_Mercatino true /mnt/Qnap2OTVA 192.168.1.116 3306 otva otva otva

PS: melted_root_without_final_slash is the path you put after the line "set root=" in the melted.conf file you get in the etc folder of you melted build.
PPS: pay attention to spaces in the channel names. Until now it's not safe to use spaces in paths. Pay attention also in path majors or minuors ... paths are case sensitives.
Source: readme.txt, updated 2015-01-20