On 07 Dec 2021, Edmund Wong said the following...
Does anyone know if it's possible to use a system-binary python
to post messages directly into the Mystic message base? I'm hoping
to create a script to post messages directly to a local message
base.
I don't know about python, but you can use mutil to post messages to any base you like.
[ --- begin weather.ini --- ]
[General]
PostTextFiles = true
logfile = mutil.log
logcache = true
loglevel = 2
logtype = 1
maxlogfiles = 3
maxlogsize = 1000
[PostTextFiles]
totalfiles = 3
file1_name = /tmp/weather.txt
file1_baseidx = 29
file1_from = Northern Realms
file1_to = All
file1_subj = Southern Ontario Weather
file1_addr = 21:3/110
file1_delfile = false
[...]
[ --- end weather.ini --- ]
In this example I use a script to fetch the weather and put it into a text file (/tmp/weather.txt). The baseidx is the index number of the message base you want to post to. Fill out the other details and then just run ./mutil weather.ini and your message is posted.
Jay
... When the cows are sleeping in the field, it's pasture bed!
--- Mystic BBS v1.12 A47 2021/12/06 (Raspberry Pi/32)
* Origin: Northern Realms (1:229/664)