From f9dd4c25610cc86ed650f43834ec2b8571b3349b Mon Sep 17 00:00:00 2001 From: Buster Neece Date: Tue, 23 Jul 2024 09:14:02 -0500 Subject: [PATCH] Add instructions about simple text file. --- src/content/docs/docs/developers/now-playing-data.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/content/docs/docs/developers/now-playing-data.md b/src/content/docs/docs/developers/now-playing-data.md index 2af5aee..51582a7 100644 --- a/src/content/docs/docs/developers/now-playing-data.md +++ b/src/content/docs/docs/developers/now-playing-data.md @@ -129,6 +129,18 @@ http://your-azuracast-site.example.com/api/nowplaying_static/station_shortcode.j Implementations of this method look exactly the same as for the Standard Now Playing API (above), except with the URL updated to the static URL for the station. +## Simple Text File + +AzuraCast also generates a simple text file containing `Artist - Title` for each station. This can be useful if you need to fetch the current playing track for display or in automation tools. + +The URL of the text file follows the format: + +``` +http://your-azuracast-site.example.com/api/nowplaying_static/station_shortcode.txt +``` + +...replacing `station_shortcode` with the station's abbreviated name (i.e. `azuratest_radio` for "AzuraTest Radio"). + ## High-Performance Updates We deliver a high-performance (low-latency and low server CPU burden) Now Playing feed thanks to a realtime messaging library called [Centrifugo](https://centrifugal.dev/). Using this connection method, each listener gets immediate track updates while only maintaining a single lightweight HTTP connection.