Pop-Up Thingie
Sidebar
Local Yocal BBS
Home
Forum
Files
Register
Log in
Username
Password
Sidebar
Forum
FidoNet
BASH
Weather script
From
Sean Dennis
@1:18/200 to
All
on Wednesday, November 26, 2025 19:31:33
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)
Who's Online
System Info
Sysop:
Weed Hopper
Location:
Clearwater, FL
Users:
16
Nodes:
6 (
0
/
6
)
Uptime:
15:42:56
Calls:
133
Files:
50,534
D/L today:
93 files
(15,656K bytes)
Messages:
326,088