The script can be found here with a suggestion of what the triggering crontab line would look like.
Make the script runnable by
chmod +x <script.sh>
To add/update a trigger run
cronjob -e
Since we have a speaker connected the radio, I created a simple script that will read out the ip. The file also includes steps of how to add it to the systemd
startup.