Emacs frontend for weather web service wttr.in.
Set a default cities list for completion:
(setq wttrin-default-cities '("Taipei" "Tainan"))
You can also specify default HTTP request Header for Accept-Language:
(setq wttrin-default-accept-language '("Accept-Language" . "zh-TW"))
Then run M-x wttrin
to get the information.
When the weather is displayed you can press q
to quit the buffer or g
to query for another city.
You can also choose to show the weather information in the mode line(only works in Emacs 26.1+ for thread support):
(setq wttrin-mode-line-city "Taipei") ;; nil for automatically chosen by wttr.in
(setq wttrin-mode-line-time-interval 3600) ;; updating interval in seconds
(wttrin-display-weather-in-mode-line)
The query will run in a thread silently. You should have fonts that supported unicode emojis installed to show the unicode weather characters correctly. Consider Symbola if you don't have one.
Specify wttrin-mode-line-format
to change the one-line output format of
wttr.in, see wttr.in#one-line-output.
MIT