FireStats – Top 40 php script (now with added charts)

FireFly Media Server Firefly Media Server Forums Firefly Media Server Add-on Software FireStats – Top 40 php script (now with added charts)

Viewing 10 posts - 161 through 170 (of 176 total)
  • Author
    Posts
  • #14849
    Anonymous
    Inactive

    firestats seems not working on Mac OS X with apache. When clicking on the chart refresh, it hangs at 14 % for ever..

    #14850
    sonichouse
    Participant

    @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 ?

    #14851
    Anonymous
    Inactive

    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.

    #14852
    sonichouse
    Participant

    @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
    #14853
    Anonymous
    Inactive

    I 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 like

    Warning: 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?

    #14854
    sonichouse
    Participant

    Which 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
    #14855
    Anonymous
    Inactive

    XML Parsing Error: not well-formed
    Location: http***************************************************88888
    Line Number 1, Column 295:2002.0.03.0.01800Hdd svn-1696 on hdd,2000001

    it gave me an error so I need to install some packages to make it run. Which packages should I install for this to work?

    #14856
    Anonymous
    Inactive

    Could anyone explain how to install pod support in a debian system running lighttpd with php5?
    Thanks

    #14858
    wwarren
    Participant

    I”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?

    #14857
    EVILRipper
    Participant

    My 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.

Viewing 10 posts - 161 through 170 (of 176 total)
  • The forum ‘Add-on Software’ is closed to new topics and replies.