From Newsgroup: comp.sys.acorn.apps
Hi all,
after a longer hiatus from RISC OS I'm currently exploring a few options
how to get more out of it in the modern world. Something that always
fascinated me was exploring command line stuff like fetching a weather
report from wttr.in.
I simply created an obey file using wget to fetch, delete and overwrite
weather reports as png for later viewing. Works great.
There are similar sites like
http://rate.sx for crypto currencies and terminal-stocks.dev designed for terminal access via cURL.
Unfortunately they're next to unusable with RISC OS. Fetching works fine
but Taskwindow or Nettle (running as ANSI task) interpret all the escape
codes meant for unix xterm literally, resulting in garbage.
Trying to force plain text output like this:
*curl -H "Accept-Encoding: identity" "
http://rate.sx/btc?plain=1" | tr
-cd '\11\12\15\40-\176'
also fails since cURL on RISC OS doesn't seem to pass any of that on.
So that's a bit disappointing.
The only thing I could get working was:
*curl "
https://stooq.com/q/l/?s=EUNL.DE&f=sd2t2ohlcv&h&e=csv" >
MSCI_World.txt
which gives:
Symbol,Date,Time,Open,High,Low,Close,Volume EUNL.DE,2026-01-21,17:30:00,111.7,112.58,111,112.245,340009
So better than nothing obviously but very very basic really.
Is there a better way or should I just turn on the wireless at 12.30 for
the business report?
Patric
--- Synchronet 3.21a-Linux NewsLink 1.2