Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache forecast data #23

Closed
abesto opened this issue May 15, 2015 · 2 comments
Closed

Cache forecast data #23

abesto opened this issue May 15, 2015 · 2 comments

Comments

@abesto
Copy link

abesto commented May 15, 2015

wego is so awesome, I want to add it to my MOTD. Problem is, it takes ~0.5 second to run, and I feel dirty adding 0.5 startup time to my shell "just" for a weather report. One solution to that would be if wego cached data for a while - I don't know what would be a reasonable duration, maybe an hour, maybe a few hours?

Is this something you'd want in wego, @schachmat? I'd be happy to hack on it in a few weeks if yes.

@schachmat
Copy link
Owner

I don't think wego is the right place to add caching. It is a tool to receive the most up to date forecast available. For your usecase I recommend a cronjob like wego > ~/.weather. Then just cat this file in your motd.

@abesto
Copy link
Author

abesto commented May 15, 2015

Fair enough.

Thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants