<?php
// this makes a lot of assumptions but it works with azuracast webhooks
file_put_contents(
"now_playing.txt",
json_decode(file_get_contents('php://input'))->now_playing->song->text
);