Octopress Openweathermap
Aside to display weather current conditions in the sidebar of your Octopress site.
Live example at stombi.net.
Setup
-
Copy
openweathermap.html
to your_includes/custom/asides
directory. -
Grab an API key at openweathermap.org (it's free)
-
Update your
_config.yml
file to includeopenweathermap_*
variables as shown in example below which is also in the provided_config.yml
file:# Weather # API key openweathermap_key: # H1 title openweathermap_title: Weather # City name openweathermap_city_name: Los Angeles # Units : metric or imperial openweathermap_units: imperial # Lang : en, ru, it, sp, ua, de, pt, ro, pl, fi, nl, fr, bg, se, zh_tw, zh_cn, tr openweathermap_lang: en # cache data to localStorage n seconds openweathermap_cache: 3600
-
Add
openweathermap.html
to your default_asides variable in the_config.yml
settings file. Example:default_asides: [custom/asides/openweathermap.html, custom/asides/about.html, asides/twitter.html, asides/recent_posts.html]
-
Regenerate your blog