AzuraCast
Statistik zeigt interne IP-Adressen bei Docker-Installationen
Wenn externe Zuhörer mit internen IP-Adressen angezeigt werden, dann Docker-Container neu starten mit:
sudo systemctl restart docker
Update einer Docker-Installation
sudo su cd /var/azuracast ./docker.sh update-self ./docker.sh update
Sprache Übersetzung
API
Bild des Musikstücks
<?php $station = "1"; //ID der Station bei Azuracast $json_station = file_get_contents("https://demo.azuracast.com/api/nowplaying/".$station); $obj_station = json_decode($json_station); $live = $obj_station->live->streamer_name; $pls = $obj_station->now_playing->playlist; ?> <img src="//Pfad zum /img/<?php if(empty($live)) {echo $pls;}else{echo $live;} ;?>.jpg" alt="<?php if(empty($live)) {echo $pls;}else{echo $live;} ?>" style="width:250; height:auto;"><br> <?php $station = "1"; //ID der Station bei Azuracast $json_station = file_get_contents("https://demo.azuracast.com/api/nowplaying/".$station); $obj_station = json_decode($json_station); $live = $obj_station->live->streamer_name; $pls = $obj_station->now_playing->playlist; ?>
Name des Künstlers
<?php $station = "1"; //ID der Station bei Azuracast $json_station = file_get_contents("https://demo.azuracast.com/api/nowplaying/".$station); $obj_station = json_decode($json_station); $live = $obj_station->live->streamer_name; $pls = $obj_station->now_playing->playlist; ?><?php if(empty($live)) {echo $pls;}else{echo $live;} ?>
Aktuell laufender Titel
<?php $station = "1"; $json_station = file_get_contents("https://demo.azuracast.com/api/nowplaying/".$station); $obj_station = json_decode($json_station); echo "Aktuell läuft: " . $obj_station->now_playing->song->text ?>
Nächster Titel
<?php $station = "1"; $json_station = file_get_contents("https://demo.azuracast.com/api/nowplaying/".$station); $obj_station = json_decode($json_station); echo "Als nächstes läuft: " . $obj_station->playing_next->song->text ?>