• Graphical chart-based door stats web page for Synchronet

    From Nightfox@1:103/705 to All on Sat Jul 13 12:27:30 2024
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From nelgin@1:103/705 to Nightfox on Sat Jul 13 22:42:40 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:08 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)
  • From nelgin@1:103/705 to All on Sun Jul 14 23:46:22 2024
    On Sun, 14 Jul 2024 15:08:09 -0700
    "Nightfox" (VERT/DIGDIST) <VERT/DIGDIST!Nightfox@endofthelinebbs.com>
    wrote:
    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
    Dunno man, maybe you found a bug.
    $ wget https://shorturl.at/ycuoZ
    --2024-07-13 22:27:35-- https://shorturl.at/ycuoZ
    Resolving shorturl.at (shorturl.at)... 104.26.9.129, 104.26.8.129, 172.67.69.88, ... Connecting to shorturl.at
    (shorturl.at)|104.26.9.129|:443... connected. HTTP request sent,
    awaiting response... 301 Moved Permanently
    Location: https://www.shorturl.at/ycuoZ [following] --2024-07-13 22:27:36-- https://www.shorturl.at/ycuoZ
    Resolving www.shorturl.at (www.shorturl.at)... 104.26.8.129, 104.26.9.129, 172.67.69.88, ...
    Connecting
    to www.shorturl.at (www.shorturl.at)|104.26.8.129|:443... connected. HTTP request sent, awaiting response... 302 Found
    Location: http://www.digitaldistortionbbs.com/api/files.ssjs?call=download-file&dir=bbsfile_syncutil&fg]
    --2024-07-13
    22:27:36-- http://www.digitaldistortionbbs.com/api/files.ssjs?call=download-file&dir=bbsb.zip Resolving www.digitaldistortionbbs.com (www.digitaldistortionbbs.com)... 50.39.138.73
    Connecting
    to www.digitaldistortionbbs.com (www.digitaldistortionbbs.com)|50.39.138.73|:80... connecte HTTP request sent, awaiting response... 200 OK
    Length: 267243 (261K) [application/octet-stream]
    Saving to: ‘ycuoZ’
    ycuoZ 100%[=======================================================>] 260.98K
    2024-07-13 22:27:36 (993 KB/s) - ‘ycuoZ’ saved [267243/267243]
    --
    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)