Live data from Hacker News

Wego: a weather app for the terminal

github.com

21–30 of 38 posts

Re: Wego: a weather app for the terminal

#21
post #19

Earlier quoted context omitted.

Necessary, but not sufficient. A lot of terminal apps are still - to borrow a phrase - captive user interfaces, which don't play much better with others than a GUI. Decompose all the things into individual utilities (or libraries) so they can be reused and recombined!

Haskell combinators for ALL THE THINGS :)

Get me a Haskell shell as usable as bash, and I'm down!

Re: Wego: a weather app for the terminal

#23
post #8

Whenever I see a weather "app" I always think: "This is really a weather display utility" and then wonder about the quality / longevity of the service it depends on and how the information is provided. What would interest me is an implementation that allows you to plug in different weather backends, so that having an API key to worldweatheronline, or screen-scraping weather underground, or building a bridge to your s…

I've found they vary quite a bit, both in the data points they provide, and the depth of data. Especially comparing free vs paid services. Some provide historical data, others want lots of extra cash for that. Some provide hourly and even minutely results (like my current favorite -- forecast.io), and some do not. And the underlying conditions they provide can vary. You might get simply 'partly_cloudy' from one, an actual cloud cover percentage from another, or even the cloud cover at different altitudes from a yet another provider. So you'd have to do a lot of normalizing between providers to come up with a common API.

So it certainly could be done. And I actually looked into this a few years ago, but it wasn't trivial enough to make it worth the time back then.

Re: Wego: a weather app for the terminal

#24
post #16
post #8

Whenever I see a weather "app" I always think: "This is really a weather display utility" and then wonder about the quality / longevity of the service it depends on and how the information is provided. What would interest me is an implementation that allows you to plug in different weather backends, so that having an API key to worldweatheronline, or screen-scraping weather underground, or building a bridge to your s…

http://graphical.weather.gov/xml/ Ex: http://forecast.weather.gov/MapClick.php?lat=37.76&lon=-122....

Unfortunately, as far as I know, the NOAA doesn't provide forecasts outside of the US and US territories.

Re: Wego: a weather app for the terminal

#25
post #3

Way better than the other "weather apps for the terminal" I've seen on HN.

I really like weather http://fungi.yuggoth.org/weather/

It gets me the information for the forecast and current conditions quickly and painlessly. I have used it for years. I much rather have the NOAA forecast and current conditions to anything else.

This would compliment weather for me.

Re: Wego: a weather app for the terminal

#27
post #16
post #8

Whenever I see a weather "app" I always think: "This is really a weather display utility" and then wonder about the quality / longevity of the service it depends on and how the information is provided. What would interest me is an implementation that allows you to plug in different weather backends, so that having an API key to worldweatheronline, or screen-scraping weather underground, or building a bridge to your s…

http://graphical.weather.gov/xml/ Ex: http://forecast.weather.gov/MapClick.php?lat=37.76&lon=-122....

Thanks, this is pretty cool; I think the NWS qualifies as a stable source.

Re: Wego: a weather app for the terminal

#28
post #19

Earlier quoted context omitted.

Haskell combinators for ALL THE THINGS :)

Get me a Haskell shell as usable as bash, and I'm down!

I built a shell in Haskell for a class project this semester. At some point I'll get around to releasing it on Github. It doesn't do much aside from backgrounding tasks, piping, and supporting environment variables (both in a config file and dynamically through a built in export command). But it was fun to build!

Re: Wego: a weather app for the terminal

#30
post #8

Whenever I see a weather "app" I always think: "This is really a weather display utility" and then wonder about the quality / longevity of the service it depends on and how the information is provided. What would interest me is an implementation that allows you to plug in different weather backends, so that having an API key to worldweatheronline, or screen-scraping weather underground, or building a bridge to your s…

"or screen-scraping weather underground"

I know very little about this space, but when you suggest screen scraping WU, are you implying that they have no API or XML feed or some kind of open feed of their data ?

That's disappointing. I always assumed they did ...

Post reply on HN