@admin @ternaard
@stefano

Excellent work Fedimeteo

You are systematically covering many areas of the planet, with weather information, right here at the fingertips of the FediVerse userbase

Many remain silent, and I'm not speaking for them, however I am certain that everyone is thankful for your hard and systematic work

And most of all you're doing it on a VPN running freeBSD which cost you 4 Euros a month which is an impressive feat

#FediMeteo #FediVerse #freeBSD #weather #technology #OpenSource #programming
#Nederland

@Dendrobatus_Azureus @admin @ternaard

I even enjoy fedimeteo from the command line! ;)

alias fedimeteo='w3m -dump "https://us.fedimeteo.com/{{city}}__texas/" |tr "\n" ^ |sed "s/━━*/\n/g" |head -1 |tr ^ "\n" |sed -n "/^Weather for {{City}}/,/^#{{City}}/p"' rld@Intrepid:~$ fedimeteo |head Weather for {{City}}, Texas šŸŒ• Current temperature (at 05:42): 39.6°F (Partly cloudy) Wind speed: 13.1 mph (5.9 m/s), direction: ↖ 327° Air Quality: • AQI: 27 🟢 (Good) • PM2.5: 1.1 μg/m³ • PM10: 1.1 μg/m³

@rl_dane @admin
@stefano

Interesting method; you use w3m tr head sed and a verical pipe to format the output for your favourite sh

https://linux.die.net/man/1/w3m

#sh #shell #bash #csh #ksh #zsh #programming #fedimeteo #weather #w3m #sed #tr #pipe

@Dendrobatus_Azureus @admin

w3m is a great little terminal web browser, as it's easy to compile on nearly any OS and has some great features.

For my scripts, I usually try to auto-detect the presence of lynx, links, w3m, and chawan, but for my shell alias, I just picked w3m, which I have installed everywhere. šŸ˜„

@rl_dane
@stefano

I should be able to do the same with the w3 tool that yt-dlp uses to fetch YouTube videos. I've looked for a practical use case to write a small program with that tool and you've just given me one 😊

#sh #shell #bash #csh #ksh #zsh #programming #fedimeteo #weather #w3m #sed #tr #pipe

@rl_dane @stefano

The javascript tool yt-dlp uses is deno

Ill play with it later in the day

https://deno.com/

#sh #shell #bash #csh #ksh #zsh #programming #technology #deno #fedimeteo #weather #w3m #sed #tr #pipe

Deno, the next-generation JavaScript runtime

Deno features improved security, performance, and developer experience compared to its predecessor. It's a great time to upgrade your Node.js project to run on Deno.

Deno

@Dendrobatus_Azureus @stefano

Deno is a full JS stack. If you want to use it for the command-line, I'd recommend trying something more lightweight, although deno does have its fans, especially compared to the slow-motion train wreck that is node.js.