Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 929 Bytes

readme.md

File metadata and controls

32 lines (22 loc) · 929 Bytes

air-quality

Modeline indicator to display air quality information in Emacs. Does not use any third-party packages. Air quality information is fetched asynchronously from Open Weather.

Requirements

  • A recent version of Emacs
  • Internet connectivity
  • An Open Weather API key (free, register for an account)

Installation

Install from Github via straight.el until the software is available on MELPA or ELPA.

(use-package air-quality
  :straight (:host github :repo "jthaman/air-quality")
  :init
  (setq air-quality-open-weather-api-key "<your API key>")
  (setq air-quality-latitude 38) ; for example
  (setq air-quality-longitude -77) ; for example
  :config
  (air-quality-mode))

You might prefer :vc use-package keyword in Emacs 30+ or Elpaca.

Outcome

Air quality reports can be Good, Fair, Moderate, Poor, or Very Poor.