Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Showing the status of the server on a page
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
mgross



Joined: 20 Oct 2009
Posts: 4

PostPosted: Tue Oct 20, 2009 10:05 pm    Post subject: Showing the status of the server on a page Reply with quote

I am trying to show the status of my streaming audio server on a webpage, to allow users to know if I am streaming or not. For example I would like something that turns a button green or red depending on if its available or not. My network has icmp disabled for security reasons, so I would need something that try to connect to it directly or something of that affect.

Any help would be greatly appreciated!
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Oct 21, 2009 12:17 am    Post subject: Reply with quote

sounds like you want a simple xsl page like status2.xsl

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mgross



Joined: 20 Oct 2009
Posts: 4

PostPosted: Wed Oct 21, 2009 2:47 pm    Post subject: Reply with quote

I am not too sure what you mean, create another sxl page?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Oct 21, 2009 4:01 pm    Post subject: Reply with quote

the status2.xsl page is already there, but you may wish to create one yourself if you wish to customise it further.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mgross



Joined: 20 Oct 2009
Posts: 4

PostPosted: Wed Oct 21, 2009 9:59 pm    Post subject: Reply with quote

I went ahead and tried to access the status2.xsl page and got an error in the browser and when I access the standard status.xsl page through the admin interface i get a blank page, may I am doing something wrong.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Oct 21, 2009 10:47 pm    Post subject: Reply with quote

I would agree. maybe webroot is wrong or fileserve is set to 0, hard to say with no information to go on, either way, check your xml and the error log.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mgross



Joined: 20 Oct 2009
Posts: 4

PostPosted: Thu Oct 22, 2009 3:36 pm    Post subject: Reply with quote

Ok, I now have access to the status page and it supplies information, status 2 has no format to it which explains why it is not working. Now I want some way to show if its streaming or not on a webpage that is located on another server even something that says live or not live would work just fine.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Oct 22, 2009 6:08 pm    Post subject: Reply with quote

The xsl files can be in any format _you_ wish, status2 is just an example of a simple text file, one stream per line. The question of it "not working" is too vague, could be typing error, permissions, invalid xsl file. Again without any real information it's next to impossible to say why, check what errors are reported when you try to access it.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ginom



Joined: 12 Nov 2009
Posts: 1

PostPosted: Thu Nov 12, 2009 7:49 pm    Post subject: Help status2 Reply with quote

Hi Karl.
Maybe show an example of a template to display the page, such as status2.xsl, list of all the transponders for free access, no /admin? What would go something like this.


Sorry for the bad translation of Russia -> English
Back to top
View user's profile Send private message
Nanou



Joined: 24 Nov 2009
Posts: 30

PostPosted: Thu Nov 26, 2009 2:20 pm    Post subject: details missing... Reply with quote

If I understand correctly, in those parameters :

<paths>
<basedir>./</basedir>

<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>

I must put MY WEB SITE ADRESS pointing to the xsl file ? in webroot tags? instead of ./web I put .http://blabla.com/ ?????

Please explain more... the xsl file must be on my web server ? pffff help.

Razz

Thanks
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 26, 2009 6:33 pm    Post subject: Reply with quote

I'm not sure why you are confusing the web server with icecast. webroot is the directory where icecast will look at for the non-admin files, including any xsl files.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nanou



Joined: 24 Nov 2009
Posts: 30

PostPosted: Thu Nov 26, 2009 6:53 pm    Post subject: Reply with quote

All I want is to display on an html...

I'm looking into this...

Thanks.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 26, 2009 7:04 pm    Post subject: Reply with quote

If you don't want to have the complete html page from icecast (you may have other things on there) then you can link to an icecast xsl page from an external html page if you wish. It's not really that complicated.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nanou



Joined: 24 Nov 2009
Posts: 30

PostPosted: Thu Nov 26, 2009 7:23 pm    Post subject: Reply with quote

Here is my situation. I manage to do this : I've put an html page. In that page, I put a table and in that table , I put an "iframe" tag that load my radio's status.xsl file. It works. I manage to design and looks of it and it works great. But now, another problem arraised ! when the radio is not online, then there is nothing to load so...my iframe gets emptied.....grrrrr....

I'm looking for a way to show a "remplacment" HTML if my radio is offline so visitors won't get and "page not found" error...pffffff

Getting an headache with all this lollllll

Smile
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 26, 2009 8:10 pm    Post subject: Reply with quote

why would you get a 404 response when the stream is not running, surely you would get the the xsl translated page but without any stream data on it. What we do with the authentication icons on the status page is a simple way of representing a way of providing a replacement if something is not present.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber