Rotations

  • Thread starter Thread starter pety
  • Start date Start date
P

pety

Guest
My issue:
[list type=decimal]
[*]I have a  folder with 200-300 hundreds tracks numerotated (in order) like this: 001 CV, 002 CV..., 075 CV..., 155 CV etc., etc.
[*]I want to run automatically the same track (001 CV) four times a day,
[*]After that RB takes 002 CV track and plays it in the next day four times,
[*]The 4 loops continues in 3rd day with 003 CV,
[*]In the 4th day 004 CV plays four times too,
[*]And so on.
[/list]What solution is for "a loop in a loop" ?
 
One of the ways to do it: create a playlist where each file appears four times. The way to create such a playlist:
1. Add all your files to the playlist
2. Select all, copy and paste 4 times.
3. Sort the playlist (enable sorting if needed from Settings->General->Sort playlist by column click) and save.
4. Create scheduled event to take one track from the playlist (use the wizard).
 
djsoft said:
One of the ways to do it: create a playlist where each file appears four times. The way to create such a playlist:
1. Add all your files to the playlist
2. Select all, copy and paste 4 times.
3. Sort the playlist (enable sorting if needed from Settings->General->Sort playlist by column click) and save.
4. Create scheduled event to take one track from the playlist (use the wizard).
To copy and paste about 300 files? 300 * 4 = 1200 files. Is that what you said or I understand it wrong?
 
pety said:
djsoft said:
One of the ways to do it: create a playlist where each file appears four times. The way to create such a playlist:
1. Add all your files to the playlist
2. Select all, copy and paste 4 times.
3. Sort the playlist (enable sorting if needed from Settings->General->Sort playlist by column click) and save.
4. Create scheduled event to take one track from the playlist (use the wizard).
To copy and paste about 300 files? 300 * 4 = 1200 files. Is that what you said or I understand it wrong?
Is any solution for feeding a folder with a new track every day? Maybe a bat file?
 
Pety,

Use a bat file.  We use a bat file to rotate our advert blocks each night at 11:50pm and it has saved our life.

Use a bat file :)

Besides it has such a nice "ring" to the name that nobody else will know what we're talking about :)  It almost sounds like we have gone back 30 years in a time machine.


Jamie C.
 
radiodungog said:
Pety,

Use a bat file.  We use a bat file to rotate our advert blocks each night at 11:50pm and it has saved our life.

Use a bat file :)

Besides it has such a nice "ring" to the name that nobody else will know what we're talking about :)  It almost sounds like we have gone back 30 years in a time machine.


Jamie C.
Thanks Jamie. The problem is how to know my bat file to copy for the next day the next track not the same or another one.
 
Maybe I will generate in PHP about 10 .bat files and I will load them in Windows Task Scheduler.
 
Pety,

You use the one bat file to rename the files.

Day one they go to air as is.

Day two you rename 001 CV as temp CV

002 CV renamed to 001 CV
003 CV renamed to 002 CV
004 CV renamed to 003 CV

300 CV renamed to 299 CV
temp CV renamed to 300 CV

Run the same bat file every night and after 300 days it will have done a complete cycle.


Jamie C.
 
radiodungog said:
Pety,

You use the one bat file to rename the files.

Day one they go to air as is.

Day two you rename 001 CV as temp CV

002 CV renamed to 001 CV
003 CV renamed to 002 CV
004 CV renamed to 003 CV

300 CV renamed to 299 CV
temp CV renamed to 300 CV

Run the same bat file every night and after 300 days it will have done a complete cycle.


Jamie C.
I know that my English is very poor. I want something like this:
  • I have a  folder with 200-300 hundreds tracks (episodes) numerotated (in order) like this: 001 CV, 002 CV..., 075 CV..., 155 CV etc., etc.
  • I want to run automatically the same track (001 CV) four times a day,
  • After that RB takes 002 CV track and plays it in the next day four times,
  • The 4 loops continues in 3rd day with 003 CV,
  • In the 4th day 004 CV plays four times too,
  • And so on.
What solution is for "a loop in a loop" ?
 
Monday 08:45 001 CV
            12:45 001 CV
            16:45 001 CV
            20:45 001 CV

Tuesday 08:45 002 CV
              12:45 002 CV
              16:45 002 CV
              20:45 002 CV

Wednesday 08:45 003 CV
                    12:45 003 CV
                    16:45 003 CV
                    20:45 003 CV

etc
 
I generated php script wich creates bat files
Code:
<?php

    for ($i=1; $i<=10; $i++)  {
      if ($i<=9) {
       $zero = "00";
   } else if($i>99) {
       $zero="";
   } else {
       $zero = "0";
   }
        $bat = "bat_".$i.".bat";
        $write_txt = "del d:\RadioBOSS\Programe\Meditatii\CV\*.* /Q";
        $write_txt .= "\r\n";
        $write_txt .= 'copy d:\RadioBOSS\Programe\Meditatii\Cuvantul Vietii\\'.$zero.$i.'_Cuvantul_Vietii.mp3';
        $write_txt .= ' d:\RadioBOSS\Programe\Meditatii\CV /Y';
        $handle = fopen($bat, 'w') or die('Cannot open file:  '.$bat);
        fwrite($handle, $write_txt);
    }
?>
Now it generates only 10 bat files, but if I need more I will  change in for loop
Code:
$i<=300
.

All 300 bat files were generated in one second  ;)
 
My solution:
A folder will be feed it every night with next track (a bat file will delete all the content and wil copy in it the next track). In the folder will be always (only) one track.
[list type=decimal]
[*]RadioBOSS - Event Scheduler - Play one track from playlist/folder (repeat every 240 min no more than 4 times);
[*]Windows Task Scheduler will run a specified bat file every night at 23:00.
[/list]
 
pety said:
djsoft said:
One of the ways to do it: create a playlist where each file appears four times. The way to create such a playlist:
1. Add all your files to the playlist
2. Select all, copy and paste 4 times.
3. Sort the playlist (enable sorting if needed from Settings->General->Sort playlist by column click) and save.
4. Create scheduled event to take one track from the playlist (use the wizard).
To copy and paste about 300 files? 300 * 4 = 1200 files. Is that what you said or I understand it wrong?
Not files, copy playlist entries in RadioBOSS (see the screenshot - each file appears 4 times in the playlist). Then save playlist with 1200 entries and use scheduler to take tracks from it one by one.

 

Attachments

  • 09.01.png
    09.01.png
    10.2 KB · Views: 589
pety said:
Windows Task Scheduler will run a specified bat file every night at 23:00.[/list]
You can run .bat files from RadioBOSS as well - select the "Start a program" option in the wizard.
 
djsoft said:
pety said:
djsoft said:
One of the ways to do it: create a playlist where each file appears four times. The way to create such a playlist:
1. Add all your files to the playlist
2. Select all, copy and paste 4 times.
3. Sort the playlist (enable sorting if needed from Settings->General->Sort playlist by column click) and save.
4. Create scheduled event to take one track from the playlist (use the wizard).
To copy and paste about 300 files? 300 * 4 = 1200 files. Is that what you said or I understand it wrong?
Not files, copy playlist entries in RadioBOSS (see the screenshot - each file appears 4 times in the playlist). Then save playlist with 1200 entries and use scheduler to take tracks from it one by one.
Ahaaaa.. That looks very, very nice indeed. Thanks. I will do it in this way :)
 
I made the playlist and the event in Scheduler.
May I remove now from Settings - "Sort playlist by column" ?
*******************
Yes I can and I did it  ;D .

Thanks Dmitry for the nice, easy and best solution.

Thanks Jamie for your help. I know that you are good at the bottom. I hope I wrote well  :)
 
pety said:
I made the playlist and the event in Scheduler.
May I remove now from Settings - "Sort playlist by column" ?
Of course, that sorting was a one time procedure and is not needed after playlist has been created.
 
djsoft said:
pety said:
I made the playlist and the event in Scheduler.
May I remove now from Settings - "Sort playlist by column" ?
Of course, that sorting was a one time procedure and is not needed after playlist has been created.
Thanks Dmitry for the nice, easy and best solution.

Thanks Jamie for your help. I know that you are good at the bottom. I hope I wrote well 
smiley.gif
 
I do not know if another RAS is as good as RadioBOSS is at flesibility. Indeed RB is the best
 
Back
Top