How I speed up the weather module. #733
Samueru-sama
started this conversation in
Show and tell
Replies: 1 comment
-
Great idea.Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I really like the weather module, however I assume that because it looks for the weather info on the internet on each launch there's a 300ms delay to get that info, that's very high and causes a noticeable delay while the info is being printed if you use this module.
My solution is this simple script that makes fastfetch fetch the weather info every half hour and pipes the output into a text file:
Then on the fastfetch config the weather module is replaced by this:
And that's it, now it only takes 2ms to print that info:
That info can also be used for other applications, like zenity which what I use for my calendar on polybar:
zenity --calendar --text="$(cat "$XDG_CACHE_HOME/fastfetch/weatherinfo")"
Beta Was this translation helpful? Give feedback.
All reactions