• iniGetObject dotted keys

    From Ragnarok@VERT/DOCKSUD to DOVE-Net.Synchronet_Discussion on Mon Dec 14 03:14:35 2020
    Hi, i try to parse the binkstats.ini to generate a report

    I have two questions:

    1) i use iniGetObjet()

    example = the_file.iniGetObject("inbound success: 4:902/25@fidonet");

    print (example.info.sys) result "info is undefined".

    how to get "dotted" keys like, info.sys, info.loc with iniGetObject() function?

    2) I found that failed_sent_files key has "[object]" value text instead
    of string human readable data like received_files key.


    [inbound success: 4:902/25@fidonet]
    oper = Ragnarok
    AKAs = 4:902/25@fidonet
    caps = MO,CM,TCP,IFC,TEL,VMP,BND,IBN,BINKD
    vers = Argus/3.210/
    info.sys = Dock Sud Argus Node 25
    info.loc = Sarandi, BsAS, Argentina
    info.phn = nt4bbs
    info.time = Sat, 20 Jun 2020 05:29:05 -0300
    info.freq =
    localtime = Jun 20 2020 02:29:05
    failed_sent_files = [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object
    received_files = /sbbs/temp/0386001A.REQ


    Thanks!

    Saludos!

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Nelgin@VERT/EOTLBBS to Ragnarok on Mon Dec 14 01:49:51 2020
    Ragnarok wrote:
    Hi, i try to parse the binkstats.ini to generate a report

    I have two questions:

    1) i use iniGetObjet()

    example = the_file.iniGetObject("inbound success: 4:902/25@fidonet");

    print (example.info.sys) result "info is undefined".

    how to get "dotted" keys like, info.sys, info.loc with iniGetObject() function?

    Did you try
    ["example.info.sys"]

    2) I found that failed_sent_files key has "[object]" value text instead
    of string human readable data like received_files key.

    That's not a question.

    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
  • From Digital Man@VERT to Ragnarok on Mon Dec 14 09:36:22 2020
    Re: iniGetObject dotted keys
    By: Ragnarok to DOVE-Net.Synchronet_Discussion on Mon Dec 14 2020 03:14 am

    Hi, i try to parse the binkstats.ini to generate a report

    I have two questions:

    1) i use iniGetObjet()

    example = the_file.iniGetObject("inbound success: 4:902/25@fidonet");

    print (example.info.sys) result "info is undefined".

    how to get "dotted" keys like, info.sys, info.loc with iniGetObject() function?

    example["info.sys"]

    I could change those "info." items to "info_" if that'd make it easier for you.

    2) I found that failed_sent_files key has "[object]" value text instead
    of string human readable data like received_files key.


    [inbound success: 4:902/25@fidonet]
    oper = Ragnarok
    AKAs = 4:902/25@fidonet
    caps = MO,CM,TCP,IFC,TEL,VMP,BND,IBN,BINKD
    vers = Argus/3.210/
    info.sys = Dock Sud Argus Node 25
    info.loc = Sarandi, BsAS, Argentina
    info.phn = nt4bbs
    info.time = Sat, 20 Jun 2020 05:29:05 -0300
    info.freq =
    localtime = Jun 20 2020 02:29:05
    failed_sent_files = [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object
    received_files = /sbbs/temp/0386001A.REQ

    Ah, interesting. I'll have to take a look at that.
    --
    digital man

    This Is Spinal Tap quote #3:
    How much more black could this be? and the answer is none. None more black. Norco, CA WX: 56.5°F, 76.0% humidity, 3 mph WSW wind, 0.02 inches rain/24hrs ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT/DOCKSUD to Nelgin on Mon Dec 14 16:15:46 2020
    El 14/12/20 a las 04:49, Nelgin escribi¢:
    Ragnarok wrote:
    Hi, i try to parse the binkstats.ini to generate a report

    I have two questions:

    1) i use iniGetObjet()

    example = the_file.iniGetObject("inbound success: 4:902/25@fidonet");

    print (example.info.sys) result "info is undefined".

    how to get "dotted" keys like, info.sys, info.loc with iniGetObject()
    function?

    Did you try
    ["example.info.sys"]

    example["info.sys"] dit the trick!

    thanks!


    2) I found that failed_sent_files key has "[object]" value text instead
    of string human readable data like received_files key.

    That's not a question.


    It's true, s/questions/issues/ jeje!

    thanks!

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Ragnarok@VERT/DOCKSUD to Digital Man on Mon Dec 14 16:16:30 2020
    El 14/12/20 a las 14:36, Digital Man escribi¢:
    Re: iniGetObject dotted keys
    By: Ragnarok to DOVE-Net.Synchronet_Discussion on Mon Dec 14 2020 03:14 am

    > Hi, i try to parse the binkstats.ini to generate a report
    >
    > I have two questions:
    >
    > 1) i use iniGetObjet()
    >
    > example = the_file.iniGetObject("inbound success: 4:902/25@fidonet");
    >
    > print (example.info.sys) result "info is undefined".
    >
    > how to get "dotted" keys like, info.sys, info.loc with iniGetObject()
    > function?

    example["info.sys"]

    thanks. it's works!

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Bob Roberts@VERT/HOVAL to Ragnarok on Mon Dec 14 16:32:46 2020
    Re: Re: iniGetObject dotted keys
    By: Ragnarok to Digital Man on Mon Dec 14 2020 04:16 pm

    Hi, i try to parse the binkstats.ini to generate a report

    I hope you share your program once you get it working. I'd like to be able to run stats myself.

    |01bobbobbobbob|09bob|03bob|11bob|03bob|09bob|01bobbobbob |01robrobrobrob|09rob|03rob|11rob|03rob|09rob|01robrobrob |07


    ... A Vulcan can no sooner be disloyal than he can exist without breathing.

    ---
    ■ Synchronet ■ Halls of Valhalla =San=Francisco= Happy Holidays
  • From Ragnarok@VERT/DOCKSUD to Bob Roberts on Tue Dec 15 02:26:56 2020
    El 14/12/20 a las 21:32, Bob Roberts escribi¢:
    Re: Re: iniGetObject dotted keys
    By: Ragnarok to Digital Man on Mon Dec 14 2020 04:16 pm

    > >> Hi, i try to parse the binkstats.ini to generate a report

    I hope you share your program once you get it working. I'd like to be able to run stats myself.


    Sure, I'm thinking of having some call lists to maybe create bulletings.

    For now, i just testing to access the data from js script, nothing more
    or "usable"

    http://paste.debian.net/1176946/

    Save as .js file at your /sbbs/mods directory and run with jsexec

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Digital Man@VERT to Ragnarok on Fri Dec 18 19:04:56 2020
    Re: iniGetObject dotted keys
    By: Ragnarok to DOVE-Net.Synchronet_Discussion on Mon Dec 14 2020 03:14 am

    failed_sent_files = [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object

    That should be fixed now.
    --
    digital man

    Rush quote #41:
    Angels and demons dancing in my head, lunatics and monsters underneath my bed Norco, CA WX: 61.2°F, 22.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net