For reference, I am trying to grab the data found here: http://www.hamqsl.com/solarxml.php
For reference, I am trying to grab the data found here: http://www.hamqsl.com/solarxml.php
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.
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 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.
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.
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...
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 585 |
Nodes: | 8 (0 / 8) |
Uptime: | 28:02:31 |
Calls: | 10,757 |
Files: | 5 |
Messages: | 452,137 |