Live data from Hacker News

Weather in your terminal, with ANSI colors and Unicode symbols

github.com

21–30 of 52 posts

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#22

The author obviously does not live in California. I rarely check the weather since I know that it will be more or less the same as yesterday , or the day before, or the day before that...

After I moved out of LA, I realized there is a thing called weather forecast.

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#24

The author obviously does not live in California. I rarely check the weather since I know that it will be more or less the same as yesterday , or the day before, or the day before that...

I don't live in California, and I never worry about weather any further than looking outside to see what's on the horizon, as well as the mountains.

If it rains , it rains... If it doesn't, it doesn't.

If you sit around waiting for the rain to stop in Hilo, you'll never get anything done.

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#25
We're dyin' over here in the Seattle area: Current weather in Redmond => 282.77 °F

Maybe try metric? Current weather in Redmond => 282.77 °C

Perhaps it doesn't know about Redmond, WA. Let's try Seattle: Current weather in Seattle => 286.5 °F

It also seems to think it's sunny in Seattle right now. Umm, no.

EDIT: ah, no space after the comma in your location, otherwise it thinks you're on the surface of Venus.

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#26
post #3

I am thinking more and more about moving back to a text-only interface - previously I was very happy with mutt, tin, lynx (and links and w3m), centericq, etc, but only bash and vim stuck with me. Yet with the advent of unicode, there are fewer needs for a graphical interface - stay for a weather app. A clutter-free desktop consisting of mostly bash, along with gnu screen (or the likes) and ssh (or the likes) to remot…

Yep for something like this I'm definitely for a text interface, and I had to do the same with a quick php cli script using yahoo's api. For some reason weather.com just keeps getting slower and slower. I switched to accuweather for a bit but got tired of it too.

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#27
Most of us weather/radio nuts in the US have been doing something similar for over a decade or more. There's several scripts written in Perl or Python that grab data from NOAA. (Or you can just program your ICOM with the local frequency and script it to respond to the CLI...)

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#28

Ack! I love this, so lightweight. I don't mean to do a pony request here, but can anyone think of an easy way to get this into a garden-variety windows 7 desktop, like through a rainmeter script or news ticker?

Not what you asked, but Win7 has a desktop weather gadget.

More along the lines that you asked ...

- Install cygwin and run it in a bash terminal there. Probably some tweaking required, may or may not work. cygwin's minterm does display unicode.

- Translate it into python and run it from a dos terminal (or from cygwin). I don't think the regular cmd.exe or powershell will display unicode (I could be wrong), but a replacement like conemu does (just checked). If you like this weather thing you'll like conemu better anyway.

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#29
post #22

The author obviously does not live in California. I rarely check the weather since I know that it will be more or less the same as yesterday , or the day before, or the day before that...

After I moved out of LA, I realized there is a thing called weather forecast.

I guess that helped with the smog forecast withdrawal.

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#30

We're dyin' over here in the Seattle area: Current weather in Redmond => 282.77 °F Maybe try metric? Current weather in Redmond => 282.77 °C Perhaps it doesn't know about Redmond, WA. Let's try Seattle: Current weather in Seattle => 286.5 °F It also seems to think it's sunny in Seattle right now. Umm, no. EDIT: ah, no space after the comma in your location, otherwise it thinks you're on the surface of Venus.

The weather service reports the temperature in Kelvin.
Post reply on HN