Subj : Re: Automated Posts Question To : Jeff Earle From : Warpslide Date : Sun Apr 27 2025 12:10 pm On 27 Apr 2025, Jeff Earle said the following... JE> Thank you. I don't use Linux but I assume these scripts are for Linux JE> only. I run win10x64 and would like to do exactly the same thing but JE> different content. I can't find any apps or programs for windows that JE> will do this. JE> I'll keep searching but I don't think I'll find anything. You can get curl, iconv, grep, sed & awk for Windows: curl: https://curl.se/windows/ iconv: https://gnuwin32.sourceforge.net/packages/libiconv.htm grep: https://gnuwin32.sourceforge.net/packages/grep.htm sed: https://gnuwin32.sourceforge.net/packages/sed.htm awk: https://gnuwin32.sourceforge.net/packages/gawk.htm I just tried this on my Windows 10 32bit install with the above programs & it seemed to work: curl -o weather.tmp https://weather.gc.ca/forecast/public_bulletins_e.html?Bulletin=fpcn11.cwto sed -i -n "/
/,/<\/pre>/{ /pre>/d; p }" weather.tmp
iconv -f utf-8 -t cp437//translit weather.tmp > weather.txt
awk -v RS="" "/City of Hamilton/" weather.txt > hamilton.txt
After this, you will have three files the directory you ran the commands from.
weather.tmp = The weather forecast downloaded in UTF-8
weather.txt = The weather forecast in CP437
hamilton.txt = Just the forecast for the City of Hamilton
From there you can use mutil to post these to whatever message base you like.
I post the weather for my city to a personal message base three times a day.
Jay
.... If you don't know how climb stairs, there is a step by step guide
--- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
* Origin: Northern Realms (21:3/110)
.