The script will show currently playing track title along with its cover art. Also shows recently played tracks.
How to use
1. Install the script on your web site
Download the attached nowplaying.zip and upload files from the archive to your web site. Files must be uploaded to a folder accessible publicly from the web - e.g. public_html, www.
2. Create HTTP request in RadioBOSS
- Open the Settings window, navigate to Reports
- Check the Enable notifications checkbox
- Enable the Save artwork option to make RadioBOSS export the artwork information (otherwise the %artwork variable used in the HTTP request will not work)
- Add new request using the + button and enter the following URL (replace the web site address)
- Change the Method to POST.
Please see this link for more info about using notifications in RadioBOSS: https://manual.djsoft.net/radioboss/en/http_request.htm
3. See it in action
Start playback in RadioBOSS to make it send the playing track info to the script.
Navigate to http://www.yoursite.com/nowplaying.html you should see the title and album cover displayed (see the image attached).
The nowplaying.html is an example on how the data is displayed. You can copy parts from it to your real web site pages to display the data where needed.
Security
Once everything works, change the script access key ($key) in nowplaying.php and enter the new access key in HTTP request in RadioBOSS (the &key= parameter in the URL).
Access key makes sure that only allowed requests will come through.
Troubleshooting
If you see error 500 in RadioBOSS with message like "Failed to write to a file", it probably means the script does not have permission to save data to files. You should allow write permission for the following files:
- nowplaying_artwork.png
- nowplaying_title.txt
mode 666 should work, you can also try 755 or 777.
How to use
1. Install the script on your web site
Download the attached nowplaying.zip and upload files from the archive to your web site. Files must be uploaded to a folder accessible publicly from the web - e.g. public_html, www.
2. Create HTTP request in RadioBOSS
- Open the Settings window, navigate to Reports
- Check the Enable notifications checkbox
- Enable the Save artwork option to make RadioBOSS export the artwork information (otherwise the %artwork variable used in the HTTP request will not work)
- Add new request using the + button and enter the following URL (replace the web site address)
Code:
http://www.yoursite.com/nowplaying/nowplaying.php?casttitle=%casttitle&artwork=%artwork&key=TB21Dr3km
Please see this link for more info about using notifications in RadioBOSS: https://manual.djsoft.net/radioboss/en/http_request.htm
3. See it in action
Start playback in RadioBOSS to make it send the playing track info to the script.
Navigate to http://www.yoursite.com/nowplaying.html you should see the title and album cover displayed (see the image attached).
The nowplaying.html is an example on how the data is displayed. You can copy parts from it to your real web site pages to display the data where needed.
Security
Once everything works, change the script access key ($key) in nowplaying.php and enter the new access key in HTTP request in RadioBOSS (the &key= parameter in the URL).
Access key makes sure that only allowed requests will come through.
Troubleshooting
If you see error 500 in RadioBOSS with message like "Failed to write to a file", it probably means the script does not have permission to save data to files. You should allow write permission for the following files:
- nowplaying_artwork.png
- nowplaying_title.txt
mode 666 should work, you can also try 755 or 777.
Attachments
Last edited: