As of Jan 2016, the SoundExchange reporting requirements for SUL related to our statutory license as a noncommercial webcaster of the Riverwalk Jazz collection online requires us to prepare monthly reports on the number of “performances” of each "song" ie, each time a particular "song" is streamed.
This script will gather that usage data from the hourly logs that are created and stored on media@libstream.stanford.edu/var/log/ezstream/.
Inputs to the script would reflect the reporting time period.
- log in to libstream box as media user
cd rwj_reporting/current
(end up inhome/media/rwj_reporting/current
)rake reports[160301,160331]
- the dates given are yymmdd format
- the dates are inclusive
- the square brackets and comma are required
- reports are written to the
home/media
directory as, e.g.160301-160331_channel_1_usage_counts.csv
and160301-160331_channel_2_usage_counts.csv
.
- You can change the directory where the reports are written by changing
home/media/rwj_reporting/shared/config/settings.yml
output_dir
Log files are expected to be in /var/log/ezstream
. This directory is also configurable in home/media/rwj_reporting/shared/config/settings.yml
The template of the master tracking spreadsheet is held in this codebase under the /data
directory. This file is configurable in home/media/rwj_reporting/shared/config/settings.yml