Skip to content

Azuracast

The Azuracast server should have Use High-Performance Now Playing Updates enabled in Administration -> System Settings

The URL used by MS to connect to Azuracast has the syntax:

[ws|wss]://HOST:[PORT]

MS will automatically add the path required for websockets, /api/live/nowplaying/websocket, to your URL if none is provided. If you use a reverse proxy with a path-based URL or otherwise need a custom path to access the websockets path correctly then explicitly provide it. Examples:

URL From Config => MS Uses
'ws://192.168.0.101' => ws://192.168.0.101/api/live/nowplaying/websocket
'ws://azura.mydomain.com' => ws://azura.mydomain.com.com/api/live/nowplaying/websocket
'wss://mydomain.com/custom/azura/ws' => wss://mydomain.com/custom/azura/ws

When autoMonitor is not explicitly set, Multi-scrobbler will set the default monitoring behavior based on if either of these settings is configured:

  • live status (AZURA_LIVE or monitorWhenLive) or
  • listener count (AZURA_LISTENERS_NUM or monitorWhenListeners)

If either is configured then MS will automatically monitor based on when these conditions are met.

If neither is configured automatic monitoring defaults to off and you should either manually initiate it or explicitly set the default behavior.

The station identifier multi-scrobbler uses (ENV AZURA_STATION or station in File/AIO config) needs to be the URL Stub or shortcode of the Azuracast station, not its display name. Use of the methods below to find an apprioriate station identifier.

The URL Stub is the value used in the URL to access the station EX

https://azura.mydomain.com/public/my-cool-station
^^^^ url stub ^^

Use my-cool-station as the station identifier.

Multi-Scrobbler does not use authentication to communicate with Azuracast. Your station will likely need some form of Public Pages in order for you to monitor it.

In your station’s Edit Station Settings -> Public Pages make sure that at least one of these is enabled:

  • Enable Public Pages
  • Enable Public APIs

Configuration Type

This is configuration for the ENV Config Type.

Environmental Variable Type Default Description
AZURA_ID string A globally unique ID EX myComponentId
AZURA_NAME string Value of AZURA_ID A vanity name EX My Cool Component
AZURA_ENABLE boolean true Should this component be used?
AZURA_STATION string The specific station to monitor
AZURA_URL string Base URL of the Azuracast instance
AZURA_KEY string API Key used to access data about private streams
AZURA_LISTENERS_NUM string
AZURA_LIVE boolean

Bold/Italic = Required