CaNerDUH Presents: This Day In History for Mystic BBS
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
travis 5e7b5b40bf fixed linefeed fucntion
Changed linefeed() to use bbs.write() instead of bbs.writeln() which resulted in an extra linefeed.
1 year ago
screenshots Upload files to 'screenshots' 1 year ago
FILE_ID.DIZ Added initial FILE_ID.DIZ 1 year ago
INSTALL.TXT add INSTALL.TXT 1 year ago
LICENSE Initial commit 1 year ago
README.md Update 'README.md' 1 year ago
tdih.ans Initial upload of mpy and ans files 1 year ago
tdih.mpy fixed linefeed fucntion 1 year ago

README.md

CaNerDUH Presents:

This Day In History for Mystic BBS

This Mystic BBS mod which will display show random events from This Day In History. It is written with Mystic Python (MPY).

This mod uses [https://history.muffinlabs.com/] as it's data source. It could be modified to download the json directly; however I prefer to download it once a day to keep from polling the website too often.

There is usually a large list of events each day. By default this mod will just pick 5 random events (and display them in chronological order) each time it runs.

Screenshot

Installation

Requirements

  1. Python 3 working with Mystic BBS
  2. curl (to Download the JSON file)
  3. Python 3 unidecode module (apt-get install python3-unidecode or pip3 install unidecode)

Files

  1. Copy tdih.mpy to the scripts folder for your theme
  2. Copy the tdih.ans to the text folder for your theme

Cron job

In order to automate the downloading of the events each day you will need a cron job similar to this:

0 0 * * * curl -s https://history.muffinlabs.com/date -o /mystic/tdih.json

Just edit the path to the root directory of your Mystic BBS.

Mystic Configuration

Use Menu option GZ and tdih in the data field. (I like to launch mine from the prelogin menu.)