Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wdenton/jekyll-co2
Jekyll plugin that shows climate change trends
https://github.com/wdenton/jekyll-co2
climate-change climate-data jekyll jekyll-plugin
Last synced: 8 days ago
JSON representation
Jekyll plugin that shows climate change trends
- Host: GitHub
- URL: https://github.com/wdenton/jekyll-co2
- Owner: wdenton
- License: gpl-3.0
- Created: 2014-06-08T01:46:12.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T05:20:42.000Z (about 2 months ago)
- Last Synced: 2025-01-04T15:11:51.637Z (20 days ago)
- Topics: climate-change, climate-data, jekyll, jekyll-plugin
- Language: Ruby
- Size: 54.7 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jekyll CO₂
Written by [William Denton](https://www.miskatonic.org/).
This is a plugin for the static web site generator [Jekyll](http://jekyllrb.com/) to show the change in atmospheric CO₂ at the Mauna Loa observatory in Hawaii. It was inspired by [CO2Now](http://co2now.org/). The data comes from the [NOAA's Earth System Research Laboratory](http://www.esrl.noaa.gov/gmd/ccgg/trends/).
It is now text only, with no sparkline graphics. In a browser it looks like this:
![Screenshot](screenshot.png)
## How to install
Download `co2.rb` and put it in your `_plugins` directory. That's all!
The CSV file downloaded is stored in your `_data` directory. If you don't have one, it will be created.
## Configuration
By default the plugin will show CO₂ data from 50 years ago and compare it to today.
Optionally, you can add a variable in your `_config.yml`, like this:
co2:
years: 10If `years` is 10, for example, it will show CO₂ from 10 years ago compared to today.
If `years` is 0, it will show CO₂ from March 1958 (the earliest data available from Mauna Loa) compared to today.
## How to use
The plugin creates an include file: `_includes/co2.html`. Include it in a web page like this:
{% include co2.html %}
Look at the file (or the code) to see exactly how it's structured.
You could style it with CSS like this:
#co2 {
}#co2 #co2_inside {
border: thin solid red;
padding: 5px;
}#co2 > .highlight {
color: red;
}#co2 .co2_source {
font-size: smaller;
}## To try
* [UnicodePlot](https://github.com/red-data-tools/unicode_plot.rb)
## License
GPL v3. See [LICENSE](LICENSE).