Recent submissions

Comment · 4 years ago
please send me your IP or at least its 3 first octets to igor AT chub.in
Comment · 4 years ago
This is not a problem with wttr.in, this is a problem of `watch`. It is a known issue: it can't render ANSI output.

You can try to run it with any command that has ANSI output, and you will see it.

As a simple alternative, you write your own 'watch' like this:

while true; do curl -s wttr.in; sleep 60; clear; done

Comment · 4 years ago
try `curl wttr.in/Munich` (with your location specified instead of Munich)
Comment · 6 years ago
Just use

    curl --user-agant "" wttr.in?A
for that.

The `A` option enforces ANSI output (curl wttr.in/:help for more)

Comment · 6 years ago
Comment · 6 years ago
curl wttr.in/:help

and the curlable directory is almost there

As an interim solution, you can use this:

  curl https://raw.githubusercontent.com/chubin/awesome-console-services/master/README.md
Comment · 6 years ago
Yes it works! The difference is minimal though (it was intentionally a one-liner)
Comment · 6 years ago
Wow! That's cool. Let's try it

  curl() { [ -t 1 ] && curl "$@" | sanitize || curl "$@"; }
Comment · 6 years ago
See my comment in the neighbor thread
Comment · 6 years ago
No, because they are not implemented as a part of wego; wego is used just for visualization of one of the views (v1). The rest is implemented outside of it
Comment · 6 years ago
Just use IFS for this

w() { ( IFS=+; curl wttr.in/"$*";); }

Comment · 6 years ago
Try this:

curl ga.wttr.in/limerick

Comment · 6 years ago
curl v2.wttr.in

and for the white background:

curl wttr.in/?I

Comment · 6 years ago
Just add `F` to the options, and you don't need `| head -17` then
Comment · 6 years ago
It was the case indeed (many many years ago), we discussed at the anuualy curl hackers conference in Nuremberg back in 2017, but the only terminals that we managed to find with the support of this were not younger than 2001.

Anyway, one can write a small filter, to cut any suspicious sequences from the output off, and add some wrapper like that to your bashrc:

curl() { [ -t 1 ] && curl "$@" | sanitize || curl "$@"; }

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton