Old 13th January 2019, 09:08   #1
PARALAX
Junior Member
 
Join Date: Feb 2011
Posts: 22
Shoutcast script issues after Updating from V1 to V2

Hello!

I need some help from a capable programmer which is familiar with Shoutcast scripts. I'm using Shoutcast V1 since over 18 years but I'm planning to use Shoutcast V2 soon for our website. I have already set up and running some Shoutcast V2 test servers from our Cast Control panel. The main problem is that some of our scripts (displaying song title history, listeners stats and server status) are not working any more. Additionally displaying the "DJ Live"-Status is not possible any more due to the missing "AIM-Field" which we use in Shoutcast V1 for overriding the live status. I've attached one of the not working scripts below.

If anyone is able to help us updating the scripts, please let me know. I would also be ready for a fair payment.
Attached Files
File Type: zip listeners.zip (874.5 KB, 197 views)
PARALAX is offline   Reply With Quote
Old 13th January 2019, 19:10   #2
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,511
taking a look.... in what language are the scripts written? php, perl, html, javascript?
djSpinnerCee is offline   Reply With Quote
Old 13th January 2019, 20:27   #3
PARALAX
Junior Member
 
Join Date: Feb 2011
Posts: 22
The scripts are mostly in PHP, partially Javascript. If you can help us, please get in contact with me. I have some other scripts which are not working any more but we urgently need them to keep our radio alive.
PARALAX is offline   Reply With Quote
Old 13th January 2019, 20:44   #4
PARALAX
Junior Member
 
Join Date: Feb 2011
Posts: 22
Seems the I can't edit my post any more. The script above is one of two scripts that aren't working (Admin Panel reports: "Bad Login"). Another script for our playlist voting system results to a "internal server error" when using together with a Shoutcast 2 Port but works with V1. I don't think thats a big deal as the XML-Scripts just have to be updated, not the whole scripts.

Also it would be very nice to update our "live status scripts" which shows wether our server is running (pending) or online (streaming). This is still working partially but as Shoutcast V2 don't support additional info fields like "Stream AIM" or "Stream IRC" which we abused to send informations though our Shoutcast DSP to display the "DJ Live Status" on our website, we can't display the "DJ Live" image any more. The script simply display when the Shoutcast is online but don't display the "DJ Live" image. I think this is only possible with additional custom informations in the song artist or title but then we would need extra coding in ths script and probably custom settings in our Shoutcast DSP (if this is possible).

I also attached this simple script here so that you can see what I mean.
Attached Files
File Type: zip sc_status.zip (2.4 KB, 181 views)
PARALAX is offline   Reply With Quote
Old 15th January 2019, 01:04   #5
PARALAX
Junior Member
 
Join Date: Feb 2011
Posts: 22
No one here who can or wants to help? Just wanna let die another longtime project???

Well, it was worth a try.
PARALAX is offline   Reply With Quote
Old 15th January 2019, 05:13   #6
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 576
1. Your station won't die just because this external script doesn't work anymore. Your shoutcast servers are running without it. It counts only your listeners and regions of their IPs. So keep calm and wait for a solution.

2. The solution is not only a simple edit of the file. This script is outdated, its 10 or more years old and needs a whole recoding for php7 and Shoutcast v2, because some functions are not more valid with PHP7 and the passed XML-structure is different to shoutcast v1. The whole array have to refilled based on the v2 stucture. The used flags and IP-regions are also outdated.

Quote:
<!-- these 3 are only listed if the stream is from a SHOUTcast v1 source -->
<!-- otherwise they are not included as v2 sources do not support them -->

<IRC></IRC>
<ICQ></ICQ>
<AIM></AIM>
http://wiki.winamp.com/wiki/SHOUTcas...Server_Summary
neralex is offline   Reply With Quote
Old 16th January 2019, 15:54   #7
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,511
@PARALAX:

Do you have any screenshots of what your output looks like? @neralex is right, but there are scripts that get both the admin and public stats, so i can present the data to your html in pretty much the same way.

Another thing, with respect to the DJ Name stuff, you could create that with php and a hard file, or you can use a v2 source which provides a dj field (it also may be possible to update the dj via admincgi, similar to a track title update, so that it can be retrieved via public stats.html).

when i get something running I'll post a link or code for you to try.

edit:add the admin.cgi to update DJ name:
code:
admin.cgi?sid=#&pass=<passsword>&mode=updinfo&dj=<the_dj_name>


edit:add2 after doing the above, your /stats?sid=# will look like this... http://digitalmix.ddns.net:30011/stats?sid=2
djSpinnerCee is offline   Reply With Quote
Old 16th January 2019, 20:56   #8
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,511
related thread - multi server admin stats -- http://forums.winamp.com/showthread.php?t=451430
djSpinnerCee is offline   Reply With Quote
Old 17th January 2019, 04:23   #9
PARALAX
Junior Member
 
Join Date: Feb 2011
Posts: 22
Update

Quote:
Originally Posted by neralex View Post
2. The solution is not only a simple edit of the file. This script is outdated, its 10 or more years old and needs a whole recoding for php7 and Shoutcast v2, because some functions are not more valid with PHP7 and the passed XML-structure is different to shoutcast v1. The whole array have to refilled based on the v2 stucture. The used flags and IP-regions are also
I'm fine with PHP 5.6 and don't plan to upgrade to PHP 7 in the next few years. I only want to update to Shoutcast V2 as it's supporting mountpoints so that we can use MP3 and AAC+ simultaneous with the Auto DJ of Centova Cast an some Live DJ features. But our scripts are very important as they provide important informations for our listeners on the website. So if any one is able just to update the scripts from V1 to V2 which are compatible with multiple mountpoints to one SC2 source, I would be very happy.

@djSpinnerCee: I will get in contact with you to send you all of our scripts to explain how it's working. Would it be possible to skype with you this weekend?

Quote:
Originally Posted by corsschip View Post
Hi, maybe this script can help you?
Let me know if you are interested and i will send it to you.
Here is an example: https://www.startlinken.nl/shoutcastxmlstats/
I will take a look and contact you as well if I need to replace it completely with our current scripts. Currently we have running following which needs to be updated:

https://www.radio-paralax.de/script_...caststatus.php

The most important script is the "Vote System" which is responsible to count the listeners votes from our website. It's an individual script which was made almost 10 years before for our website but as the author isn't available any more, there was no one who could update it. Unfortunately it's not working with Shoutcast V2 any more as it results to an "internal server error" when using a SC2-Port: https://www.radio-paralax.de/script2...caststatus.php

The other script not working correctly has been attached in my first posting. It works at least partially which means that I still can see the listeners status when accessing the "status_mini.php" file. But when I try to access the "status_admin.php" file in "admin" folder, I get an "Bad Login" error: https://www.radio-paralax.de/script2...atus_admin.php

Other scripts still seems to work with Shoutcast V2:

https://www.radio-paralax.de/script2...caststatus.php (Show last 20 songs)
https://www.radio-paralax.de/script2.../sc_status.php (Shoutcast Online status and listeners counter) - It shows wether the shoutcast server is Offline (red), Online (yellow) and used by a stream source (green). But due to the missing "AIM" field inside the script we can't show the "DJ Live Status" any more. The script still stays to "green" and nothing happens. We abuse the "AIM" information from the 7.html (which still seems to exist) for switching to "DJ Live" status and show another diffenet graphics: https://www.radio-paralax.de/gfx/status_dsl_live.gif

The current Shoutcast V2 running from Port 8989 is just for testing the scripts yet. It's connected from a 8999 Port relay as our current Cast Control software don't support "SC2 Mountpoints". It should later run through just one SC2-Server. The normal working V1 functions can be checked directly from our website: https://www.radio-paralax.de/ (see right HTML widgets).

I have packed all of our scripts except the vote system due to copyright issues here:
https://drive.google.com/file/d/1dk3...ew?usp=sharing

But I also can share the link of the "vote system" script as private message for peoples who want to work on that.
PARALAX is offline   Reply With Quote
Old 2nd August 2019, 05:58   #10
theblend
Junior Member
 
Join Date: Aug 2019
Posts: 1
I would be interested in having an vote system
theblend is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Tags
nowplaying php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump