On 21 Jan 2021, Warpslide said the following...
So how do you get the data that you use to create them? Or rather fro where?
I get my weather data from here: https://weather.gc.ca/forecast/public_bulletins_e.html?Bulletin=fpcn11.cwt
You'd of course have to find where to get weather local to your region.
Of course. But that does give me an idea of what I'm looking for.
And I get my Horoscope data from here:
https://nypost.com/horoscopes
Basically I just use wget to download the .html file and use grep or sed to cut
out the pieces I need. The weather was easier to than the horoscope
page due to the number of images.
And as Al mentioned, you need to make sure the text is not more than 79 characters wide otherwise Mystic will just cut it off.
That's a shame that it doesn't wrap better, although even at 79 characters
its an adventure on my setup.
Another thing I discovered is that Mystic doesn't like UTF8 text when posting via mutil. I had to figure out how to convert UTF8 text to
CP437 using iconv so that every hyphen or apostrophe didn't come out
weird in the bot post. It was an interesting exercise and I'm glad I got it working. I learned a little more about using linux by going through it, though I'm not sure anyone ever reads them... lol
I've been told some of my copy/paste messages look weird onsome peoples systems, although I hadn't noticed. Someone had suggested that it mighy be
due to the fact that Mystic messages don't seem to have a CHRS$ kludge so
other systems didn't know how to interpret.
I suppose a conversion to CP437 is a better overall solution.
And I do at least skim those messages.
--- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
* Origin: theoasisbbs.ddns.net:1357 (21:4/127)