home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 38 
 Sean Dennis to All 
 Weather script 
 26 Nov 25 19:31:33 
 
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: 1/110 18/200 105/81 128/187 129/14 153/7715 154/110 218/700
SEEN-BY: 226/30 227/114 229/110 112 300 426 428 470 700 705 291/111
SEEN-BY: 320/219 460/58 902/26 2320/105 5075/35
PATH: 18/200 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca