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)

Viewing 11 posts - 166 through 176 (of 176 total)
  • Author
    Posts
  • #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.

    #14859
    wwarren
    Participant

    @EVILRipper wrote:

    chmod the dir so that he does have permissions to write to the dir.

    Bingo. Thanks.

    #14860
    wwarren
    Participant

    Time info is 6 hours off for me despite having the timezone set in my php.ini file. Any idea why that might be? What I have there is:

    [Date]
    ; Defines the default timezone used by the date functions
    date.timezone = America/Chicago

    #14861
    sonichouse
    Participant

    If you look in functions.php around line 150 in function QueryToTable can you try uncommenting

    date_default_timezone_set("America/Chicago");

    That may help ?

    #14863
    wwarren
    Participant

    Odd. I’m playing a little late night music and checked to see if I still had the timezone problem. Its currently 2am on 1/24. I’ve refreshed my charts and the “played” tab shows the last songs played on 1/24 which is correct, but the “summary” tab shows that those albums played 6 hours earlier on 1/23.

    #14862
    sonichouse
    Participant

    @wwarren wrote:

    Odd. I’m playing a little late night music and checked to see if I still had the timezone problem. Its currently 2am on 1/24. I’ve refreshed my charts and the “played” tab shows the last songs played on 1/24 which is correct, but the “summary” tab shows that those albums played 6 hours earlier on 1/23.

    OK, the summary function needs to set the offset as well by the look of it.
    The best thing to try is to move the date_default_timezone_set(“America/Chicago”); call to inside the getDatabase() function – that way it will always be set.

    Can you try that, and I will amend accordingly – thanks.

    #14864
    wwarren
    Participant

    I’m not going to pretend to understand the behavior I’m seeing. Assuming I put it in the right place, moving the timezone line into the getDatabase() function didn’t do anything different. But regardless of whether the timezone line IAmerica/Chicago) is active or commented out, I’m seeing a “summary” time of GMT-12 instead of GMT-6. I tried changing the functions.php timezone from America/Chicago to Europe/London for a 0 offset, and that fixed the problem. Firestats now shows the correct time at GMT-6. Weird. I double checked that the system clock and timezone were properly set and they are. So in summary, the system clock is set to America/Chicago, php.ini has timezone set for America/Chicago and with functions.php set to America/Chicago, my times are GMT-12. If I change functions.php to Europe/London, firestats shows the correct time of GMT-6. I’m a php noob, so any assistance in explaining why this is happening is appreciated.

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