sul-dlss/rwj_reporting

Name: rwj_reporting

Owner: Stanford University Digital Library

Description: Riverwalk Jazz license reporting script - reads logs to get usage counts for shows

Created: 2016-04-04 20:35:10.0

Updated: 2018-05-15 19:14:26.0

Pushed: 2018-05-15 19:14:27.0

Homepage: null

Size: 73

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status | Coverage Status | Code Climate

Script to get usage counts from logs for Riverwalk Jazz.

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.

Usage

  1. log in to libstream box as media user
  2. cd rwj_reporting/current (end up in home/media/rwj_reporting/current)
  3. rake reports[160301,160331]
  4. the dates given are yymmdd format
  5. the dates are inclusive
  6. the square brackets and comma are required
  7. reports are written to the home/media directory as, e.g. 160301-160331_channel_1_usage_counts.csv and 160301-160331_channel_2_usage_counts.csv.
  8. 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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.