ElvishArtisan / rivendell

A full-featured radio automation system targeted for use in professional broadcast and media environments
205 stars 64 forks source link

rdlogmanager commandline report doesn't work as expected #917

Closed Chester-Graham closed 11 months ago

Chester-Graham commented 11 months ago

Rivendell 3.6.7 Schema 347 Centos 7 with standard install instructions.

rdlogmanager -d -5 -e -5 -r "KASK Health" returns an empty report rdlogmanager -d -5 -e -6 -r "KASK Health" returns a report for 2 days

rdlogmanager -d -5 -r "KASK Health" returns a report that includes everything in the last 5 days.

How do I get a report that contains cuts from only 5 days ago?

Chester-Graham commented 11 months ago

Never mind, I am not sure why I was seeing this. The first time I ran my script to generate these files for the last 30 days I got blank files. But now it appears to be working as expected.

Chester-Graham commented 11 months ago

Script was

!/bin/bash

Generate Playout Reports of what played for Stations

day=-5

Loop to generate reports for consecutive days

while [ "$day" -le 0 ]; do rdlogmanager -d $day -e $day -r "KASK Health" rdlogmanager -d $day -e $day -r "KFHL Health" rdlogmanager -d $day -e $day -r "WBAJ Health" rdlogmanager -d $day -e $day -r "WGTT Health" rdlogmanager -d $day -e $day -r "WHFG Health" rdlogmanager -d $day -e $day -r "WSJC Health" rdlogmanager -d $day -e $day -r "WTCG Health"

    # Increment the day variable by 1
((day++))

done