You are here: Home » Topic » FireStats – Top 40 php script (now with added charts)page 11

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

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

This topic contains 175 replies, has 16 voices, and was last updated by  wwarren 10 years, 8 months ago.

Viewing 15 posts - 151 through 165 (of 176 total)
  • Author
    Posts
  • #14839

    Anonymous

    Are there any changes to the DSN after the update?

    I upgraded to svn-1696 and have served 35 songs according to the firefly server status, but firestats still shows 0. It still shows correct song, playlist and album counts, just none of the “played” values…

    #14840

    sonichouse
    Participant

    The DSN should be the same.

    Do you have the sqlite query tool for windows ?, If so, can you issue

    select count(*) from songs where play_count > 0

    Your problem may be related to this report

    #14841

    Anonymous

    Well your software appears to work perfectly. Unfortunately FireFly doesn’t record the play counts, and I have yet to find a fix for that… so I can’t really take advantage of what your script offers 🙁

    #14842

    Anonymous

    Is there an official site available? There is no documentation inside the zip-package and srsly, that really sucks…

    EDIT: Okay, if you would at least include an example firestats.ini it would maybe have been enough. Now everything works and looks pretty nice! =) But I still strongly recommend to include a short documentation!

    #14843

    Anonymous

    Here’s a sample INI file…

    [API]
    Lib = 1

    [FIREFLY]
    host = HOSTNAME
    port = PORT
    DSN = sqlite:C:/Program Files/Firefly Media Server/songs3.db

    [General]
    Debug=0
    #14844

    Anonymous

    Yes, thanks. I managed it by myself after reading through the sources, but there are users who are not able to do this (and it costs time) – so it would be really useful to update at least the first post in this topic and provide a sample file or better a short documentation there – I am just caring because I really like that add-on. =)

    #14845

    Anonymous

    The addon is really slick! I just wish the playcount field could be fixed since that bug results in really only the recently added stuff from FireStats working for me…

    #14846

    sonichouse
    Participant

    @bugmenot wrote:

    Is there an official site available? There is no documentation inside the zip-package and srsly, that really sucks…

    EDIT: Okay, if you would at least include an example firestats.ini it would maybe have been enough. Now everything works and looks pretty nice! =) But I still strongly recommend to include a short documentation!

    Hi Bugmenot,

    Sorry that your first experience was one of frustration.
    I released this to the public domain so that people could adapt/use it on their own systems – and in my own way contribute to the project.

    The software has grown organically, and feedback from other users prompted the addition of the .ini file (which is optional).

    Ron was going to bundle some of the third party plugins into a release, and I supose at that stage I would have considered some documentation, and would have made the code more robust.

    The ini structure is documented in this thread, and I had assumed that people would have found that – but I accept that I could add a default ini file for people to amend.

    Hope you enjoy using this as much as I did writing it.

    Steve.

    #14847

    paulman88

    Where do i upload these files?
    I have ubuntu Apache2 running if that helps.

    Thankyou
    Paul

    #14848

    sonichouse
    Participant

    @paulman88 wrote:

    Where do i upload these files?
    I have ubuntu Apache2 running if that helps.

    Thankyou
    Paul

    The files can reside anywhere on your web server.

    #14849

    Anonymous

    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

    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

    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?

Viewing 15 posts - 151 through 165 (of 176 total)

The forum ‘Add-on Software’ is closed to new topics and replies.