• Re: Synchronet Javascript

    From Ktulu@VERT/ROI to Tracker1 on Wed Apr 16 08:14:00 2008
    Re: Re: Synchronet Javascript
    By: Tracker1 to Ktulu on Tue Apr 15 2008 11:13 am

    Hey thanks a lot for the pointers, I appreciate it. I guess if I would have poked around enough and RTFM I woudl have found out how to do it. Thanks again!!!!

    --
    Jim
    ---
    þ Synchronet þ Realm of Insanity telnet://roi.synchro.net
  • From Zero Reader@VERT/ALKY to KenDB3 on Thu Jul 28 15:22:00 2016
    On 07/27/16, KenDB3 said the following...

    For reference, I am trying to grab the data found here: http://www.hamqsl.com/solarxml.php

    I made a mod for my board using that very same feed. I did it in Python with the xmltodict module and just have it outputting an ANSI file that I then display on the board. Piece of cake!

    --- Mystic BBS v1.12 A30 (Raspberry Pi)
    * Origin: Alcoholiday / Est. 1995 / alco.bbs.io
  • From Zero Reader@VERT/ALKY to KenDB3 on Thu Jul 28 16:47:00 2016
    On 07/27/16, KenDB3 said the following...

    For reference, I am trying to grab the data found here: http://www.hamqsl.com/solarxml.php

    I didn't do this with java, but I thought you might get a kick out of the output:

    .-----------------------------------------------------------------------------. | Current Solar-Terrestrial Data, Updated: 28 Jul 2016 1424 GMT | +-----------------------------------------------------------------------------+ | Solar Flux Index : 71 Electron Flux : 4.41e+01 | | A Index : 4 Aurora : 1/n=1.99 | | K Index : 2 Mag. Field (Bz) : 1.8 | | X-ray : A5.8 Solar Wind : 393.8 | | Sunspot Number : 0 Geomagnetic Field : QUIET | | Helium Line (304A) : 110.6 @ SEM Signal Noise : S1-S2 | | Proton Flux : 2.10e-01 MUF @ Boulder, CO : 11.01 | +-----------------------------.----------------------------.------------------+ | HF Conditions | VHF Conditions |`. \ ' / .'| | --------------------------- | | `. .-*""*-. .' | | Bands Day Night | Aurora Lat : 67.5 |-._ /.*. .*.\ _.-| | --------------------------- | Aurora : Band Closed | : <x> <x> ; __| | 80m - 40m Fair Good | 6m EsEU : 50MHz ES |""': .. ; | | 30m - 20m Fair Fair | 4m EsEU : Band Closed |-*" \ ____ / "*-| | 17m - 15m Poor Poor | 2m EsEU : High MUF | .' `-.__.-' `. | | 12m - 10m Poor Poor | 2m EsNA : Band Closed |.hamqsl.com/solar.| `-----------------------------^----------------------------^------------------'
    ALCO-SOLAR v. 1.0 / by zERO rEADER / data from N0NBH

    Everything is colorized "Amiga" style. The band conditions are colorized
    the exact same way you see them on hamqsl.com. The sun graphic in the bottom right corner goes from "sad" to "happy" depending on the SFI. You can see
    right now he's "dead" as the flux is very low.

    The basic idea was to get the data from the feed, and just append it to the bottom of the template. ANSI positional codes (in this case, Mystic's MCI codes) are used to move the data to the right place in the template.

    --- Mystic BBS v1.12 A30 (Raspberry Pi)
    * Origin: Alcoholiday / Est. 1995 / alco.bbs.io
  • From KenDB3@VERT/KD3NET to Zero Reader on Fri Jul 29 04:14:19 2016
    On 07/27/16, KenDB3 said the following...

    For reference, I am trying to grab the data found here: http://www.hamqsl.com/solarxml.php

    I didn't do this with java, but I thought you might get a kick out of the output:

    .--------------------------------------------------------------------------- --. | Current Solar-Terrestrial Data, Updated: 28 Jul 2016 1424 GMT
    | +------------------------------------------------------------------------- ----+ | Solar Flux Index : 71 Electron Flux : 4.41e+01 | | A Index : 4 Aurora
    : 1/n=1.99 | | K Index : 2 Mag. Field (Bz)
    : 1.8 | | X-ray : A5.8 Solar Wind
    : 393.8 | | Sunspot Number : 0 Geomagnetic Field : QUIET | | Helium Line (304A) : 110.6 @ SEM Signal Noise
    : S1-S2 | | Proton Flux : 2.10e-01 MUF @ Boulder, CO : 11.01 | +-----------------------------.---------------------------- .------------------+ | HF Conditions | VHF Conditions |`. \ ' / .'| | --------------------------- |
    | `. .-*""*-. .' | | Bands Day Night | Aurora Lat : 67.5
    |-._ /.*. .*.\ _.-| | --------------------------- | Aurora : Band Closed | : <x> <x> ; __| | 80m - 40m Fair Good | 6m EsEU : 50MHz ES |""': .. ; | | 30m - 20m Fair Fair | 4m EsEU
    : Band Closed |-*" \ ____ / "*-| | 17m - 15m Poor Poor | 2m EsEU : High MUF | .' `-.__.-' `. | | 12m - 10m Poor Poor | 2m EsNA : Band Closed |.hamqsl.com/solar.| `-----------------------------^--------- -------------------^------------------'
    ALCO-SOLAR v. 1.0 / by zERO rEADER / data from N0NBH

    Everything is colorized "Amiga" style. The band conditions are colorized
    the exact same way you see them on hamqsl.com. The sun graphic in the bottom right corner goes from "sad" to "happy" depending on the SFI. You can see right now he's "dead" as the flux is very low.

    The basic idea was to get the data from the feed, and just append it to the bottom of the template. ANSI positional codes (in this case, Mystic's MCI codes) are used to move the data to the right place in the template.

    Aha! So, you are the one who wrote that! Someone showed me a screen shot of it and asked if I could do something like it for Synchronet. I'm honestly not sure I can, lol.

    You did a really great job, I wanted to say kudos. Would you mind if I tried to emulate what you did? Or, if your work is open source, would you mind if tried to rewrite the whole thing from Python into Javascript and credit you with the module?

    My post was basically because I was tinkering around to see if I could even play with the data before I started attempting to write anything else.

    ~KenDB3

    ---
    þ Synchronet þ KD3net-Rhode Island's only BBS about nothing. http://bbs.kd3.us
  • From Mro@VERT/BBSESINF to Zero Reader on Fri Jul 29 05:35:07 2016
    Re: Re: Synchronet Javascript
    By: Zero Reader to KenDB3 on Thu Jul 28 2016 09:47 am

    The basic idea was to get the data from the feed, and just append it to the bottom of the template. ANSI positional codes (in this case, Mystic's MCI codes) are used to move the data to the right place in the template.


    you can also use ansi positioning codes.

    i would first dump the 'art' for the template and at the ass end of the file tack on the position codes with the data.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Zero Reader@VERT/ALKY to KenDB3 on Fri Jul 29 08:02:00 2016
    On 07/28/16, KenDB3 said the following...

    You did a really great job, I wanted to say kudos. Would you mind if I tried to emulate what you did? Or, if your work is open source, would
    you mind if tried to rewrite the whole thing from Python into Javascript and credit you with the module?

    Thanks! I'm not a coder or anything and this was the first thing I ever did
    in Python. It started out just outputting the data like a list, and then I
    just started adding onto it, making that template for it, etc. I originally wrote it for DayDream BBS, but I re-did it and started using mystic's MCI
    codes rather than ANSI positioning.

    I run the script as a door from the BBS, or it could be a timed event, and it just generates a text file which is then displayed to the user.

    The module that does the heavy lifting is xmltodict, which I'm told is very similar to JSON. I use it for some other stuff like a Top 10 Box Office listing, and I had a Summits on the Air spot lister once upon a time also.

    You're free to use whatever you like. I was basically just riffing off the solar widgets from hamqsl. I actually sent him a screenshot of it in action
    and he loved it.

    My post was basically because I was tinkering around to see if I could even play with the data before I started attempting to write anything else.

    Good luck with it! Let me know if you want to see the Python and I'll try to figure out a way to make it available. I never really released anything
    because my code is so bad I didn't want to get ridiculed for it, heheh.

    In the meantime, I hope this solar flux index goes back up. I can't make any magic happen on the airwaves...

    --- Mystic BBS v1.12 A30 (Raspberry Pi)
    * Origin: Alcoholiday / Est. 1995 / alco.bbs.io
  • From Zero Reader@VERT/ALKY to Mro on Fri Jul 29 08:07:00 2016
    On 07/28/16, Mro said the following...

    you can also use ansi positioning codes.

    i would first dump the 'art' for the template and at the ass end of the file tack on the position codes with the data.

    That's exactly what it does. It makes a copy of the template and appends positional codes with the respective data at the bottom. My first version
    used ANSI codes, when I made a version for Mystic, I used Mystic's MCI positional codes, and I'm sure Synchronet's positional codes would also work.

    It also looks pretty decent with a good Amiga font... Like Topaz or Microknight, heheh.

    --- Mystic BBS v1.12 A30 (Raspberry Pi)
    * Origin: Alcoholiday / Est. 1995 / alco.bbs.io
  • From KenDB3@VERT/KD3NET to Zero Reader on Fri Jul 29 14:56:36 2016
    On 07/28/16, KenDB3 said the following...

    You did a really great job, I wanted to say kudos. Would you mind if I tried to emulate what you did? Or, if your work is open source, would you mind if tried to rewrite the whole thing from Python into Javascript and credit you with the module?

    Thanks! I'm not a coder or anything and this was the first thing I ever did in Python. It started out just outputting the data like a list, and then I just started adding onto it, making that template for it, etc. I originally wrote it for DayDream BBS, but I re-did it and started using mystic's MCI codes rather than ANSI positioning.

    I run the script as a door from the BBS, or it could be a timed event, and it just generates a text file which is then displayed to the user.

    The module that does the heavy lifting is xmltodict, which I'm told is very similar to JSON. I use it for some other stuff like a Top 10 Box Office listing, and I had a Summits on the Air spot lister once upon a time also.

    You're free to use whatever you like. I was basically just riffing off the solar widgets from hamqsl. I actually sent him a screenshot of it in action and he loved it.

    My post was basically because I was tinkering around to see if I could even play with the data before I started attempting to write anything else.

    Good luck with it! Let me know if you want to see the Python and I'll try to figure out a way to make it available. I never really released anything because my code is so bad I didn't want to get ridiculed for it, heheh.

    In the meantime, I hope this solar flux index goes back up. I can't make any magic happen on the airwaves...


    Thanks Man! I really appreciate it!

    ~KenDB3

    ---
    þ Synchronet þ KD3net-Rhode Island's only BBS about nothing. http://bbs.kd3.us