FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › Add-on Software › FireStats – Top 40 php script (now with added charts)
- This topic has 175 replies, 17 voices, and was last updated 15 years, 11 months ago by wwarren.
-
AuthorPosts
-
06/11/2008 at 7:52 AM #14849AnonymousInactive
firestats seems not working on Mac OS X with apache. When clicking on the chart refresh, it hangs at 14 % for ever..
06/11/2008 at 11:06 PM #14850sonichouseParticipant@swissy wrote:
firestats seems not working on Mac OS X with apache. When clicking on the chart refresh, it hangs at 14 % for ever..
Hi there,
not having a Mac or apache I will try and resolve this for you.
There are 7 steps in the loop that get run$actions=array("Artists", "Albums", "Genres", "Added", "Decades", "Played","Refresh Complete" );
$loopsize = count($actions);
// Calculate how many percents to advance per loop
$percent_per_loop = 100 / $loopsize;so 100/7 = 14, therefore each step is 14% – this is failing at the first hurdle when updating the Artists query.
Behind the scenes this is calling
firefly.php?mode=Artists
– does this work if you click the Artists button ?
Are there any php errors thrown ?
17/11/2008 at 11:51 AM #14851AnonymousInactiveeven the artist-page is empty.. I get no php-errors, just an empty page.
Maybe I’ll look into the code myself if I find some time.17/11/2008 at 12:22 PM #14852sonichouseParticipant@swissy wrote:
even the artist-page is empty.. I get no php-errors, just an empty page.
Maybe I’ll look into the code myself if I find some time.You can turn debug on, this may help.
An example firestats.ini file would be
[FIREFLY]
port=3689
host=localhost
DSN = sqlite:/opt/var/mt-daapd/songs3.db
[API]
Lib=1
[General]
Debug=1
09/12/2008 at 10:43 AM #14853AnonymousInactiveI cannot get it work.
I am using lighttpd on my webserver and running mt-daapd without any problem..
But firestats looks like aan impossible mission to me. No readme file and trying to learn the script by reading it through.. it is going to get some time.
I get an error likeWarning: DOMDocument::load() [domdocument.load]: PCDATA invalid Char value 17 in http://localhost:3689/server-info?output=xml, line: 1 in /var/www/firestats/functions.php on line 115
Warning: Invalid argument supplied for foreach() in /var/www/firestats/functions.php on line 118
what should I do?
11/12/2008 at 5:34 PM #14854sonichouseParticipantWhich version of firefly are you running, is it an early version ?
What does the request http://localhost:3689/server-info?output=xml return from your browser ?
I am assuming a return like
-
200
2.0.0
3.0.0
1800
slug Music
0
0
0
0
0
0
1
11/12/2008 at 9:18 PM #14855AnonymousInactiveXML Parsing Error: not well-formed
Location: http***************************************************88888
Line Number 1, Column 295:2002.0.03.0.01800Hdd svn-1696 on hdd,2000001it gave me an error so I need to install some packages to make it run. Which packages should I install for this to work?
14/12/2008 at 3:57 AM #14856AnonymousInactiveCould anyone explain how to install pod support in a debian system running lighttpd with php5?
Thanks05/01/2009 at 3:25 AM #14858wwarrenParticipantI”m on my first attempt to get firestats to work and I’m consistently getting errors like “Warning: copy(img/Added.png) [function.copy]: failed to open stream: Permission denied in /var/www/firestats/functions.php on line 357”. Various pages have the same error with just the name of the png file changing. In my /firestats/img/ folder there are no png files. Line 357 is “copy($url,$file);” What have I missed in getting this config’d?
05/01/2009 at 6:43 AM #14857EVILRipperParticipantMy guess: There are no png files. Yet. Because he has no rights to create them. chmod the dir so that he does have permissions to write to the dir.
-
AuthorPosts
- The forum ‘Add-on Software’ is closed to new topics and replies.