Sign inSign up

dax333/cron-streamripper

By dax333

Updated about 10 years ago

stream ripper that runs every 30 minutes

Image
1

10K+

dax333/cron-streamripper repository overview

Cron working on one out of two qnaps. Continuing to test.

Example: When running on a QNAP NAS:

Create station-cron in cron folder. Example station-cron:

0,30 * * * * root /home/streamripper/station.sh > /var/log/cron.log 2>&1 #* * * * * root echo "Hello world" >> /var/log/cron.log 2>&1 #Use this line to test cron

An empty line is required at the end of this file for a valid cron file


Create file station.sh in shared Volume. Example Station File (make executable):

#!/bin/sh

date=date +"%Y_%a_%b_%d_%H%M%P"

url=http://URL of radio station output_filename=stationNameHere.${date}

#Set duration for 30 Minutes because cron runs every 30 minutes to make a new recording. duration=1800

output_dir=/home/streamripper cd $output_dir

streamripper $url -d $output_dir -l $duration -a $output_filename -r 8000 -R 0 -o always


To install and run container:

docker run -d -v /share/Containers/streamripper:/home/streamripper -v /share/Containers/streamripper/cron:/etc/cron.d -e TZ='US/Pacific' --name streamripper-kcho dax333/cron-streamripper

Tag summary

Content type

Image

Digest

Size

264.1 MB

Last updated

about 10 years ago

docker pull dax333/cron-streamripper