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.
If you want to do anything with the data rather than just displaying,
the Requests module in Python3 does the same thing as curl, but Python
makes it much easier to extract the relevant data.
I used to manually update a Fireworkz spreadsheet every month with the
fund prices of my investment, but now I use a Python script to scrape
the websited and output a csv which I can import in to Fireworkz and cut'n'paste the new row in.
It works on with RISC OS's Python 3.8 albeit slowly using sequential lookups, it's faster on Linux where it fetches several pages in parallel.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 04:17:29 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
921 files (14,318M bytes) |
| Messages: | 264,528 |