Website Integration

dblevins

Member
Hi, I'm new here after using a different radio software for over 20 years. It took a little time but I think I have now got RadioBoss working to my requirments. My next step is to try to get this all displaying on my website. So far I have a player and the artist and song title displaying, but I have only achieved this by sending the info to the music server and then using a widget from them inserted into the site. I have not been able to display the album title or the album art yet.

The previous software came with templates that I was able to edit to suit my purposes. My knowledge of code such as html or php etc is limited to editing only. I do not have the abilty to write what I need from scratch.

The features I want to add "back" to my website are
Artist Playing
Song TIltle
Album
Album Art
Automated Request facility
and top ten requested.

That database and software is on my home computer. ( I am familar with using static ip's to manage requests)

First question. Is with what I want to achive possible or should I be considering moving from sqlite to mysql before I start?
2nd question, are there any templates already written to achieve any of this?
 
Does the info for artist, track, album etc only work with php. Can this be set up with http?
PHP is a scripting language while HTML is a markup language to present the content.
When you use the notifications in RadioBOSS they will call a script on your web site, it can be a PHP script or anything else e.g. ASP.NET. Basically specking, the script will grab the info that's sent by RadioBOSS, postprocess it if needed and then generate HTML/JavaScript to display it.
 
Thank you. I have it working. Is there any way to filter out Jingles, Commercials etc so that they do not show in the tracks playing or played. Also is there anyway to apply artwork to News runs or external braodcast links.
 
Thank you. I have it working. Is there any way to filter out Jingles, Commercials etc so that they do not show in the tracks playing or played. Also is there anyway to apply artwork to News runs or external braodcast links.
You can use the File Types feature to prevent sending their titles to the server: https://manual.djsoft.net/radioboss/en/using_different_types_of_files.htm (this will also affect the CASTTITLE field when using the HTTP notifications).

Another way would be to filter those with your script.
 
The only thing I am still struggling with is the request box. I have copied and configured the example script, but I cannot get past the error "Song request failed: unable to load music library. Error: Failed to connect to xxxxxxx.no-ip.biz port 9000: Connection refused.

I have checked no-ip and it appears to be working fine
I have checked the settings on the FIrewall and that seems to be configured ok (Note I also tested with the firewall off, but still could not get a connection)
I have created an additional inbound rule specifically for port 9000, that didn't work either
I have checked using canyouseeme.org to make sure that port 9000 is forwarding correctly. That shows success
I am not using Https or anything similar before the no-ip address
But still no success in getting a connection

Is there anything more you can suggest?

Note, I am also confused regarding the Library name ie $rb_library = 'Music';. (Maybe that is my issue) Is this just the name I choose when creating the Music Library? I made that assumption and changed the music to Music in case it was case sensitive.

Do I need to create an xml file myself or has the library already created that?
 
Just an update. This issue appears to lie with the server. It works perfectly from my home server and also from the server of my developer.
 
Now that I have it working. Is there any way to generate a top 10 requested within a specific time frame or would I need to monitor this manually
 
Song request failed: unable to load music library. Error: Failed to connect to xxxxxxx.no-ip.biz port 9000: Connection refused.
This clearly means the connection is not possible. If your connection is via a router, you need to configure port forwarding.

Note, I am also confused regarding the Library name ie $rb_library = 'Music';. (Maybe that is my issue)
If library name was the problem, the error message would be different.

Do I need to create an xml file myself or has the library already created that?
No XML files are needed at all, the XML files were a thing before RadioBOSS v6.

Now that I have it working. Is there any way to generate a top 10 requested within a specific time frame or would I need to monitor this manually
You need to monitor this yourself using the songrequest API.
 
Thought I had it working, but it only works on some servers.
On others I have the error "Song request failed: unable to parse music library XML data"

Closer inspection sees to show there is some unidentified character at the very beginning of the response which seems to be causing issue to read XML data.
 

Attachments

  • image.png
    image.png
    104.5 KB · Views: 47
What song request script do you use? Probably you can modify it to make it trim those two characters at the beginning - those appear to be UTF8 BOM characters. If your script is written in PHP you can probably call trim() function on the XML data before feeding it to the parser.
 
What song request script do you use? Probably you can modify it to make it trim those two characters at the beginning - those appear to be UTF8 BOM characters. If your script is written in PHP you can probably call trim() function on the XML data before feeding it to the parser.
As you may have noticed from another post, I sorted this by re-writting the script. It seems the issue was in relation to the large size of the library. The script worked on some servers and not on others. We never did get to the bottom of the difference between the servers where it worked and the servers where it didn't despite having several developers and the team who manage my server all working on it.
 
The script worked on some servers and not on others. We never did get to the bottom of the difference between the servers
Looks like the servers had different memory limit options. Or CPU load. You may consider using a smaller library for song requests.
 
Back
Top