• iniGetObject dotted keys

    From Ragnarok@ragnarok@DOCKSUD.remove-12k3-this to DOVE-Net.Synchronet_Discussion on Mon Dec 14 03:14:35 2020
    From Newsgroup: alt.bbs.synchronet

    To: DOVE-Net.Synchronet_Discussion
    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
    --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Nelgin@nelgin@EOTLBBS.remove-vy3-this to Ragnarok on Mon Dec 14 01:49:51 2020
    From Newsgroup: alt.bbs.synchronet

    To: Ragnarok
    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
    --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Digital Man@digital.man@vert.synchro.net.remove-41j-this to Ragnarok on Mon Dec 14 09:36:22 2020
    From Newsgroup: alt.bbs.synchronet

    To: Ragnarok
    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 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Ragnarok@ragnarok@DOCKSUD.remove-bfc-this to Digital Man on Mon Dec 14 16:16:30 2020
    From Newsgroup: alt.bbs.synchronet

    To: Digital Man
    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
    --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Ragnarok@ragnarok@DOCKSUD.remove-bfc-this to Nelgin on Mon Dec 14 16:15:46 2020
    From Newsgroup: alt.bbs.synchronet

    To: Nelgin
    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
    --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Bob Roberts@bob.roberts@HOVAL.remove-be4-this to Ragnarok on Mon Dec 14 16:32:46 2020
    From Newsgroup: alt.bbs.synchronet

    To: Ragnarok
    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
    --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Ragnarok@ragnarok@DOCKSUD.remove-3u1-this to Bob Roberts on Tue Dec 15 02:26:56 2020
    From Newsgroup: alt.bbs.synchronet

    To: Bob Roberts
    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
    --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Digital Man@digital.man@vert.synchro.net.remove-9ug-this to Ragnarok on Fri Dec 18 19:04:56 2020
    From Newsgroup: alt.bbs.synchronet

    To: Ragnarok
    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 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113