| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Fri Nov 04, 2005 10:43 pm Post subject: .xsl File Format |
|
|
Hi guys - hope you can help..
We use Icecast (obviously) for streaming our student radio station - and I've developed some software (in php) that configures and monitors it's status. [ documented here : http://jimleach.co.uk/docs/TechnicalDocument.pdf ]
One of the features I want to add is statistics - currently we use awstats for log-file analysis, but i'm looking to write a custom system..
On to the question - I'd like to get a list of all the IP addresses of all the clients currently connected, and the time they've been connected for.
Using xsl I'm trying [listclients2.xsl]:
| Code: |
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:template match="/icecast" >
<listclients>
<xsl:for-each select="icecast/source">
<xsl:for-each select="mount">
<xsl:for-each select="listener">
<listener>
<address><xsl:value-of select="IP" /></address>
<connected><xsl:value-of select="Connected" /></connected>
</listener>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</listclients>
</xsl:template>
</xsl:stylesheet>
|
The most I get out of this is a mish mash of sources, mountpoints and ID3 tags etc.
Any help would be most appreciative!
Cheers![/code] |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Jan 09, 2006 11:57 pm Post subject: Let me know too! :) |
|
|
| Hi tronicx! man, i've been looking for a way to get the IP and connected time too. i've looked high and low for this. If you find out how to achieve this, please let me know too.. thanx! |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jan 10, 2006 1:06 am Post subject: |
|
|
The per-listener stats are not actually part of the stats storage mechanism and are only added for particular admin requests. I'm experimenting with making them available for any admin request, but haven't decided on the exact internal mechanisms yet.
karl |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Jan 10, 2006 9:29 pm Post subject: |
|
|
| karlH wrote: |
The per-listener stats are not actually part of the stats storage mechanism and are only added for particular admin requests. I'm experimenting with making them available for any admin request, but haven't decided on the exact internal mechanisms yet.
karl |
As a 'wishlist request' - Could icecast log IP addresses/stats to MySQL instead of/including the xslt files. I could imagine there are a few developers out there who'd like to produce logging/stats systems but without having to do tonnes of regex on the log files (which I personally can't do for love nor money, but I can do mysql)...
Cheers |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Jan 11, 2006 12:29 am Post subject: |
|
|
You can certainly add a request into trac.xiph.org, at least that way it won't be forgotten about.
karl. |
|
| Back to top |
|
 |
EvilOverlord Forum Admin


Joined: 12 Jun 2005 Posts: 177 Location: Isle of Man
|
Posted: Wed Jan 11, 2006 5:55 am Post subject: |
|
|
| Which university? I got involved with icecast initially because I was working for keele student radio. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Fri Jan 27, 2006 2:47 pm Post subject: |
|
|
| EvilOverlord wrote: |
| Which university? I got involved with icecast initially because I was working for keele student radio. |
Portsmouth (UK) - station's called PURE (Portsmouth University Radio Experience) www.purefm.com |
|
| Back to top |
|
 |
EvilOverlord Forum Admin


Joined: 12 Jun 2005 Posts: 177 Location: Isle of Man
|
Posted: Sat Jan 28, 2006 1:33 pm Post subject: |
|
|
We used to use webalizer, but that was on icecast 1.3x.
If you need a hand, drop me a pm. |
|
| Back to top |
|
 |
|