improve geolocation readme formatting

This commit is contained in:
d12frosted 2017-07-29 21:41:15 +03:00
parent 139001e877
commit 8304c030cd
No known key found for this signature in database
GPG key ID: 8F60E862D6F5CE8F

View file

@ -24,8 +24,8 @@ CoreLocation services.
* Install * Install
To use this configuration layer, add it to your =~/.spacemacs=. You will need to To use this configuration layer, add it to your =~/.spacemacs=. You will need to
add =geolocation= to the existing =dotspacemacs-configuration-layers= list in this add =geolocation= to the existing =dotspacemacs-configuration-layers= list in
file. this file.
All services are disable by default. To enable all, or some of them, add instead All services are disable by default. To enable all, or some of them, add instead
something like this: something like this:
@ -63,21 +63,21 @@ cycling, etc.
** sunshine (weather forecast) ** sunshine (weather forecast)
Sunshine display local weather forecast. Sunshine display local weather forecast.
Setup [[https://home.openweathermap.org/users/sign_in][OpenWeatherMap]] API key. Setup [[https://home.openweathermap.org/users/sign_in][OpenWeatherMap]] API key. Set ~sunshine-appid~ to some hash string from the
Set ~sunshine-appid~ to some hash string from the openweathermap openweathermap website. You need to sign up to the website to get a API key.
website. You need to sign up to the website to get a API key.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq sunshine-appid "your-apikey") (setq sunshine-appid "your-apikey")
#+END_SRC #+END_SRC
Configure your location by setting the variable sunshine-location. You Configure your location by setting the variable sunshine-location. You can
can provide a string, like "New York, NY" or a ZIP code, like "90210". provide a string, like "New York, NY" or a ZIP code, like "90210". This variable
This variable is available through the Customize facility. is available through the Customize facility.
When specifying a ZIP code, you may receive results from a foreign
country. This is due to weird behavior from OpenWeatherMap. To resolve When specifying a ZIP code, you may receive results from a foreign country. This
this, append a comma and the country code after the ZIP code. Note the is due to weird behavior from OpenWeatherMap. To resolve this, append a comma
lack of a space in the example below. and the country code after the ZIP code. Note the lack of a space in the example
below.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq sunshine-location "90210,USA") (setq sunshine-location "90210,USA")