Nп/п : 5 из 6
От : Sean Dennis 1:18/200 26 ноя 25 19:31:33
К : All 26 ноя 25 03:53:02
Тема : Weather script
----------------------------------------------------------------------------------
@MSGID: 1:18/200@fidonet 69279c28
@CHRS: CP437 2
@TZUTC: -0500
@TID: MBSE-FIDO 1.1.4 (Linux-x86_64)
Hello All,
I wrote a script that grabs the 3-day forecast for my location from wttr.in
and
posts it to my BBS. This is written in bash.
The display is converted to ASCII so all users can view it using iconv. The
lines you`re interested in are lines 4 and 5.
=== Cut ===
#!/bin/bash
export MBSE_ROOT=/opt/mbse
cd $MBSE_ROOT/work
curl wttr.in/?TdFn > ./test
iconv -f UTF-8 -t ascii//TRANSLIT test -o weather1.asc
cp weather1.asc $MBSE_ROOT/share/int/txtfiles/en/weather1.asc
=== Cut ===
-- Sean
... Some people will see the light only when they feel the heat.
--- GoldED+/LNX 1.1.5-b20240209
* Origin: Outpost BBS * Johnson City, TN (1:18/200)
SEEN-BY: 50/109 301/1 4500/1 5001/100 5020/715 830
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5061/133 5075/128
@PATH: 18/200 229/426 320/219 119 16/201 5030/49
5020/1042 4441