Automation & Event Triggers
brūhi provides several layers of broadcast automation, allowing stations to run unattended 24/7, transition between live and automated programming, and audit background execution events.
1. Automation Layers Overview
Section titled “1. Automation Layers Overview”| Automation Layer | Platform | Purpose | Primary Controls |
|---|---|---|---|
| Format Clock Engine | Cloud | 60-minute hour wheels, artist separation, 7×24 weekly grid | Format Clocks & Rotation |
| Auto DJ | Desktop & Cloud | Continuous automatic queue refill from playlists or folders | Live Broadcast workspace toggle |
| Calendar Show Automation | Desktop | Automated show and playlist switching by calendar blocks | Schedule & Show Planning |
| brūhi Script | Desktop | Programmatic music curation and custom rotation scripts | Script Editor (⌘4 / Script Tab) |
| Automation Event Logs | Desktop & Cloud | Station trigger history, schedule switches, and execution logs | System Settings → Automation Event Logs |
2. Auto DJ Mode
Section titled “2. Auto DJ Mode”Auto DJ is the simplest way to run unattended broadcasting:
- Automatic Queue Refill: When enabled in the broadcast toolbar, Auto DJ monitors the station queue. Whenever the queue falls below its threshold (e.g., 2 tracks remaining), it automatically selects and queues the next track.
- Source Selection: Auto DJ can draw tracks from a selected playlist, smart playlist, or library category.
- Emergency Fallback: If a live DJ disconnects or a scheduled show finishes with no subsequent show queued, Auto DJ activates automatically to prevent dead air.
3. brūhi Script (Desktop Automation)
Section titled “3. brūhi Script (Desktop Automation)”For broadcasters who need custom algorithmic track selection beyond standard rules:
- Custom Selection Scripts: Write lightweight scripts to filter, sort, and assemble broadcast queues dynamically.
- Dry-Run Preview: Run scripts in dry-run mode to preview matched audio items, execution time (in milliseconds), and diagnostic log output before airing.
- Integration with Smart Playlists: Output from scripts can be fed directly into active broadcast queues or rotation slots.
4. Automation Event Logs (System → Automation)
Section titled “4. Automation Event Logs (System → Automation)”In both Desktop and Cloud, background automation events and trigger executions are recorded to an append-only log view (AutomationPanel.svelte):
- Event Filtering: Filter logs by trigger type (
schedule,source_change,stream_start,stream_stop,manual) or execution status (successvsfailed). - Audit Details: Inspect timestamped execution results, rule IDs, and response messages.
- Auto-Refresh: Live telemetry updates as background schedule switches and automated transitions occur.
Related Guides
Section titled “Related Guides”- Format Clock Wheels: Design automated 60-minute hour wheels in Format Clocks & Rotation.
- Calendar Scheduling: Schedule shows and calendar blocks in Schedule & Show Planning.
- Playout Logs: Review broadcast compliance logs in Playout History.