summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-04 10:44:07 -0600
committerCraig Jennings <c@cjennings.net>2025-11-04 10:44:07 -0600
commit18b89fbdf3b5b13ccfd0d3a09f6bb2925addbab2 (patch)
tree14e9443d0d91f19365d078985b1649e153193e94 /README.org
parent5958142c897500e0fc7934899896264d4be95d9a (diff)
refactor:wttrin: Make asynchronous loading standard
Make asynchronous loading the only mode of operation. It's well tested and doesn't lock up Emacs during fetching. Synchronous loading code has been removed.
Diffstat (limited to 'README.org')
-rw-r--r--README.org14
1 files changed, 2 insertions, 12 deletions
diff --git a/README.org b/README.org
index 4e375d0..f838ddf 100644
--- a/README.org
+++ b/README.org
@@ -155,21 +155,11 @@ Wttrin's default is to select the unit system appropriate for the location you q
(setq wttrin-unit-system nil) ;; the default of using units appropriate for the queried location.
#+end_src
-*** Advanced Settings
-Most users won't need to adjust these, but they're available if you want to fine-tune Wttrin's behavior.
-
-**** Asynchronous Loading
-By default, Wttrin fetches weather data asynchronously, so Emacs stays responsive while waiting for the network. If you prefer synchronous loading (blocking until data arrives), you can disable async mode:
-
-#+begin_src emacs-lisp
- (setq wttrin-use-async nil) ;; Use synchronous loading instead
-#+end_src
-
-**** Cache Settings
+*** Cache Settings
Wttrin caches weather data to reduce API calls and improve responsiveness. The cache holds data for 15 minutes by default, with a maximum of 50 entries. If you're checking weather frequently or want longer cache times, you can adjust these:
#+begin_src emacs-lisp
- (setq wttrin-cache-ttl 1800) ;; Cache for 30 minutes (in seconds)
+ (setq wttrin-cache-ttl (* 30 60)) ;; Cache for 30 minutes (in seconds)
(setq wttrin-cache-max-entries 100) ;; Store up to 100 cached locations
#+end_src