ewth.el is a simple Emacs minor mode that displays weather information in the Emacs modeline.
It leverages the wttr.in service, which provides concise weather reports, allowing you to stay informed without leaving Emacs.
- Freezes Emacs while updating data.
-
Asynchronous Data Updates: Prevents Emacs from freezing during updates.
-
Modeline Display: Weather information is displayed directly in the Emacs window's modeline, without interrupting your editing.
-
Automatic Updates:
ewth.elautomatically fetches the latest weather data fromwttr.inat regular intervals and updates the modeline display. The update frequency can be adjusted via a customizable variable. -
Configurable: You can configure the
wttr.inURL (ewth-url) via a customizable variable to retrieve weather information for a specific city or in a specific format. -
Easy to Enable/Disable: Easily enable or disable the weather information display with
ewth-mode. -
Clean and Concise: By default, the weather information is displayed in a simple text format that doesn't take up too much modeline space.
(use-package ewth
:ensure nil
:load-path "path/to/ewth"
:defer 2
:config
(setq ewth-url "http://wttr.in/NewYork?format=2&M")
(ewth-mode)
)request.el: Used for sending HTTP requests. Ensure you have therequestpackage installed. You can install it usingM-x package-install request.
ewth-url: Specifies thewttr.inURL. Affects the displayed city, format, etc, about more format: https://github.com/chubin/wttr.in?tab=readme-ov-file#one-line-outputewth-update-interval: Specifies the interval (in seconds) at which the weather information is updated.
wttr.inis a public service. Please use it responsibly and avoid requesting data too frequently.- If the
requestpackage is not installed correctly,ewth.elwill not function properly.
- Inspired by: display-wttrn
