• Re: Graphical chart-based door stats web page for Synchronet

    From nelgin@1:103/705 to Nightfox on Sat Jul 13 22:42:41 2024
    On Sat, 13 Jul 2024 12:27:31 -0700
    "Nightfox" (VERT/DIGDIST) <VERT/DIGDIST!Nightfox@endofthelinebbs.com>
    wrote:
    A while ago, I made a web page for Synchronet's web server that
    displays door usage stats for the top doors on a BBS. An example,
    from my BBS:

    http://www.digitaldistortionbbs.com/digdist-pages/DoorStats.xjs

    It uses the open-source chart.js library.

    I've made this available for download in case any other Synchronet
    sysops would want to set this up on their
    BBS: https://shorturl.at/ycuoZ

    Full URL: http://www.digitaldistortionbbs.com/api/files.ssjs?call=download-file&dir=bbsfi
    le_syncutil&file=DoorSWeb.zip

    In case of any issues with the above URLS, you can go to my
    Synchronet Utilities area and download it from there
    (DoorSWeb.zip): http://www.digitaldistortionbbs.com/?page=002-files.xjs&dir=bbsfile_syncutil

    To get the door stats, it uses another JS script which I wrote to
    parse the Synchronet logs for door usage information for the time
    period of the logs, such as the number of times run, and top door
    users. Parsing the logs is probably brittle, as the log format might
    change, but I thought something like this could be cool/useful.

    Nightfox

    ---
    â–  Synchronet â–  Digital Distortion: digitaldistortionbbs.com
    This is very nice, but I have two observations.
    End Of The Line BBS door stats
    Time period: 2019-12-30 12:05 to 2024-07-13 20:42
    Having so many logs, it took a couple of minutes to generate. Maybe it
    could be turned into something that can be run as a daily maintenance
    task and create static images.
    OR to reduce runtime, you could keep a note of the last run and the
    statistics and then a new run will pick up from where the last one
    finished. This is even more useful if you delete old logs, you can
    still keep your statistics.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    ï¿­ Synchronet ï¿­ End Of The Line BBS - endofthelinebbs.com
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to nelgin on Sun Jul 14 15:00:42 2024
    Re: Re: Graphical chart-based door stats web page for Synchronet
    By: nelgin to Nightfox on Sat Jul 13 2024 10:42 pm

    This is very nice, but I have two observations. End Of The Line BBS door stats Time period: 2019-12-30 12:05 to 2024-07-13 20:42 Having so many logs, it took a couple of minutes to generate. Maybe it could be turned into something that can be run as a daily maintenance task and create static images.
    OR to reduce runtime, you could keep a note of the last run and the statistics and then a new run will pick up from where the last one finished. This is even more useful if you delete old logs, you can still keep your statistics.

    Yeah, makes sense. I could probably make a script that could be run as a timed event that will write the statistics to a JSON file that the page could read.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to nelgin on Sun Jul 14 15:08:09 2024
    Re: Re: Graphical chart-based door stats web page for Synchronet
    By: nelgin to Nightfox on Sat Jul 13 2024 10:42 pm

    Also, odd, although you say you've tried it, my BBS still says the file has been downloaded 0 times..

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)