Skip to content

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.


Automation LayerPlatformPurposePrimary Controls
Format Clock EngineCloud60-minute hour wheels, artist separation, 7×24 weekly gridFormat Clocks & Rotation
Auto DJDesktop & CloudContinuous automatic queue refill from playlists or foldersLive Broadcast workspace toggle
Calendar Show AutomationDesktopAutomated show and playlist switching by calendar blocksSchedule & Show Planning
brūhi ScriptDesktopProgrammatic music curation and custom rotation scriptsScript Editor (⌘4 / Script Tab)
Automation Event LogsDesktop & CloudStation trigger history, schedule switches, and execution logsSystem Settings → Automation Event Logs

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.

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 (success vs failed).
  • Audit Details: Inspect timestamped execution results, rule IDs, and response messages.
  • Auto-Refresh: Live telemetry updates as background schedule switches and automated transitions occur.