| View previous topic :: View next topic |
| Author |
Message |
mgross
Joined: 20 Oct 2009 Posts: 4
|
Posted: Tue Oct 20, 2009 10:05 pm Post subject: Showing the status of the server on a page |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 21, 2009 12:17 am Post subject: |
|
|
sounds like you want a simple xsl page like status2.xsl
karl. |
|
| Back to top |
|
 |
mgross
Joined: 20 Oct 2009 Posts: 4
|
Posted: Wed Oct 21, 2009 2:47 pm Post subject: |
|
|
| I am not too sure what you mean, create another sxl page? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 21, 2009 4:01 pm Post subject: |
|
|
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 |
|
 |
mgross
Joined: 20 Oct 2009 Posts: 4
|
Posted: Wed Oct 21, 2009 9:59 pm Post subject: |
|
|
| 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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 21, 2009 10:47 pm Post subject: |
|
|
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 |
|
 |
mgross
Joined: 20 Oct 2009 Posts: 4
|
Posted: Thu Oct 22, 2009 3:36 pm Post subject: |
|
|
| 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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Oct 22, 2009 6:08 pm Post subject: |
|
|
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 |
|
 |
Ginom
Joined: 12 Nov 2009 Posts: 1
|
Posted: Thu Nov 12, 2009 7:49 pm Post subject: Help status2 |
|
|
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 |
|
 |
Nanou
Joined: 24 Nov 2009 Posts: 30
|
Posted: Thu Nov 26, 2009 2:20 pm Post subject: details missing... |
|
|
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.
Thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Nov 26, 2009 6:33 pm Post subject: |
|
|
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 |
|
 |
Nanou
Joined: 24 Nov 2009 Posts: 30
|
Posted: Thu Nov 26, 2009 6:53 pm Post subject: |
|
|
All I want is to display on an html...
I'm looking into this...
Thanks. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Nov 26, 2009 7:04 pm Post subject: |
|
|
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 |
|
 |
Nanou
Joined: 24 Nov 2009 Posts: 30
|
Posted: Thu Nov 26, 2009 7:23 pm Post subject: |
|
|
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
 |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Nov 26, 2009 8:10 pm Post subject: |
|
|
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 |
|
 |
|