Skip to content

ianbarton/org-weather

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Overview

org-weather is a small elisp script for displaying weather data from openweathermap.org in your org-mode agenda. I wrote this because the existing package is based on the google api which was discontinued:

https://julien.danjou.info/projects/emacs-packages#google-weather

Installation

Clone the repository using:

git clone http://github.com/kautsig/org-weather.git

Add this to your .emacs file:

;; Load the org-weather library
(add-to-list 'load-path "~/<path-to>/org-weather")
(require 'org-weather)
;; Set your location and refresh the data
(setq org-weather-location "London,UK")
(org-weather-refresh)

You can customize the string displayed in your agenda using this in your .emacs file. For available wildcards have a look at the source (it’s simple).

(setq org-weather-format "Weather: %desc, %tmin-%tmax%tu, %p%pu, %h%hu, %s%su")

Add this to one of your org files:

* Weather
%%(org-weather)

When you view your agenda, you should now see the weather for today and the forecast for next week. You can refresh weather data by calling:

M-x org-weather-refresh

Data License

According to http://openweathermap.org/price:

All data provided by OpenWeatherMap are distributed under terms of the Creative Commons license http://creativecommons.org/licenses/by-sa/2.0/.

To apply with the license the name “OpenWeatherMap” was added to the string displayed in your agenda.

Disclaimer

I’m not a lisp developer and of course you know how to do better. If so, pull requests are kindly appreciated.

About

Weather forecast for the org-mode agenda.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Emacs Lisp 100.0%