Pop-Up Thingie
Sidebar
d0p3 BBS
Home
Forum
Files
Dark
Register
Log in
Username
Password
Sidebar
Forum
Fidonet
BASH
Weather script
From
Sean Dennis
@1:18/200 to
All
on Wed Nov 26 19:31:33 2025
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
Recent Visitors
John F Kennedy
Thu Nov 20 14:53:19 2025
from
crazyworldbbs.com:2323
via
Telnet
Guest
Sat Nov 22 17:37:30 2025
from
Meh. Nah
via
Telnet
Guest
Wed Nov 26 06:46:07 2025
from
Gremlintown, Az
via
Telnet
Guest
Thu Nov 27 12:02:51 2025
from
Gremlintown, Az
via
Raw
System Info
Sysop:
Tetrazocine
Location:
Melbourne, VIC, Australia
Users:
14
Nodes:
8 (
0
/
8
)
Uptime:
21:40:02
Calls:
184
Files:
21,502
Messages:
79,568