• Today in Histery

    From Widgit@21:1/204 to All on Wednesday, May 04, 2022 22:00:36
    hi all is there ar mpl for mystic a Today in histery that i can load as a screen ?

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: Family BBS: Telent Familybbs.ddns.net:23 (21:1/204)
  • From claw@21:1/210 to Widgit on Wednesday, May 04, 2022 07:57:56
    On 04 May 2022, Widgit said the following...
    hi all is there ar mpl for mystic a Today in histery that i can load as a screen ?

    I like that idea. If you don't get any other responces check the 2o for beers board. He has so many file its insane. If there is one he will have it. Make sure you have time, takes a wile to search that file base

    |23|04Dr|16|12Claw
    |16|14Sysop |12Noverdu |14BBS |04(|14Noverdu.com|04)
    |10Standard Ports for SSH/Telnet Web/HTTP://|14Noverdu.com:808
    |22|01fsxNet/MRC Chat/Registered Doors!/50Nodes/No Time Use! Stay On!|16|07

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Noverdu BBS (21:1/210)
  • From blade@21:4/151 to Widgit on Thursday, May 12, 2022 11:53:17
    On 04 May 2022, Widgit said the following...

    hi all is there ar mpl for mystic a Today in histery that i can load as a screen ?

    I'm trying to improve my programming skills and your question inspired me.

    I'm not very good at Pascal / MPL but I managed to throw something together with Python.

    It's not very polished yet but it's pretty simple and could be easily modified. I have a few more ideas that I'm considering but I was a little excited and wanted to share this now.

    You can download it from here: https://gitea.canerduh.ca:43000/CaNerDUH/cnd-tdih

    Please ignore the self-signed certificate, I've just not got around to setting up a proper cert with LetsEncrypt yet.

    Feedback is always welcome as I'm still very novice when it comes to programming.

    Travis 'blade' Mehrer

    ... Message encrypted: Press ALT-F4 to read encoded message

    --- Mystic BBS v1.12 A48 2022/03/26 (Raspberry Pi/32)
    * Origin: CaNerDUH BBS (21:4/151)
  • From Zero Reader@21:4/177 to blade on Thursday, May 12, 2022 15:04:56
    On 12 May 2022, blade said the following...

    I'm not very good at Pascal / MPL but I managed to throw something together with Python.

    It's not very polished yet but it's pretty simple and could be easily modified. I have a few more ideas that I'm considering but I was a
    little excited and wanted to share this now.

    Nice work! I saw the request here a few weeks ago as well and also took a stab at using Python for it. Mine scrapes timeanddate.com/on-this-day/ using BeautifulSoup and just lays out a simple date: headline thing, just like yours.

    I run mine as a cron job after midnight and just have it produce a text file for displaying on the BBS during login. It will work for any BBS.

    https://pastebin.com/SeFaBFpX

    I'm not a programmer, so this code is probably laughable, but it's producing the result I want. There's a lot more data on that page available for scraping that I hope to incorporate later (famous births and deaths).

    -zr

    ... There are two types of people; those who finish what they start and

    --- Mystic BBS v1.12 A48 2022/04/26 (Linux/64)
    * Origin: Alcoholiday // alco.bbs.io (21:4/177)
  • From blade@21:4/151 to Zero Reader on Thursday, May 12, 2022 14:36:10
    On 12 May 2022, Zero Reader said the following...

    Nice work! I saw the request here a few weeks ago as well and also took
    a stab at using Python for it. Mine scrapes timeanddate.com/on-this-day/ using BeautifulSoup and just lays out a simple date: headline thing,
    just like yours.

    This is great! My first attempts used BeautifulSoup as well. Though I was trying to parse Wikipedia directly and my brain just couldn't put the pieces together to get it working the way I wanted.

    I'm not a programmer, so this code is probably laughable, but it's producing the result I want. There's a lot more data on that page available for scraping that I hope to incorporate later (famous births
    and deaths).

    I'm also not a programmer so definitely no judgment on code quality! In fact, thank you for sharing as it helps me see some of the pieces I was having trouble getting straight. Likewise, I'm hoping to incorporate more of the data eventually.

    Again, thanks for sharing, I appreciate seeing a different approach to the same problem!

    Travis 'blade' Mehrer

    ... I think I am, therefore, I am... I think.

    --- Mystic BBS v1.12 A48 2022/03/26 (Raspberry Pi/32)
    * Origin: CaNerDUH BBS (21:4/151)
  • From Zero Reader@21:4/177 to blade on Thursday, May 12, 2022 18:12:46
    On 12 May 2022, blade said the following...

    Again, thanks for sharing, I appreciate seeing a different approach to
    the same problem!

    Yeah man no worries! The way you are pulling out the data is a lot cleaner than the page scrape, which is kind of tedious to work through at times. The page I'm scraping is fairly well laid-out though, so it makes it a little easier -- I'm making things harder than they need to be in some ways, but I wanted to get the presentation looking clean with indentations and word wrap.

    Very clever pulling the random facts!

    -zr

    ... Hard work never killed anyone but why take a risk?

    --- Mystic BBS v1.12 A48 2022/04/26 (Linux/64)
    * Origin: Alcoholiday // alco.bbs.io (21:4/177)
  • From blade@21:4/151 to Zero Reader on Saturday, May 14, 2022 09:15:51
    be in some ways, but I wanted to get the presentation looking clean with indentations and word wrap.

    The indentations and word wraps are awesome! The word wraps were on my todo list but the unicode to cp437 was vexing me! I suppose I didn't ask Google the right questions and that's why I missed unidecode. I've incorporated those into my mod now and the presentation is looking much better.

    I think my next step will be using a .ini file to store some settings like default BBS path and number of random facts to show. I've done it before on another unrelated project so hopefully I can find that code again and modify it for this.

    I also need to make a better ANSI header for this but I'm probably worse at ANSI than I am at programming! <g>

    ... There is an exception to every rule, except this one.

    --- Mystic BBS v1.12 A48 2022/03/26 (Raspberry Pi/32)
    * Origin: CaNerDUH BBS (21:4/151)
  • From Zero Reader@21:4/177 to blade on Saturday, May 14, 2022 14:01:38
    On 14 May 2022, blade said the following...

    The indentations and word wraps are awesome! The word wraps were on my todo list but the unicode to cp437 was vexing me! I suppose I didn't ask Google the right questions and that's why I missed unidecode. I've

    I wasn't too worried about special characters causing issues until one day several of the headlines had "smart quotes" in them, and that's when I dug up the info on Unidecode. I'd used it in the past for similar reasons. I supposed you could also use regex or other methods, but this seemed pretty easy.

    I think my next step will be using a .ini file to store some settings
    like default BBS path and number of random facts to show. I've done it before on another unrelated project so hopefully I can find that code

    That's a good idea. I tend to just stick that sort of thing at the top of the script, but some folks may prefer to edit an .ini than the actual code, especially if you start adding a bunch of options.

    Sounds like we're on a very similar python journey!

    -zr

    ... A Meteor is an example of a rock star.

    --- Mystic BBS v1.12 A48 2022/04/26 (Linux/64)
    * Origin: Alcoholiday // alco.bbs.io (21:4/177)
  • From Widgit@21:1/204 to blade on Saturday, May 21, 2022 23:05:55
    You can download it from here: https://gitea.canerduh.ca:43000/CaNerDUH/cnd-tdih

    hey Blade thanks for that ill take a look at it :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: Family BBS: Telent Familybbs.ddns.net:23 (21:1/204)